Mamun Rashid
Mamun Rashid
  • 453
  • 125 150
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!
Переглядів: 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

КОМЕНТАРІ

  • @praveshparashar6452
    @praveshparashar6452 2 дні тому

    I just saw all your informative videos. And i really liked it. It is really helpful. Your short notes are straight and understandable.

    • @mamun001
      @mamun001 5 годин тому

      Thank you very much!

  • @ManiBalajiC
    @ManiBalajiC 3 дні тому

    regex tests, they do ask to write in notepad and show what we know

  • @preetijoshi1437
    @preetijoshi1437 4 дні тому

    Is it worth getting the certificate? Please tell me

    • @mamun001
      @mamun001 4 дні тому

      If you do not have any experience OR you have less than 2 years experience, then yes

  • @ManiBalajiC
    @ManiBalajiC 4 дні тому

    wont the HPA take care of High Requests if you metric scale it with REQUESTS ?

  • @ManiBalajiC
    @ManiBalajiC 6 днів тому

    I was hooked with Kubernetes for DEVOPS but the list never seems to end with Devops just too many things.

    • @mamun001
      @mamun001 5 днів тому

      You can prioritize the ten topics and go with those. Interviewers do not expect you to know everything

  • @gspvsr
    @gspvsr 6 днів тому

    thank you sir for your videos, support and useful info

  • @jaideepojha7830
    @jaideepojha7830 6 днів тому

    Thank you for your videos Mamun , they are really helpful in interview preparation. Also could you please publish some videos for GitLab CI.

  • @LoLhEnRy88
    @LoLhEnRy88 7 днів тому

    Great video however i noticed the resource was specified to be "ingress-with-two-endpoints" otherwise this was explained great.

  • @gspvsr
    @gspvsr 7 днів тому

    Yes, it is completely helping me with scenario-based answers.

  • @govindraj8696
    @govindraj8696 8 днів тому

    Sir, you're doing a really great job. Thank you so much for sharing your knowledge.

    • @mamun001
      @mamun001 8 днів тому

      Thank you so much! Made my day

  • @VthePeople4156
    @VthePeople4156 12 днів тому

    Please release all videos

    • @mamun001
      @mamun001 9 днів тому

      I will release one a day. Thanks

  • @LindaJones-g2q
    @LindaJones-g2q 12 днів тому

    Lazaro Mission

    • @mamun001
      @mamun001 12 днів тому

      Sorry, what is that?

  • @ManiBalajiC
    @ManiBalajiC 12 днів тому

    anything on Secret Management ? i dont see anyone mention vault in JD but it seems very popular

    • @mamun001
      @mamun001 12 днів тому

      You mean AWS Secret Manager or Google Cloud Secret Manager?

    • @ManiBalajiC
      @ManiBalajiC 12 днів тому

      @@mamun001 similar , its an opensource tool from Hashicorp for secrets management .

  • @karammahmoud1318
    @karammahmoud1318 13 днів тому

    How i can contact you sir ?

    • @mamun001
      @mamun001 13 днів тому

      LinkedIn is best. Search for Mamun Rashid devops

  • @olawunmiogunseye327
    @olawunmiogunseye327 15 днів тому

    Thank you

    • @mamun001
      @mamun001 13 днів тому

      You are most welcome. Thank you for the feedback

  • @pjmclenon
    @pjmclenon 15 днів тому

    Isnt a standard cluster a managedd cluster?

  • @pjmclenon
    @pjmclenon 15 днів тому

    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

    • @mamun001
      @mamun001 15 днів тому

      Maybe they have increased their rate. I use minikube on my local computer now. It’s free.

  • @ManiBalajiC
    @ManiBalajiC 15 днів тому

    I understand we should know the basics of DB , but as devops do we provide solution part to? ,dont DB admins work on these ?

    • @mamun001
      @mamun001 15 днів тому

      In majority of cases, DBAs do that. However not all companies have DBAs. In those cases , very senior SREs fill in those responsibilities.

  • @architattrey6680
    @architattrey6680 16 днів тому

    Thanks for the information

    • @mamun001
      @mamun001 15 днів тому

      You are welcome

  • @gideonasewboafo6238
    @gideonasewboafo6238 16 днів тому

    Can you also provide practical answers to the questions based on your experience?

    • @mamun001
      @mamun001 16 днів тому

      Thank you for the feedback. I will try to incorporate those in the future videos

  • @Fettle587
    @Fettle587 17 днів тому

    It will be good if you show demo as we will have more clear picture

    • @mamun001
      @mamun001 16 днів тому

      I will try to find time. Thank you for the feedback

  • @olawunmiogunseye327
    @olawunmiogunseye327 17 днів тому

    is it possible to get a pdf for your contents please?

    • @mamun001
      @mamun001 17 днів тому

      That will take lot of manual work. But every video has a modified transcript in the description

  • @olawunmiogunseye327
    @olawunmiogunseye327 17 днів тому

    Thank you for your dedication.

  • @Fettle587
    @Fettle587 19 днів тому

    Informative.

  • @ManiBalajiC
    @ManiBalajiC 22 дні тому

    Two more , ELK Stack ,Prometheus and grafana seems to be a must.

    • @mamun001
      @mamun001 21 день тому

      Yes, you are absolutely correct

  • @asbat88
    @asbat88 24 дні тому

    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.

  • @ManiBalajiC
    @ManiBalajiC 24 дні тому

    is there a need for EC2 instances being part of development , as we deploy our codes in kubernetes ?

  • @zeemon83
    @zeemon83 26 днів тому

    Hi Mamun great content a suggestion you should put the slides in full screen mode so its easier ro read the text.

    • @mamun001
      @mamun001 26 днів тому

      Thanks for the tip. Will do

  • @Fettle587
    @Fettle587 26 днів тому

    Really takeaway session.Do you conduct any session to attend?

    • @mamun001
      @mamun001 26 днів тому

      Do you mean live Q&A?

    • @Fettle587
      @Fettle587 26 днів тому

      @@mamun001 yes

  • @Photomonon
    @Photomonon 28 днів тому

    Thank you

    • @mamun001
      @mamun001 28 днів тому

      You're welcome

  • @olawunmiogunseye327
    @olawunmiogunseye327 29 днів тому

    Thank you

    • @mamun001
      @mamun001 28 днів тому

      You're welcome

  • @MrGachango
    @MrGachango Місяць тому

    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.

  • @iccfantv5645
    @iccfantv5645 Місяць тому

    Great and relevant questions for SRE. Looking forward for more cheers👍

  • @olawunmiogunseye327
    @olawunmiogunseye327 Місяць тому

    Thank you

    • @mamun001
      @mamun001 Місяць тому

      You're welcome

  • @ansarizaid5140
    @ansarizaid5140 Місяць тому

    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?

    • @mamun001
      @mamun001 Місяць тому

      Not proctored. You are on your honor system. Not sure about free ones. But Udemy and Kodekloud has paid courses. Udemy is inexpensive.

  • @olawunmiogunseye327
    @olawunmiogunseye327 Місяць тому

    thank you for the excellent video.

    • @mamun001
      @mamun001 Місяць тому

      So nice of you

  • @salimmeghara6410
    @salimmeghara6410 Місяць тому

    The links don't work ...

    • @mamun001
      @mamun001 Місяць тому

      I need to pay my hosting company. I will let you know when that's done. It will be another 3 weeks, though.

  • @mahi_mad
    @mahi_mad Місяць тому

    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

    • @mamun001
      @mamun001 Місяць тому

      Sorry to hear that. Keep going. No one can keep you down.

  • @JosephineZola
    @JosephineZola Місяць тому

    Thank you

    • @mamun001
      @mamun001 Місяць тому

      You're welcome

  • @SinghinKannada
    @SinghinKannada Місяць тому

    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!

    • @mamun001
      @mamun001 Місяць тому

      top, pidstat or htop will do.

  • @MrGachango
    @MrGachango Місяць тому

    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.

  • @rizas3006
    @rizas3006 Місяць тому

    your channel is truly a gem! please continue making these videos! I’m blasting through your videos for my interview preps

    • @mamun001
      @mamun001 Місяць тому

      Thank you! Will do!

  • @deltagamma1442
    @deltagamma1442 Місяць тому

    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?

    • @mamun001
      @mamun001 Місяць тому

      These are managed clusters (GKE). If you keep it running whole day, fee will go up linearly.

    • @deltagamma1442
      @deltagamma1442 Місяць тому

      @@mamun001 Would they scale down to 0 if no one is using? Meaning, no external api calls..

  • @MrGachango
    @MrGachango Місяць тому

    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😃

    • @mamun001
      @mamun001 Місяць тому

      Thank you so much!! Made my day!

  • @vishalp3756
    @vishalp3756 Місяць тому

    It's really helpful sir 🙏

  • @wanderadi
    @wanderadi Місяць тому

    👍👍

  • @aakashpunekar9437
    @aakashpunekar9437 Місяць тому

    Awesome, congratulations 🎉

  • @samuelude6858
    @samuelude6858 Місяць тому

    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.

    • @mamun001
      @mamun001 Місяць тому

      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.

  • @GopalRoy-nn6ft
    @GopalRoy-nn6ft Місяць тому

    U mean diffrence between ingress controler dploynnet file(ngnies, istio)and ingress resource yaml for routing rules....!

    • @mamun001
      @mamun001 Місяць тому

      That is basically true.

  • @navajyothms1989
    @navajyothms1989 Місяць тому

    Thanks for this information. really useful

    • @mamun001
      @mamun001 Місяць тому

      Thank you for the feedback!