- 453
- 125 150
Mamun Rashid
United States
Приєднався 6 чер 2006
DevOps SRE Interview Question 114 How to Clear Old Logs from Linux Systems
Hello everyone, welcome back! Today, we continue our series on the 15 most important topics, technologies, and tools to master for DevOps and SRE interviews. Before diving into today's topic, please consider subscribing to my channel-your support motivates me to create more content for you.
Today's focus is topic number seven out of fifteen: Linux. Linux is at the core of nearly everything in DevOps. From CI/CD pipelines to containers, Linux is the backbone, and having a solid understanding of it is essential for anyone in DevOps.
Today's question is: **How would you manage and rotate logs on a Linux server to ensure system stability and prevent running out of disk space?**
Applications and other processes generate logs that are stored on a Linux machine's disk. If you don't rotate these logs over time, they will eventually fill up the volume, disk, or file system, causing your application to malfunction.
Fortunately, Linux provides a built-in tool called `logrotate` for this purpose. It's crucial to ensure that `logrotate` is enabled and properly configured. You can set it up to rotate logs based on criteria such as age or size. For instance, if a log file is named `application.log`, older logs will be saved as `application.log.0`, `application.log.1`, and so on. The oldest logs, depending on your configuration, will eventually be deleted-ensuring you only retain a manageable amount of log history, such as the last seven days.
In addition to rotating logs, you must monitor disk space to ensure it doesn't run out. This includes setting up alerts to notify you if something goes wrong, such as if `logrotate` isn't configured correctly or if there’s a sudden spike in log generation.
Understanding and implementing log rotation is a simple yet vital concept that you should be familiar with, especially for interviews.
Stay tuned for question number eight, where we will dive into the topic of security. See you then!
Today's focus is topic number seven out of fifteen: Linux. Linux is at the core of nearly everything in DevOps. From CI/CD pipelines to containers, Linux is the backbone, and having a solid understanding of it is essential for anyone in DevOps.
Today's question is: **How would you manage and rotate logs on a Linux server to ensure system stability and prevent running out of disk space?**
Applications and other processes generate logs that are stored on a Linux machine's disk. If you don't rotate these logs over time, they will eventually fill up the volume, disk, or file system, causing your application to malfunction.
Fortunately, Linux provides a built-in tool called `logrotate` for this purpose. It's crucial to ensure that `logrotate` is enabled and properly configured. You can set it up to rotate logs based on criteria such as age or size. For instance, if a log file is named `application.log`, older logs will be saved as `application.log.0`, `application.log.1`, and so on. The oldest logs, depending on your configuration, will eventually be deleted-ensuring you only retain a manageable amount of log history, such as the last seven days.
In addition to rotating logs, you must monitor disk space to ensure it doesn't run out. This includes setting up alerts to notify you if something goes wrong, such as if `logrotate` isn't configured correctly or if there’s a sudden spike in log generation.
Understanding and implementing log rotation is a simple yet vital concept that you should be familiar with, especially for interviews.
Stay tuned for question number eight, where we will dive into the topic of security. See you then!
Переглядів: 7
Відео
Am I Allowed to Google During DevOps SRE Coding Interviews
Переглядів 172 години тому
Hello everyone, Today, I want to address a common question I often receive: "Am I allowed to Google things during a DevOps or SRE coding interview?" The short answer is Most of the time, yes, but there’s a catch. If you ask, "Can I Google things?" the interviewer will likely say yes in most cases, because you’re not expected to memorize every syntax by heart. However, You’ll probably be coding ...
DevOps SRE Interview Question 113 How to Troubleshoot Network Latency Problems in Production
Переглядів 494 години тому
Today, we continue our journey through the 15 most important topics, tools, and technologies for DevOps and SRE interviews. It's important to note You don't need to be an expert in all of these areas, but you should have more than just a basic understanding of each topic. During an interview, the interviewer will likely test the breadth of your knowledge by asking questions on a few of these to...
What Kind of Coding Test am I Likely to Get in a DevOps SRE Coding Interview
Переглядів 477 годин тому
Today, I want to share a quick video about coding interviews specifically for DevOps and SRE roles. You might assume That a coding interview for DevOps or SRE would focus on tools like Terraform, Ansible, or perhaps setting up a CI/CD pipeline. However, that’s often not the case, and I’ll explain why in just a moment. Before we continue, Please consider subscribing to my channel. Seeing new sub...
Devops SRE Interview Question 112 How to Write Robust Shell or Bash Scripts
Переглядів 319 годин тому
We’re continuing our series on the 15 most important DevOps and SRE topics and tools that you should be familiar with. Whether you’re answering general questions or diving into specifics, having a solid understanding of these topics will showcase your breadth of knowledge. Today’s topic is number five: Scripting and Bash Scripting. We’ve touched on some of these aspects in previous videos, but ...
Devops SRE Interview Question 111 Writing Code That is Resilient in a Distributed System
Переглядів 2412 годин тому
We’re continuing our series on the 15 most important topics, technologies, and tools that you need to be familiar with to prepare for your DevOps and SRE interviews. Before we dive in, Please consider subscribing to my channel. Your support motivates me to create more content for you every day. Today’s topic is number four: Writing Code for Reliability and Scalability in Distributed Systems. Ho...
Devops SRE Interview Question 110 Set up Prometheus Grafana for a Kubernetes Cluster
Переглядів 5214 годин тому
Today we're continuing our exploration of the 15 essential topics, tools, and technologies that are crucial for DevOps and SRE interviews. You don't need to be an expert on all of them-just on a few key areas that align with the role you're applying for. However, during interviews, it's likely that you'll be asked questions from one of these topics to gauge your breadth of knowledge. In our las...
DevOps SRE Interview Question 109 Improving CICD Pipeline Speed in Github Actions
Переглядів 5216 годин тому
Hello everyone, welcome back to our series on the 15 most important topics for DevOps and SRE interviews. We've already covered one round, and today, we're diving into round two, focusing on CI/CD pipelines. Before we begin, I encourage you to subscribe to the channel. Your support motivates me to continue creating valuable content for you. Today's question is number 109: "Describe a scenario w...
DevOps SRE Interview Question 108 AWS Service to Deal with Scalability and High Availability
Переглядів 6519 годин тому
Hello everyone, we've completed a full cycle through the 15 topics and technologies essential for preparing for DevOps and SRE interviews. Now, we're back to the first topic. Just to clarify, these topics are ranked based on the frequency of keywords found in job descriptions. The top-ranked topics appeared the most frequently, while those at the bottom were less common. Today, we'll be discuss...
DevOps SRE Interview Question 107 Top 6 Reasons for Using HAproxy instead of a Load Balancer
Переглядів 6121 годину тому
We're continuing our exploration of the 15 most important topics, tools, and technologies relevant to DevOps and SRE roles. Today, we're revisiting a crucial topic that doesn’t fit neatly into any single category but is highly significant-especially for companies still operating on-premises or in hybrid environments. Today’s discussion centers on HAProxy. Before we dive into that, I’d appreciat...
DevOps SRE Interview Question 106 System Design of a High Volume Static Website
Переглядів 38День тому
Introduction Hey everyone, welcome back! Today's interview question is number 15 on our list. We've now covered at least one question from each topic. Topic Introduction Today's focus is on system design. Often, in an interview, you’ll be asked to demonstrate your understanding of how different systems work together. Setting the Stage For example, imagine you have web servers, middleware, datab...
DevOps SRE Interview Question 105 How to Make Docker Container Image Size Small
Переглядів 42День тому
Today, we're diving into Docker as part of our series on the top 15 technologies and tools for DevOps and SRE roles, based on common job descriptions. This content is sourced from LinkedIn, and my goal is to ensure you gain the breadth of knowledge required for success in these fields. While you may need deeper expertise in some areas, it's not necessary to be an expert in everything. Before we...
DevOps SRE Interview Question 104 How to Resolve git rebase or merge conflicts
Переглядів 31День тому
Today, we'll be discussing a crucial topic for DevOps and SRE interviews: Git. As part of our series on the top 15 tools and technologies essential for DevOps and SRE roles, Git is undoubtedly one that you need to be familiar with. While you don't need to be an expert in all areas, having a solid understanding of each is beneficial, as these topics are integral to the daily responsibilities in ...
DevOps SRE Interview Question 103 Managing Drifts in Terraform AWS GCP Azure
Переглядів 77День тому
Hello everyone, welcome back to our series on the 15 most important topics in DevOps and SRE interviews. Today, we'll be discussing Terraform. Terraform, as many of you know, is an essential tool for infrastructure as code, but a common challenge in Terraform-managed environments is handling infrastructure drift. Before diving into strategies, let's define what drift is. Drift occurs when the c...
DevOps SRE Interview Question 102 How to Instrument Monitor Troubleshoot Kubernetes
Переглядів 4514 днів тому
Hello everyone, today we continue our journey through the top 15 topics in DevOps and SRE. Today's focus is on Kubernetes and Microservices, specifically addressing question number 102. Before we dive into the question, I want to encourage you to subscribe to my channel. Your support motivates me to create more content like this, which helps many of you in your professional journey. Now, let's ...
Devops SRE Interview Question 101 Managing Urgent Work Within Agile Processes
Переглядів 5114 днів тому
Devops SRE Interview Question 101 Managing Urgent Work Within Agile Processes
DevOps SRE Interview Question 100 How to Fix Low Performing MySQL Database
Переглядів 5114 днів тому
DevOps SRE Interview Question 100 How to Fix Low Performing MySQL Database
DevOps SRE Interview Question 99 Managing Secrets in the Cloud for Compliance
Переглядів 8214 днів тому
DevOps SRE Interview Question 99 Managing Secrets in the Cloud for Compliance
DevOps SRE Interview Question 98 Prometheus on Kubernetes and Scale
Переглядів 14414 днів тому
DevOps SRE Interview Question 98 Prometheus on Kubernetes and Scale
DevOps SRE Interview Question 97 Why is a Server Slow Even Though CPU is Unused
Переглядів 6714 днів тому
DevOps SRE Interview Question 97 Why is a Server Slow Even Though CPU is Unused
DevOps SRE Interview Question 96 Troubleshooting Network Access Issues to a Service
Переглядів 12714 днів тому
DevOps SRE Interview Question 96 Troubleshooting Network Access Issues to a Service
DevOps SRE Interview Question 95 Shell Script Algorithm to Alert on Disk Usage
Переглядів 12621 день тому
DevOps SRE Interview Question 95 Shell Script Algorithm to Alert on Disk Usage
Top 10 Technologies or Topics for DevOps SRE Interviews Based on Linkedin Data
Переглядів 8521 день тому
Top 10 Technologies or Topics for DevOps SRE Interviews Based on Linkedin Data
DevOps SRE Interview Question 94 Design a CICD Pipeline in Azure DevOps
Переглядів 3921 день тому
DevOps SRE Interview Question 94 Design a CICD Pipeline in Azure DevOps
Top 5 -- Tell Me About a Time -- Questions in DevOps SRE Interviews
Переглядів 5821 день тому
Top 5 Tell Me About a Time Questions in DevOps SRE Interviews
DevOps SRE Interview Question 93 Autoscale Kubernetes Deployment
Переглядів 6421 день тому
DevOps SRE Interview Question 93 Autoscale Kubernetes Deployment
DevOps SRE Interview Question 92 Foreign Key in Relational Databases
Переглядів 2421 день тому
DevOps SRE Interview Question 92 Foreign Key in Relational Databases
DevOps SRE Interview Question 91 2 Broad Strategies to Migrate to Cloud
Переглядів 5021 день тому
DevOps SRE Interview Question 91 2 Broad Strategies to Migrate to Cloud
DevOps SRE Interview Question 90 Best Practices in AWS for Scalability and High Availability
Переглядів 4228 днів тому
DevOps SRE Interview Question 90 Best Practices in AWS for Scalability and High Availability
Devops SRE Interview Question 89 How to Handle Secrets in GitHub Actions
Переглядів 5028 днів тому
Devops SRE Interview Question 89 How to Handle Secrets in GitHub Actions
I just saw all your informative videos. And i really liked it. It is really helpful. Your short notes are straight and understandable.
Thank you very much!
regex tests, they do ask to write in notepad and show what we know
No
Is it worth getting the certificate? Please tell me
If you do not have any experience OR you have less than 2 years experience, then yes
wont the HPA take care of High Requests if you metric scale it with REQUESTS ?
Yes
I was hooked with Kubernetes for DEVOPS but the list never seems to end with Devops just too many things.
You can prioritize the ten topics and go with those. Interviewers do not expect you to know everything
thank you sir for your videos, support and useful info
Thank you!
Thank you for your videos Mamun , they are really helpful in interview preparation. Also could you please publish some videos for GitLab CI.
I will try
Great video however i noticed the resource was specified to be "ingress-with-two-endpoints" otherwise this was explained great.
Thank you!
Yes, it is completely helping me with scenario-based answers.
Thank you!
Sir, you're doing a really great job. Thank you so much for sharing your knowledge.
Thank you so much! Made my day
Please release all videos
I will release one a day. Thanks
Lazaro Mission
Sorry, what is that?
anything on Secret Management ? i dont see anyone mention vault in JD but it seems very popular
You mean AWS Secret Manager or Google Cloud Secret Manager?
@@mamun001 similar , its an opensource tool from Hashicorp for secrets management .
How i can contact you sir ?
LinkedIn is best. Search for Mamun Rashid devops
Thank you
You are most welcome. Thank you for the feedback
Isnt a standard cluster a managedd cluster?
Yes
Hello its 10 cent an hour for standard or autopilot mode and then they also charge networking fees It charged me 70 or 90$ alrwafy
Maybe they have increased their rate. I use minikube on my local computer now. It’s free.
I understand we should know the basics of DB , but as devops do we provide solution part to? ,dont DB admins work on these ?
In majority of cases, DBAs do that. However not all companies have DBAs. In those cases , very senior SREs fill in those responsibilities.
Thanks for the information
You are welcome
Can you also provide practical answers to the questions based on your experience?
Thank you for the feedback. I will try to incorporate those in the future videos
It will be good if you show demo as we will have more clear picture
I will try to find time. Thank you for the feedback
is it possible to get a pdf for your contents please?
That will take lot of manual work. But every video has a modified transcript in the description
Thank you for your dedication.
Thank you!
Informative.
Thank you
Two more , ELK Stack ,Prometheus and grafana seems to be a must.
Yes, you are absolutely correct
Always happy to see a learned person sharing his knowledge. Your videos are a great resource which we can trust to be correct and working. Thanks a lot. Keep it up please.
So nice of you
is there a need for EC2 instances being part of development , as we deploy our codes in kubernetes ?
Nope
Hi Mamun great content a suggestion you should put the slides in full screen mode so its easier ro read the text.
Thanks for the tip. Will do
Really takeaway session.Do you conduct any session to attend?
Do you mean live Q&A?
@@mamun001 yes
Thank you
You're welcome
Thank you
You're welcome
Having worked with 2 clients who used Azure, I noticed they both use Active Directory and some on-prem Windows servers (the old-school way). One was an old bank, and the other a very reputable, old company. Both must have used Microsoft's services way before the cloud. I agree that Microsoft leveraged its existing customer base to market Azure cloud and promote its adoption. All these companies also used other Microsoft services like TEAMs and Ms. Outloook for email On the other hand, startups tend to use AWS/GCP/Digital Ocean and rarely use Microsoft tooling.
Great and relevant questions for SRE. Looking forward for more cheers👍
Thank you!!
Thank you
You're welcome
Is this exam proctored? Will the webcam and audio be monitored as well? And can related questions be found on any platform for preparation without purchasing practice and study sets?
Not proctored. You are on your honor system. Not sure about free ones. But Udemy and Kodekloud has paid courses. Udemy is inexpensive.
thank you for the excellent video.
So nice of you
The links don't work ...
I need to pay my hosting company. I will let you know when that's done. It will be another 3 weeks, though.
3rd point happened to me. I cleared 3 technical rounds, but in the manager round, there were 6 people. only one did not like me. Tough day
Sorry to hear that. Keep going. No one can keep you down.
Thank you
You're welcome
Hello Rashid, i feel you'd be able to answer this, i had a question in one of the interview, How do you find the load average of a single process? I wasn't able to get that right, hope you can help!
top, pidstat or htop will do.
Did this a while back. I would add, configure fail2ban and monitor how many attempts are being made to acces port 22. If you configure alerting, you'll probably see more than 100 attempts the first 30mins. If not able to close port 22, better change ssh port to something else like port 7777. Even better, configure ssh to be accessed via VPN like openssh or wireguard.
Thank you!
your channel is truly a gem! please continue making these videos! I’m blasting through your videos for my interview preps
Thank you! Will do!
This is not lining up with the pricing on GCP. Is this a managed cluster? What if you need it to be available the whole day?
These are managed clusters (GKE). If you keep it running whole day, fee will go up linearly.
@@mamun001 Would they scale down to 0 if no one is using? Meaning, no external api calls..
I have been watching your videos and every single one is a dime!! This one specifically is relatable as I was here not so long ago. Something small I can add is that once someone re-inventing themselves gets that first DevOps/SRE job, work hard. Be the hardest and smartest worker your new company may ever see because that will be an opportunity to practice all the theories learned and begin a new chapter in your career. Once again, thank you for making these videos. I almost watch/listen to them for fun learning when driving or during spare time😃
Thank you so much!! Made my day!
It's really helpful sir 🙏
Thank you
👍👍
Thank you
Awesome, congratulations 🎉
Thank you!!
But how does it help for the CKAD exam? Are there going to be questions related to yaml syntax such as finding and correcting errors in a yaml file? Don't really get the point.
No, no questions on that topic. But as you write your own code to pass the exam (live) , you have to know to troubleshoot your code/syntax in real time.
U mean diffrence between ingress controler dploynnet file(ngnies, istio)and ingress resource yaml for routing rules....!
That is basically true.
Thanks for this information. really useful
Thank you for the feedback!