DevOps and site reliability: interview questions and model answers
Each question below shows what interviewers look for, a model answer in four parts, the follow-up questions they are likely to ask next and the most common mistake. Read it, then say your own version aloud.
Open the interview drill1. Why do you want to work in DevOps or site reliability?
What interviewers look for: Genuine interest in reliability, automation and collaboration, backed by experience.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I enjoy the point where software meets real users, because that's where reliability really matters.
- Main reason
- In my current role as a backend developer, I volunteered to own our deployment pipeline and found I liked improving it more than writing features.
- Evidence
- I cut our deployment time from forty minutes to eight and helped the team move from monthly to daily releases.
- Link to the role
- I want a role where making systems reliable and developers productive is the main job, not a side project.
Likely follow-up questions
- What do you think is the difference between DevOps and site reliability engineering?
- Which part of the work do you enjoy least?
Avoid: Avoid saying you want to avoid coding or meetings, because the role needs both strong engineering and close collaboration.
Practise this question aloud2. How would you design a CI/CD pipeline for a web service?
What interviewers look for: A clear, staged pipeline with fast feedback, automated testing, security checks and safe deployment.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- On every pull request, I'd run linting, unit tests and a dependency vulnerability scan, aiming for feedback in under ten minutes.
- Main reason
- After merging, the pipeline would build one immutable artefact, such as a container image, tag it with the commit and store it in a registry.
- Evidence
- That same artefact would be deployed to staging, where integration and smoke tests run, and then promoted to production with a gradual rollout.
- Link to the role
- I'd add automatic rollback on failed health checks and make every step visible, so developers can see exactly where a change is.
Likely follow-up questions
- How would you keep the pipeline fast as the test suite grows?
- Where would you put manual approval, if anywhere?
Avoid: Avoid building different artefacts for each environment, because it means you never test exactly what you release.
Practise this question aloud3. Tell me about a production incident you helped resolve.
What interviewers look for: Calm triage, clear communication, mitigation before root cause, and follow-up actions.
Model answer
Answer structure: Situation, Task, Action, and Result
- Situation
- One evening our checkout service started returning errors for about a fifth of customers.
- Task
- I was on call and needed to restore service quickly and keep stakeholders informed.
- Action
- I opened an incident channel, posted updates every fifteen minutes and checked recent changes. A configuration change had reduced the database connection limit, so I rolled it back first to stop the impact, then confirmed the cause with the logs.
- Result
- Service recovered within twenty-five minutes, and our postmortem led to validation checks on configuration changes so the same mistake can't reach production again.
Likely follow-up questions
- How did you decide to roll back rather than fix forward?
- What did you communicate to non-technical stakeholders?
Avoid: Avoid an answer that focuses only on the technical fix, because incident handling is also about communication and prevention.
Practise this question aloud4. How do you run a blameless postmortem?
What interviewers look for: Focusing on systems rather than individuals, a clear timeline, contributing factors and owned actions.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I start by making it clear that we're looking at how the system allowed the failure, not who made a mistake.
- Main reason
- We build a timeline from logs and chat history, then look at contributing factors, such as missing alerts, unclear runbooks or risky defaults.
- Evidence
- Each action has an owner and a due date, and we prioritise actions that prevent a whole class of failures rather than one exact repeat.
- Link to the role
- I share the write-up widely, because other teams often learn as much from it as we do.
Likely follow-up questions
- What would you do if someone clearly ignored a procedure?
- How do you make sure postmortem actions are actually completed?
Avoid: Avoid suggesting blameless means no accountability, because owners for follow-up actions are essential.
Practise this question aloud5. What is your approach to infrastructure as code?
What interviewers look for: Version control, review, modularity, testing and avoiding manual drift.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- All infrastructure should be defined in code, stored in version control and changed through the same review process as application code.
- Main reason
- I keep it modular, with reusable components for common patterns such as networks or databases, so teams don't copy and paste.
- Evidence
- Every change shows a plan before it's applied, and I run automatic checks for security issues and policy breaches in the pipeline.
- Link to the role
- I also detect drift regularly, because manual changes in the console are a common cause of surprises.
Likely follow-up questions
- How do you handle state files safely?
- What would you do if someone made an urgent manual change?
Avoid: Avoid describing infrastructure as code as just scripts run from a laptop, because review and repeatability are the point.
Practise this question aloud6. How do you decide what to monitor and what to alert on?
What interviewers look for: User-focused signals, alerting on symptoms, actionable alerts and avoiding noise.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I start with what users experience: latency, error rate, traffic and saturation for each key service.
- Main reason
- I alert on symptoms that need a human now, such as error rates breaking our objective, rather than on every possible cause.
- Evidence
- Every alert must be actionable and link to a runbook; if an alert regularly fires without action, we fix it or remove it.
- Link to the role
- Lower-priority signals go to dashboards or tickets, so the on-call engineer is only woken for real problems.
Likely follow-up questions
- How would you reduce alert noise on a team that ignores alerts?
- What's the difference between monitoring and observability, in your view?
Avoid: Avoid saying you'd alert on everything, because alert fatigue makes real problems easier to miss.
Practise this question aloud7. Describe a time you made releases safer.
What interviewers look for: Identifying release risk, introducing a technique such as canaries or feature flags, and measurable improvement.
Model answer
Answer structure: Situation, Task, Action, and Result
- Situation
- Our team had several outages a quarter caused by releases that went to all users at once.
- Task
- I was asked to reduce release-related incidents without slowing the team down.
- Action
- I introduced canary deployments, sending new versions to five per cent of traffic first, with automatic checks on error rate and latency before continuing. I also helped developers use feature flags for risky changes.
- Result
- Release-related incidents fell by more than half in the next two quarters, and the team actually released more often because they felt safer.
Likely follow-up questions
- How did you choose the canary thresholds?
- What risks do feature flags introduce?
Avoid: Avoid an example where safety came only from adding manual approvals, because it usually slows teams without reducing risk much.
Practise this question aloud8. How do you manage secrets such as passwords and API keys?
What interviewers look for: A dedicated secrets store, least privilege, rotation, auditing and never storing secrets in code.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- Secrets should never be in source code, images or logs; I store them in a dedicated secrets manager.
- Main reason
- Applications fetch them at runtime using their own identity, with access limited to only the secrets they need.
- Evidence
- I rotate secrets regularly and automatically where possible, and access is logged so we can audit it.
- Link to the role
- I also add scanning to the pipeline to catch secrets accidentally committed, and we have a clear process to revoke them quickly if one leaks.
Likely follow-up questions
- What would you do if a secret was pushed to a public repository?
- How do you handle secrets in local development?
Avoid: Avoid suggesting environment files in the repository are acceptable, because they are a common source of leaks.
Practise this question aloud9. Tell me about a time you automated a manual process.
What interviewers look for: Spotting repeated toil, automating it safely and measuring time saved or errors reduced.
Model answer
Answer structure: Situation, Task, Action, and Result
- Situation
- Our team spent about six hours a week creating test environments by hand for developers.
- Task
- I wanted to remove that toil and make environments consistent.
- Action
- I wrote a pipeline job that creates a full environment from code when a developer labels a pull request, and destroys it automatically after the pull request closes. I documented it and ran a short demo for the team.
- Result
- Environment setup dropped from hours to about fifteen minutes, we saved roughly six hours a week and cloud costs fell because unused environments no longer lingered.
Likely follow-up questions
- How did you decide it was worth automating?
- What went wrong when you first rolled it out?
Avoid: Avoid choosing an automation with no clear benefit, because the question tests judgement about what to automate.
Practise this question aloud10. You're paged at 3 a.m. for high latency on a key service. What do you do?
What interviewers look for: A structured response: assess impact, communicate, check recent changes, mitigate and escalate when needed.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- First I acknowledge the page and check the dashboards to confirm the impact: how many users, which endpoints and since when.
- Main reason
- I'd check for recent deployments, configuration changes or traffic spikes, because those explain most incidents.
- Evidence
- If a recent change is likely, I roll it back; if not, I look at dependencies such as the database or third-party services and scale or fail over if that helps.
- Link to the role
- I post updates in the incident channel and escalate early if I can't mitigate within our agreed time, rather than struggling alone.
Likely follow-up questions
- When would you wake up a colleague?
- What would you hand over at the end of your shift?
Avoid: Avoid jumping straight into deep debugging before limiting the impact, because restoring service comes first.
Practise this question aloud11. Explain the difference between containers and virtual machines, and when you'd use each.
What interviewers look for: Accurate technical understanding explained simply, with practical trade-offs.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- A virtual machine includes a full operating system on virtualised hardware, while containers share the host's operating system kernel and package only the application and its dependencies.
- Main reason
- That makes containers lighter and faster to start, which suits microservices and consistent deployments across environments.
- Evidence
- Virtual machines give stronger isolation and suit workloads that need a different operating system, special kernel settings or strict separation.
- Link to the role
- In practice I often run containers on virtual machines, which combines isolation at the infrastructure level with fast deployments.
Likely follow-up questions
- What security risks are specific to containers?
- When would you choose serverless instead?
Avoid: Avoid saying containers are always better, because good engineers choose based on the workload.
Practise this question aloud12. How do you use service level objectives and error budgets?
What interviewers look for: Defining user-focused objectives, using error budgets to balance speed and reliability, and agreeing policies.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- A service level objective sets a target for something users care about, such as ninety-nine point nine per cent of requests succeeding within three hundred milliseconds over thirty days.
- Main reason
- The error budget is the failure we can tolerate within that target, and it turns reliability into a shared, measurable goal.
- Evidence
- When we have budget left, teams can release quickly and take more risk; when it's nearly spent, we prioritise reliability work.
- Link to the role
- The key is agreeing that policy with product managers in advance, so decisions aren't argued during an incident.
Likely follow-up questions
- How would you choose the right target?
- What would you do if a team kept exceeding its error budget?
Avoid: Avoid aiming for one hundred per cent reliability, because it's unrealistic and slows down delivery for little user benefit.
Practise this question aloud13. Describe a time you disagreed with developers about whether to release.
What interviewers look for: Raising concerns with evidence, finding a compromise and maintaining good relationships.
Model answer
Answer structure: Situation, Task, Action, and Result
- Situation
- A product team wanted to release a major change on a Friday before a holiday weekend, when on-call cover was light.
- Task
- I was concerned about the risk but didn't want to block an important launch.
- Action
- I shared data showing that changes released before weekends had a higher incident rate, and proposed releasing on Tuesday behind a feature flag, with the developers on call for the first hours.
- Result
- The team agreed, the launch went smoothly, and we later made release timing guidelines part of our standard process.
Likely follow-up questions
- What would you have done if they insisted on Friday?
- How do you avoid being seen as the team that always says no?
Avoid: Avoid presenting operations and development as opponents, because the role is about shared ownership of reliability.
Practise this question aloud14. How do you approach reducing cloud costs?
What interviewers look for: Visibility, ownership, right-sizing, automation and balancing cost against reliability.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I start with visibility: tagging resources by team and service so everyone can see what they spend.
- Main reason
- Then I look for quick wins, such as removing unused resources, right-sizing over-provisioned instances and scheduling non-production environments to shut down at night.
- Evidence
- For steady workloads, I consider committed-use discounts, and for flexible jobs, cheaper interruptible capacity.
- Link to the role
- I always check that savings don't harm reliability, and I share monthly cost reports with teams so they own their spending.
Likely follow-up questions
- Tell me about a cost saving you achieved.
- How would you handle a team that resisted cost controls?
Avoid: Avoid cutting costs in ways that create reliability risks, such as removing redundancy from critical services.
Practise this question aloud15. How do you keep infrastructure secure?
What interviewers look for: Least privilege, patching, network controls, scanning, auditing and security built into pipelines.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I follow least privilege, so people and services get only the access they need, preferably temporary rather than permanent.
- Main reason
- I keep systems patched through automated base image updates and regular rebuilds instead of patching servers by hand.
- Evidence
- I limit network exposure, encrypt data in transit and at rest, and scan images and dependencies in the pipeline.
- Link to the role
- I also make sure access and changes are logged and reviewed, and I work closely with the security team rather than treating security as their job alone.
Likely follow-up questions
- How would you respond to a critical vulnerability announced on a Friday?
- How do you balance security with developer speed?
Avoid: Avoid describing security as a final check before release, because it should be built into every stage.
Practise this question aloud16. Tell me about a time you improved the developer experience.
What interviewers look for: Listening to developers, removing friction and measuring the improvement.
Model answer
Answer structure: Situation, Task, Action, and Result
- Situation
- Developers in our team regularly complained that local setup took a full day for new starters.
- Task
- I wanted to make it quick and reliable so people could contribute in their first week.
- Action
- I interviewed three recent joiners, scripted the setup into a single command, created a containerised development environment and wrote a short getting-started guide.
- Result
- New starters could run the application within an hour, and our internal survey score for developer tooling rose noticeably that quarter.
Likely follow-up questions
- How did you find out what caused the most friction?
- How do you keep the setup working as the system changes?
Avoid: Avoid an example where you chose tools developers didn't want, because developer experience starts with listening.
Practise this question aloud17. How would you perform a database schema change with no downtime?
What interviewers look for: Backward-compatible steps, separating schema and code changes, testing and a rollback plan.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I'd use an expand-and-contract approach: first add the new column or table in a way that's compatible with the current code.
- Main reason
- Then I'd deploy code that writes to both the old and new structures, and backfill existing data in small batches to avoid locking tables.
- Evidence
- Once the new structure is complete and verified, I'd switch reads to it, and only later remove the old column in a separate release.
- Link to the role
- Throughout, I'd test on a copy of production data, monitor performance and have a clear rollback point at each step.
Likely follow-up questions
- How would you handle a very large table?
- What could go wrong during the backfill?
Avoid: Avoid combining schema and code changes in one big release, because it makes rollback very hard.
Practise this question aloud18. How do you prevent on-call fatigue for yourself and your team?
What interviewers look for: Reducing noise, fair rotations, recovery time and treating repeated pages as engineering work.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I track pages per shift and review them weekly, because the best way to reduce fatigue is to reduce unnecessary pages.
- Main reason
- Any alert that fires repeatedly without action becomes an engineering task to fix or remove.
- Evidence
- I support fair rotations with enough people, clear handovers and time off after a heavy night.
- Link to the role
- I also make sure on-call engineers know when to escalate, so nobody feels they have to solve everything alone.
Likely follow-up questions
- How many pages per shift would you consider too many?
- How would you support a colleague who seemed burnt out?
Avoid: Avoid suggesting that frequent night-time pages are just part of the job, because unsustainable on-call leads to mistakes and turnover.
Practise this question aloud19. Tell me about a time a change you made caused a problem.
What interviewers look for: Honest ownership, quick mitigation, learning and systemic prevention.
Model answer
Answer structure: Situation, Task, Action, and Result
- Situation
- I updated a load balancer rule to route traffic to a new service, but I missed that one older mobile app version used a different path.
- Task
- Users of that version started seeing errors shortly after the change.
- Action
- I spotted the error spike on the dashboard within ten minutes, reverted the rule, told the team in the incident channel and then reproduced the problem in staging.
- Result
- Impact was limited to a small group of users for about fifteen minutes, and I added automated tests for all supported app versions to the pipeline.
Likely follow-up questions
- How did you feel when you realised it was your change?
- What would have caught it earlier?
Avoid: Avoid choosing an example where you can't name your own part in the problem, because ownership is what the question tests.
Practise this question aloud20. How do you keep your skills up to date in such a fast-moving field?
What interviewers look for: A realistic, regular learning habit applied to real work.
Model answer
Answer structure: Direct answer, Main reason, Evidence, and Link to the role
- Direct answer
- I set aside a couple of hours a week to read release notes and engineering write-ups from teams running large systems.
- Main reason
- I learn best by doing, so I keep a small personal lab where I try new tools before suggesting them at work.
- Evidence
- I also read postmortems that companies publish, because they teach real lessons about failure.
- Link to the role
- Recently I studied policy-as-code tools and used what I learned to add automated security checks to our pipeline.
Likely follow-up questions
- What's a technology you decided not to adopt, and why?
- How do you share what you learn with your team?
Avoid: Avoid listing trendy tools without showing how you've applied any of them, because interviewers value judgement over hype.
Practise this question aloud
Model answers are examples that show the structure. In a real interview, use your own true experience.
More question sets
- Finance and accounting
- Banking and investment
- Consulting (fit and case)
- Marketing
- Product management
- Project management