Mamun Rashid
Mamun Rashid
  • 421
  • 112 715
Devops SRE Real Interview Question 87 How to Lock and Unlock Terraform State file
Hello, everyone. Today's topic is a real DevOps question I encountered a couple of years ago. I found the answer, but it wasn't straightforward. I'll share both the question and the answer with you today.
Before diving in, I want to encourage you to subscribe to my channel. Knowing that people are subscribing and benefiting from the content motivates me to create even more videos.
Now, the question was: "How do you lock the remote Terraform state file, and how do you force unlock it?"
At the time, I wasn't aware that if you use a remote state file on AWS S3, Azure, GCP, or HashiCorp Console, the state file is automatically locked during an apply operation. This means that no two people can apply changes simultaneously, which prevents issues with the backend state file.
However, if the state file is locked due to an error or some other issue, and you need to force unlock it, the command to use is `terraform force-unlock`. To execute this, you’ll need the lock ID, which is provided in the error message when an apply fails. Alternatively, you can find the lock ID within the state file itself.
So, those were the questions and answers I received a few years ago. I hope you found this video helpful, and I look forward to seeing you in the next one.
zhlédnutí: 3

Video

Please Follow advicewitherin for General Interview Questions and Answers
zhlédnutí 13Před 17 hodinami
I wanted to take a moment to introduce you to someone I recently discovered on CZcams. Her channel is called "Advice with Aaron." To clarify, I have no personal connection with her and don't know her outside of her online presence. CZcams recommended her videos to me, and I've been watching them with great interest. She covers those common interview questions that everyone encounters, such as "...
DevOps SRE Real Interview Question 86 Hiding Secrets in Terraform
zhlédnutí 18Před 2 hodinami
Today, I want to discuss a question I encountered during an interview a few years ago-one that I successfully answered and feel is important to share with you. It’s a great example of the kind of technical questions that can come up, and I hope it prepares you for similar scenarios. Before we dive in, please consider subscribing to my channel. Your support motivates me to continue creating valu...
DevOps SRE Real Interview Question 85 Access Kubernetes Pod Ports
zhlédnutí 37Před 4 hodinami
Today's interview question is one I encountered a few years ago during an actual interview. At that time, I only knew one of the correct answers, but with this video, you'll learn all three, so you'll be fully prepared. Before we dive in, please consider subscribing to my channel. Your support shows me that these videos are helpful, which motivates me to create more content like this. Let's get...
DevOps SRE Real Interview Question 84 Common Terraform Modules
zhlédnutí 44Před 7 hodinami
Hello everyone, Today, I want to discuss a question I was asked in an interview about three years ago. Although I knew the answer, I completely froze. I’m sharing this with you so you can be better prepared. It wasn’t a difficult question, but I just couldn’t recall the answer in the moment. Before we dive in, if you find these videos helpful, please subscribe to my channel. Your support motiva...
DevOps SRE Real Interview Question 83 Ways GCP Helps You Monitor Applications and Infrastructure
zhlédnutí 18Před 9 hodinami
Today's topic revolves around a DevOps interview question related to GCP. A few years ago, someone asked me this question, and at that time, I wasn't aware that GCP offered a comprehensive suite of monitoring tools. The question was: *How does GCP help you monitor your infrastructure and applications?* Back then, I couldn't provide a clear answer, but I've learned a lot since then. Before divin...
Signs That Your DevOps/SRE Interview Went Poorly
zhlédnutí 40Před 12 hodinami
Today, I'm taking a different approach from my previous video, where I discussed signs that your interview went well. This time, I want to talk about the signs that indicate your interview might not have gone as well. Some of these points may be the exact opposite of what I mentioned before, but it's important to recognize them so you can manage your expectations accordingly. Before we dive in,...
Top 20 DevOps SRE Skills Sorted by Importance Backed Up Linkedin Research
zhlédnutí 45Před 14 hodinami
Today, I am presenting the results of a research analysis I recently conducted. Periodically, I perform such analyses to assess which skills and technologies are most in demand for DevOps and SRE roles. Before I delve into the findings, I kindly request that you subscribe to my channel. Your support motivates me to continue creating daily content. The objective of this research was to identify ...
DevOps/SRE Interview Question: 81 : Difference between Stack and Heap in Memory Management
zhlédnutí 30Před 16 hodinami
In this video, I discuss the difference between heap and stack memory in the context of memory management, particularly for DevOps engineers or Site Reliability Engineers (SREs). Introduction: I highlight the importance of having a background in software engineering for DevOps engineers or SREs, even at a junior level. Senior roles require a comprehensive understanding of software engineering. ...
My DevOps SRE Interview Went Well, But I Did Not Get The Job, Why ??
zhlédnutí 49Před 19 hodinami
Hello everyone. Today, I'd like to discuss a topic that can be quite challenging and one that many of us have faced in our careers. It's a situation that happens more often than we would like. Imagine you’ve gone through interviews that seemed to go well, yet you didn’t get the job. You're left wondering, "What happened? What did I do wrong?" It's crucial to understand that many of the reasons ...
DevOps SRE Interview Question 82 Count Frequencies of Unique Words
zhlédnutí 34Před 21 hodinou
Today, I'd like to share an interview question I encountered a few years ago. The task was to devise an algorithm for a shell script. Admittedly, I didn't arrive at the correct solution at the time. Initially, I wasn't sure how to approach this in a shell script, so I opted to use Golang. However, as I delved into defining maps and other constructs, I realized that my solution was far from corr...
Signs That Your DevOps/SRE Interview Went Well
zhlédnutí 73Před dnem
Today's topic is understanding the signs that indicate whether your interview went well. Over the years, having participated in over 200 interviews, I've identified several key indicators that can help you gauge the success of your interview. First and foremost, it's important to recognize that most interviews are generally pleasant and friendly. This alone doesn't necessarily mean the intervie...
DevOps/SRE Interview: Why is the Interviewer Asking Tough Questions in the End of The Interview??
zhlédnutí 35Před dnem
Have you ever noticed that during an interview, you might encounter a mix of easy and difficult questions? Perhaps you've done well for the first 40 minutes of an hour-long interview, but then, as it’s nearing the end and right before it's your turn to ask questions, the interviewer begins to ask deeper and more challenging questions. Why does this happen? You've already answered so many questi...
DevOps/SRE Interview: What Questions to Ask the Interviewer
zhlédnutí 39Před dnem
Today, I'd like to discuss the questions you should ask your interviewer. Typically, at the end of an interview, you'll be given the opportunity to ask questions. It's important to ask at least one question, but no more than three. If you find this channel useful, please consider subscribing-it really motivates me to create more content. Now, let's dive into the topic. Why should you ask betwee...
DevOps/SRE Jobs: Should I Keep Applying??
zhlédnutí 81Před dnem
There have been moments when I found myself in a tough spot, relentlessly applying for jobs, only to be met with rejection emails or, worse, silence. It can be disheartening, even depressing. But here's the thing: you must keep going. Why? Because persistence pays off. The truth is, out of every hundred job applications you submit, even if you're a great fit, you might only get a callback five ...
DevOps/SRE Coding Interview Question 114 Callback Function in Golang
zhlédnutí 39Před 14 dny
DevOps/SRE Coding Interview Question 114 Callback Function in Golang
Devops SRE Coding Interview Question 78 Channels in Golang
zhlédnutí 42Před 14 dny
Devops SRE Coding Interview Question 78 Channels in Golang
DevOps/SRE: Why Am I Not Getting An Offer? What Is The Normal Rejection Rate?
zhlédnutí 71Před 14 dny
DevOps/SRE: Why Am I Not Getting An Offer? What Is The Normal Rejection Rate?
What to Do 1 Hour Before Your DevOps/SRE Interview? How to Get ready?
zhlédnutí 95Před 14 dny
What to Do 1 Hour Before Your DevOps/SRE Interview? How to Get ready?
A Guaranteed Project Question for DevOps/SRE Interview
zhlédnutí 107Před 14 dny
A Guaranteed Project Question for DevOps/SRE Interview
DevOps/SRE Interview Question: 83 : Terraform: How to Destroy and Re-create Only One Resource
zhlédnutí 56Před 14 dny
DevOps/SRE Interview Question: 83 : Terraform: How to Destroy and Re-create Only One Resource
DevOps/SRE Interview Question:82: In Kubernetes, what are the differences b/w daemonset & deployment
zhlédnutí 48Před 14 dny
DevOps/SRE Interview Question:82: In Kubernetes, what are the differences b/w daemonset & deployment
What Do They Ask During DevOps/SRE Coding Interviews ??
zhlédnutí 83Před 21 dnem
What Do They Ask During DevOps/SRE Coding Interviews ??
DevOps/SRE Interview Question 79: 14 Layers of DevOps Stack
zhlédnutí 207Před 21 dnem
DevOps/SRE Interview Question 79: 14 Layers of DevOps Stack
DevOps/SRE Terraform Interview Question: 78: When to use .tfvars files in Terraform?
zhlédnutí 59Před 21 dnem
DevOps/SRE Terraform Interview Question: 78: When to use .tfvars files in Terraform?
DevOps SRE Coding Interview Question 77 Goroutines in Golang
zhlédnutí 39Před 21 dnem
DevOps SRE Coding Interview Question 77 Goroutines in Golang
A Special Message on Reaching 2000 Subscribers! (DevOps/SRE)
zhlédnutí 584Před 21 dnem
A Special Message on Reaching 2000 Subscribers! (DevOps/SRE)
Coding Interview Coding Question 76: HTTP Get in Golang
zhlédnutí 51Před 21 dnem
Coding Interview Coding Question 76: HTTP Get in Golang
Golang Install , Set up in VSCode and Live Troubleshooting Demo
zhlédnutí 26Před 21 dnem
Golang Install , Set up in VSCode and Live Troubleshooting Demo
DevOps/SRE Interview Question 76: How to Set Up a Budget Alert in GCP
zhlédnutí 70Před měsícem
DevOps/SRE Interview Question 76: How to Set Up a Budget Alert in GCP

Komentáře

  • @olawunmiogunseye327
    @olawunmiogunseye327 Před 15 hodinami

    Thank you

  • @ansarizaid5140
    @ansarizaid5140 Před dnem

    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 Před dnem

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

  • @olawunmiogunseye327

    thank you for the excellent video.

  • @salimmeghara6410
    @salimmeghara6410 Před 4 dny

    The links don't work ...

    • @mamun001
      @mamun001 Před 3 dny

      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 Před 6 dny

    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 Před 6 dny

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

  • @user-qh3jr9gi6t
    @user-qh3jr9gi6t Před 7 dny

    Thank you

  • @SinghinKannada
    @SinghinKannada Před 8 dny

    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 Před 8 dny

      top, pidstat or htop will do.

  • @MrGachango
    @MrGachango Před 8 dny

    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 Před 10 dny

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

  • @deltagamma1442
    @deltagamma1442 Před 10 dny

    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 Před 10 dny

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

    • @deltagamma1442
      @deltagamma1442 Před 10 dny

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

  • @MrGachango
    @MrGachango Před 10 dny

    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 Před 10 dny

      Thank you so much!! Made my day!

  • @vishalp3756
    @vishalp3756 Před 11 dny

    It's really helpful sir 🙏

  • @wanderadi
    @wanderadi Před 12 dny

    👍👍

  • @aakashpunekar9437
    @aakashpunekar9437 Před 15 dny

    Awesome, congratulations 🎉

  • @samuelude6858
    @samuelude6858 Před 15 dny

    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 Před 15 dny

      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 Před 16 dny

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

    • @mamun001
      @mamun001 Před 15 dny

      That is basically true.

  • @navajyothms1989
    @navajyothms1989 Před 16 dny

    Thanks for this information. really useful

    • @mamun001
      @mamun001 Před 16 dny

      Thank you for the feedback!

  • @anil-kumar75
    @anil-kumar75 Před 17 dny

    Kudos to your consistency in putting videos daily eventhough there was less reach, I hope your channel grows faster in future. Thanks for this videos

  • @wanderadi
    @wanderadi Před 17 dny

    thank you soo much master, for posting daily videos..

    • @mamun001
      @mamun001 Před 17 dny

      Thank you for the feedback!

  • @suchethkumar8998
    @suchethkumar8998 Před 18 dny

    Hi Mamun Rashid, I'm having 5 years of complete NON-IT backgrounf , how can i learn devops , is there any posibility to become cloud or devops engineer .

    • @mamun001
      @mamun001 Před 18 dny

      Yes , of course! Please watch this: czcams.com/video/MiVjwy6bShs/video.html (or similar videos from others on CZcams)

  • @BADGAYAN
    @BADGAYAN Před 22 dny

    Can you please help me with this 1. Can i use pen and paper? 2. Is it a proctored exam? Thanks

  • @SinghinKannada
    @SinghinKannada Před 22 dny

    Your channel is a goldmine, thankyou

  • @thejaswarup
    @thejaswarup Před 23 dny

    Congratulations 🎊. I have a question, if we are using aks with keyvault with all the setup needed. How can mounted secret can be set as environment variable for any app in pod to connect.

    • @mamun001
      @mamun001 Před 20 dny

      I did not know. So, I asked chatGPT (paid version). chatgpt.com/share/0c75ca68-90c5-4398-ab1d-d3ac1df0a76e

    • @thejaswarup
      @thejaswarup Před 11 dny

      @@mamun001 Thank you for the response, after debug found setting secret along with SecretProviderClass could add as an env and use as secret. secretObjects: - data: - key: APP_DB_URL objectName: DEV-APP-DB-URL - key: APP_DB_PASS objectName: DEV-APP-DB-PASS secretName: app-predev-secret type: Opaque

  • @RavikFic
    @RavikFic Před 23 dny

    Thats great. congrats sir. I'm learning DevOps. I want to know how much of Networking is needed. which topics are mandatory and which are good to know. which topics are used in day to day job. can you make a video on this. thanks

    • @mamun001
      @mamun001 Před 23 dny

      Thank you. Networking does not come up very often during the interviews. But, it is needed somewhat day to day. Other major topics needed day to day: Coding, Terraform, Cloud familiarity and troubleshooting real problems.

  • @HellCRICKET
    @HellCRICKET Před 24 dny

    Congratulations 🎉

  • @MrVisheshsingh
    @MrVisheshsingh Před 24 dny

    Thanks to your work with the CKAD playlist. I learned a lot and got my certification 🎉

    • @mamun001
      @mamun001 Před 23 dny

      That's great to hear. Thank you and Congratulations!

  • @ravisankar-l6z
    @ravisankar-l6z Před měsícem

    thank you for the clear explanation

  • @MeghanaAvadhanam-l5x
    @MeghanaAvadhanam-l5x Před měsícem

    hi I get the same error that you did, how did you overcome it? port-forwarding the pod also doesn't seem to work

  • @JohnJohn-sf1df
    @JohnJohn-sf1df Před měsícem

    I failed this exam 3 times. The paragraph questions are ridiculous. I will try again soon, but the test is difficult because of the questions, not the material. The questions are 1 or 2 paragraphs, very confusing, many multiple answer questions, and time management is very difficult. Every attempt I finished a little sooner, but I never had more than 20 or so minutes to review marked questions. I also did Stephane's course, Neil's course and Cantrill's courses. Still failed 3 times. The question pool needs to be completely overhauled. I would love to find a course that really prepares you for the exam, because this exam is beast due to the wordy and multi-paragraph questions. AWS Security was a breeze compared to this one.

    • @mamun001
      @mamun001 Před 26 dny

      Ya, I am not a fan of this test at all. It almost feels like , there is something inherently wrong with the test.

  • @prasadbhagwat1987
    @prasadbhagwat1987 Před měsícem

    kubectl get pod -A -o jsonpath='{range .items[*]}{.status.podIP}{" "}{end}' is better solution for this

  • @yebba78
    @yebba78 Před měsícem

    Hi Mamun, thank you for creating this video. May I ask if the certification needs to be renewed? If so, how often? Thank you.

    • @mamun001
      @mamun001 Před 26 dny

      I rarely renew my certs.

  • @ahmedsaif4541
    @ahmedsaif4541 Před měsícem

    #skipped: Means the task was skipped either because it didn’t meet a condition specified in the playbook (using when statements) or because it had already been completed successfully in a previous run (using check_mode or always_run). #rescued: This status is less common and indicates that a task encountered an error but Ansible was able to recover from it or retry the task.

  • @ahmedsaif4541
    @ahmedsaif4541 Před měsícem

    Amazing explaination

  • @ahmedsaif4541
    @ahmedsaif4541 Před měsícem

    I tried to apply the changes on the fly as i used to do but changes were not saved! so i ran kubectl patch deployment ...etc command

  • @ahmedsaif4541
    @ahmedsaif4541 Před měsícem

    Hi Mamun , thank you for community efforts , but kubernete scheduler by defualt schedule the pods randomly based on the suitable available node cpu/memory and the way you mentioned won't add any value if we don't use taint/tolerance , right ?!

    • @mamun001
      @mamun001 Před 26 dny

      I think you are right.

  • @ahmedsaif4541
    @ahmedsaif4541 Před měsícem

    You are super hero , i never heard someone explain it in that easy way

  • @GopalRoy-nn6ft
    @GopalRoy-nn6ft Před 2 měsíci

    Sticky session can be done on both

  • @VivekYadav-og4lt
    @VivekYadav-og4lt Před 2 měsíci

    Hi did you take mock interviews for devops? or any mentorship

    • @mamun001
      @mamun001 Před 26 dny

      I use chatgpt to throw me example interview questions. If chatgpt does not ask the right question, guide it as chatgpt is conversational. I have the paid ($20 monthly) version.

  • @thesoulchef7
    @thesoulchef7 Před 2 měsíci

    Sir when I am entering the password in argocd, it gives an error saying invalid username or password

    • @mamun001
      @mamun001 Před 26 dny

      I ran into the same issue. In my case, I had to use echo -n OR I put the encoded text on a online decoding tool.

  • @lucaslanza4294
    @lucaslanza4294 Před 2 měsíci

    Excellent video, short and precise 👏

    • @mamun001
      @mamun001 Před 26 dny

      Glad you liked it. Thank you.

  • @DarkLord-pm1eg
    @DarkLord-pm1eg Před 2 měsíci

    Thank you for sharing your experience. I just completed my PCEP exam, and scored 83%

    • @mamun001
      @mamun001 Před 26 dny

      All the best. Congratulations!

    • @PradeepKumar-ng9rs
      @PradeepKumar-ng9rs Před 7 dny

      Hey, I need your Help, How can I get the answers and practice set?

  • @VISHALJAIN-qp9fp
    @VISHALJAIN-qp9fp Před 2 měsíci

    Very helpful and great series.....Would request a series for senior devops/sre roles or provide resources for the same.

  • @asiorgad1
    @asiorgad1 Před 2 měsíci

    nice explaination, i would just separte the "TOIL" to a different video. awsome content

  • @OmoruyiOmofonmwan
    @OmoruyiOmofonmwan Před 2 měsíci

    Thanks for this breakdown man

  • @DeshiDeepa-lw2xk
    @DeshiDeepa-lw2xk Před 2 měsíci

    Thank you:)

  • @grecci
    @grecci Před 3 měsíci

    Thank you for you honesty and insightful message!

  • @deyoz1
    @deyoz1 Před 3 měsíci

    I passed with 97 percent...took udemy practice exams. Which were much harder than the actual exam.

    • @TheInternetFan
      @TheInternetFan Před měsícem

      Congrats! Which practice test did you buy? Just a couple of days ago, I squeaked by and got 76% . The exam _per se_ was tough and a bit disappointing since I was scoring 96% on official OpenEDG practice tests. I didn't have much time left to go over some flagged questions so I'm not surprised I passed with low marks. Anyway, glad we both passed 😂

    • @mamun001
      @mamun001 Před 26 dny

      Thanks for the tip!

    • @mamun001
      @mamun001 Před 26 dny

      I did not take any course, maybe that's why :-)

  • @giveaway4002
    @giveaway4002 Před 3 měsíci

    check the logs with the username , reason why it failed to authenticate , I guess..

  • @lagimsettimuralinadh1295
    @lagimsettimuralinadh1295 Před 3 měsíci

    Hi sir is it still worth to learn devops and secure a job a in United states

    • @mamun001
      @mamun001 Před 26 dny

      Yes

    • @lagimsettimuralinadh1295
      @lagimsettimuralinadh1295 Před 26 dny

      @@mamun001 thank you sir do you have any idea about specific tools that will has huge market still and future like CI/CD or Ansible or like that

  • @mahi_mad
    @mahi_mad Před 3 měsíci

    I guess you have a wrong title to the video, however thanks for the video. I know now that we can regenerate the pub key :)