Behavioral interview questions for DevOps and SRE
6 questions. Incidents you handled, disagreements, mistakes, learning fast, on-call and why this work. Each has a strong answer of about a minute and the points an interviewer listens for.
01
Tell me about a time something broke in production, or in a project, and you had to fix it. What happened, and what did you do?
A strong answer
In my last project our checkout API started returning errors one evening, and about a third of customers couldn't pay. I checked the dashboard and saw errors began right after a deploy, and the logs showed database connection timeouts. The new release had lowered the connection pool size by mistake. I rolled back first to stop the impact, which took five minutes, then fixed the config and redeployed. Afterwards I wrote a short postmortem, and we added an alert on error rate after each deploy and a test that checks the pool settings. It hasn't happened again.
What the interviewer listens for
- Say what broke and who it affected. Interviewers first want the stakes. One sentence on the impact frames everything after it.
- Explain how you found the cause. The core of the question is how you debug under pressure, so walk through the evidence you looked at.
- Describe the fix. Say concretely what you changed to stop the impact.
- Share what you changed afterwards so it doesn't happen again. The best answers end with prevention. It shows you think beyond the immediate fire.
Likely follow-up: “If you'd been unable to roll back, what would you have done?”
Practise answering it02
Tell me about a time you disagreed with a teammate about a technical decision. How did you handle it?
A strong answer
In a team project a teammate wanted to store user sessions in the app servers' memory, and I preferred Redis. I asked why, and his concern was the extra component to run. That was fair. Instead of arguing we tested both: with two app servers, the in-memory version logged people out every time the load balancer switched them. We showed the team the result and agreed on Redis, and he set it up with a simple config. It worked well, and I learned to bring a small test instead of opinions.
What the interviewer listens for
- Name the decision you disagreed on. A concrete technical topic makes the story believable.
- Show you listened to their side. Teams hire people who can disagree without fighting. Show you tried to understand first.
- Use evidence or a small test to settle it. Settling it with evidence instead of opinion is what interviewers listen for.
- Say how it ended. Finish the story. Even "we went with their idea and it was fine" is a good ending.
Likely follow-up: “What if the test had shown your teammate was right?”
Practise answering it03
Tell me about a time you had to learn a new technology quickly to get something done.
A strong answer
When I joined a project, the team deployed everything with Terraform and I'd never used it. I had two weeks before I owned the staging environment. I read the official tutorial, then rebuilt our staging network in a sandbox account so I could break it safely, and asked a teammate to review my first changes. By the end of the second week I shipped a change that added a new database to staging through a pull request, and I still use that sandbox to try changes first.
What the interviewer listens for
- Name the technology and why you needed it. Be specific. "A new tool" is forgettable, "Terraform in two weeks" isn't.
- Explain how you learned it. Interviewers want your learning method, because the stack will change again.
- Say what you delivered. Learning is only the means. End with the thing that worked.
Likely follow-up: “What's something you're learning right now?”
Practise answering it04
Tell me about a mistake you made at work or in a project. What happened next?
A strong answer
In a project I ran a cleanup script against the wrong folder and deleted a week of test uploads. I told the team right away, and we restored most of the files from the nightly backup within an hour. Since then I always do a dry run first and print what a script will touch before it deletes anything, and I added a confirmation step to our cleanup script.
What the interviewer listens for
- Own the mistake clearly. Interviewers test honesty here. Say "I" and be specific.
- Say how you fixed or contained it. Show you acted quickly and told people, rather than hiding it.
- Share what you do differently now. The lesson is the point of the question.
Likely follow-up: “How did your team react when you told them?”
Practise answering it05
Why do you want to work in DevOps, SRE or cloud infrastructure?
A strong answer
I enjoy the moment when a broken system makes sense again. In my final-year project I ended up owning the deployment: I set up Docker, a small CI pipeline and monitoring, and I found I liked that part more than writing features. Since then I've practised on Kubernetes labs and run a small cluster at home. In this role I'd like to help developers ship safely and keep things reliable for users, which is exactly that work.
What the interviewer listens for
- Give a real reason that's yours. Interviewers want to hear genuine motivation, not a definition of DevOps.
- Back it with something you've done. A concrete example turns "I'm interested" into evidence.
- Connect it to the team or company. Ending on what you'd bring to them shows you thought about the job, not just the field.
Likely follow-up: “What part of the job do you think you'd find hardest?”
Practise answering it06
This role includes on-call. How do you stay effective when something is down and people are waiting on you?
A strong answer
I try to follow the same steps every time. First I confirm the impact and stop it as quickly as possible, for example by rolling back the last deploy, even before I fully understand the cause. While I work, I post short updates in the incident channel every fifteen minutes so people know what's happening. If I'm not making progress within the agreed time, I escalate and page a teammate rather than struggle alone. Once service is back, I take time to find the root cause and write it up.
What the interviewer listens for
- Stay calm and follow a process. Interviewers want to hear that you have a method, not just nerves of steel.
- Stop the impact before finding the root cause. Restoring service first, then investigating, is the main on-call habit.
- Communicate while you work. Silence during an incident makes everyone more anxious. Regular updates are part of the job.
- Ask for help when needed. Knowing when to escalate is a strength, not a weakness.
Likely follow-up: “How do you decide when it's time to escalate?”
Practise answering it
Ready for the real thing?
A timed interview asks questions like these one at a time, adds quick questions, a design and a hands-on task on a real machine, and ends with a hire or no-hire scorecard.
Take a practice interview