78 DevOps and SRE Interviews: What They Asked and How to Answer
I'm Om Jaju, a Site Reliability Engineer, ex-Morgan Stanley. I didn't start in tech. I worked in a non-tech role for 9 months, left that job, prepared for one month straight, and got into SRE at Morgan Stanley as a fresher.
I worked there for 1.1 years and then left. Over the next 2.5 months of job hunting I went through 78 interviews across 43 companies and came out with 3 offers. I logged every question and built my interview guides from them. This post shows the kinds of questions to expect and how I would prepare for each.
The four kinds of questions
Most interviews I would prepare for move through these, often on the same tool, getting deeper each time.
- Basics: what is it, and why do we need it?
- Working knowledge: how does it actually behave? For example, how resource requests and limits affect scheduling.
- Design: how would you set this up for a large team or a production system?
- Troubleshooting: something is broken. What do you check first?
Linux and networking questions
Do not skip these. A weak answer on the basics is hard to recover from.
- How does systemd manage services, and how do you check why a service failed to start?
- A server's load average is unusually high. How do you find out whether it is a real problem?
- What is the TCP three-way handshake, and why is it needed before any data is sent?
- A user can't reach your website, but the server looks fine. How do you troubleshoot it?
Kubernetes and Docker questions
- A Pod is stuck in CrashLoopBackOff. Walk through your debugging process.
- A Deployment's Pods are all stuck in Pending. How do you investigate?
- How does the Horizontal Pod Autoscaler work end to end?
- A container exits immediately after starting, although the image builds fine. How do you troubleshoot it?
Cloud, Terraform and CI/CD questions
- What is the difference between a NAT Gateway and an Internet Gateway?
- An application suddenly gets 'access denied' reading from an S3 bucket that worked before. What do you check?
- What is state locking in Terraform, and what problem does it prevent?
- A Terraform plan shows changes to a resource you have not touched. How do you investigate?
- A secret is configured correctly but is not available in a workflow run from a forked pull request. Why?
SRE and observability questions
- How do you calculate error budget burn rate, and why does it matter?
- How would you design an SLO for a new service with no historical data?
- Prometheus's memory usage spikes and it crashes. How do you investigate?
- The same root cause keeps appearing in postmortems but never gets fixed. What do you do?
How to structure an answer
This is the format I use in every answer in my guides. It lets you stop early if the interviewer is satisfied, or go deeper when they push.
- One line: answer the question directly.
- Analogy: explain it so anyone could follow.
- Technical detail: how it works, with the commands or components.
- Scenario: a situation where it matters.
- Best practice: what you would do to prevent or improve it.
A worked example: CrashLoopBackOff
- One line: the container starts, exits, and Kubernetes keeps retrying with a longer delay each time, so the job is to find out why the process exits.
- First check: kubectl describe pod, and read the events, the reason and the exit code.
- Then: kubectl logs with the --previous flag, because the current container may not have logged anything yet.
- Narrow it down: exit code 137 usually means the container was killed, often for running out of memory. An application error needs the logs, config and dependencies checked.
- Best practice: check the exit code before guessing, and fix the cause instead of restarting.
If your interview is soon
- List every tool in the job description and prepare those first.
- Refresh Linux, networking and Git.
- Practise troubleshooting out loud: what you check first, which command, and why.
- Make sure your resume and LinkedIn show the same tools, with your impact written as results.
Keep practising
- Free troubleshooting questions with full answers
- Free interview questions by topic
- How to prepare for a DevOps / SRE interview
- DevOps / SRE Interview Guides (1300+ questions, 19 topics)
Frequently asked questions
What questions are asked in a DevOps interview?
Expect basics, working knowledge, design and troubleshooting questions on Linux, networking, Git, Docker, Kubernetes, a cloud platform, Terraform, CI/CD and monitoring. SRE roles add SLOs, error budgets and incident response.
How should I answer a DevOps scenario question?
Say what you would check first, which command or tool you would use, what each result would tell you, how you would fix it, and how you would stop it happening again.