Skip to content
Tech Interview Prep

DevOps Engineer Interview Prep

Overview

Builds 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

The 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

RoundWhat it scores
Recruiter screenScope fit, on-call history, whether you have shipped to production yourself
Pipeline designArtifact identity, gate ordering, where a failed check stops the path
Infrastructure and securityIaC state handling, workload identity, secret lifecycle, admission policy
Incident and reliabilityRollback versus roll-forward choice, SLO and error budget use, break-glass control
Metrics and processDORA measurement from commit to production evidence, change classification, review controls
Hiring managerTrade-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.

Change fail rate=deployments requiring remediationtotal production deployments\text{Change fail rate} = \frac{\text{deployments requiring remediation}}{\text{total production deployments}}

Lead time for changes runs from first commit of a change to its successful production deployment.

Lead time=tprod deploy−tfirst commit\text{Lead time} = t_{\text{prod deploy}} - t_{\text{first commit}}

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.

0.001×30×24×60=43.20.001 \times 30 \times 24 \times 60 = 43.2

Reference architecture

The path below is the one most teams own. Each edge names what must match.

CI builds once integration gate passes same digest promoted admission verifies signature smoke checks gate promotion Commit SHA Image digest sha256 Staging deploy by digest GitOps repo pins digest Production reconcile Production verified

Strong vs weak answers

QuestionStrong answerWeak 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

  1. Name the artifact and its digest before describing any gate. A tag can move; a digest cannot.
  2. 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.
  3. 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.
  4. 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.
  5. 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.