DevOps Engineer Interview Prep
OverviewBuilds and owns the automated delivery and infrastructure systems that let a team ship reproducibly, operate securely, and recover without heroics.
Curated: · Written: · Reviewed:
- Interview Q&A
- 102
- Practice MCQs
- 100
Top 100 DevOps Engineer Interview Questions and Answers
The questions most likely to actually be asked, ranked by likelihood, with pro-level model answers.102 Q&ATop 100 DevOps Engineer Practice MCQs
Quick multiple-choice self-checks covering the same high-value ground, with an explanation for every answer.100 MCQsThe role in one line
You own the enforced path from commit to a reversible production change, and the evidence that the artifact running in production is the one that passed the gates.
The interview loop
| Round | What it scores |
|---|---|
| Recruiter screen | Scope fit, on-call history, whether you have shipped to production yourself |
| Pipeline design | Artifact identity, gate ordering, where a failed check stops the path |
| Infrastructure and security | IaC state handling, workload identity, secret lifecycle, admission policy |
| Incident and reliability | Rollback versus roll-forward choice, SLO and error budget use, break-glass control |
| Metrics and process | DORA measurement from commit to production evidence, change classification, review controls |
| Hiring manager | Trade-offs you have made and the one you would reverse |
Five must-know areas
- Artifact identity: why a tag is only a pointer, and how a digest ties staging to production.
- Enforced versus advisory gates: which checks block a merge or deploy, and which only report.
- Workload identity and secrets: short-lived federated credentials instead of stored keys, and who can read them.
- GitOps reconciliation: what the cluster pulls from git, and what it does when git and the cluster disagree.
- Measured recovery: DORA metrics computed from deployment events, and error budget spend that decides rollback.
Numbers and formulas to have ready
Change fail rate is the share of production deployments that needed remediation, counted from deployment records rather than from Sev-1s alone.
Lead time for changes runs from first commit of a change to its successful production deployment.
At a 99.9% SLO over a 30-day window the error budget is 43.2 minutes of unavailability. The figure depends on the window: over 7 days it is about 10.1 minutes, so state the window you used.
Reference architecture
The path below is the one most teams own. Each edge names what must match.
Strong vs weak answers
| Question | Strong answer | Weak answer |
|---|---|---|
| Same git SHA, two releases? | The artifact was rebuilt, so the digest differs. Promote the staging digest unchanged. | They are the same release because the SHA matches. |
| Prod runs docker build? | Build once in CI, sign the digest, and give prod only a read on that digest. | We use separate prod credentials for the build. |
| What should GitOps store? | The image digest, not checkout:stable. | The stable tag is fine if we are careful. |
| Lead time is 2.1 days? | Measure first commit to production deploy; the 2.1 days is PR review time. | Lead time is about right for our team size. |
| Green Helm, 500s? | Smoke checks run after rollout and gate promotion; exit 0 only proves the apply. | Helm succeeded, so the deploy was fine. |
Interview tips
- Name the artifact and its digest before describing any gate. A tag can move; a digest cannot.
- Say which check blocks the merge and which only reports. Interviewers probe this boundary directly, so name the branch protection or environment rule that enforces it.
- For four eyes, say what GitHub Environments enforce: one required reviewer is one approval. Two approvals need two distinct reviewers, and the author exclusion belongs in policy or a bot, not in someone's memory.
- Pick rollback or roll-forward using migration reversibility, audit retention requirements and whether break-glass access is in use. A reversible schema change rolls back; a dropped column rolls forward.
- Answer every metric question with the event it is computed from: the deployment record, the merge timestamp, or the incident open time.
Last-week checklist
- Trace one real release from commit to digest to production verification, aloud, in under five minutes.
- Write down which gates block outright and which only warn in your current pipeline.
- Recompute change fail rate and lead time for your last quarter from raw deployment records.
- Practise the rollback decision for a schema migration that cannot be reversed.
- Rehearse the break-glass path: who approves, what is logged, and how access is removed afterwards.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.