DevOps Engineer interview prep · Updated August 2026

DevOps Interview Questions and Answers

Be ready for the follow-up question

Memorising definitions gets you through the first question — the follow-up is what exposes you. These 119 questions are open-answer: you say your reply out loud, then compare it against a model answer and the checklist of points an interviewer is listening for.

  • Free, no sign-up
  • Works offline
  • Every answer sourced
Release & Deployment Strategies Open answer

Blue-green, canary and rolling — when would you use each?

A strong reply covers

  • Rolling: gradual instance replacement, no extra capacity, versions must coexist
  • Blue-green: two full environments, instant cutover and instant rollback, double cost
  • Canary: small traffic share first, evidence-driven, needs good metrics to be meaningful
  • All three require backward-compatible changes during the overlap window

Common trap: defining all three correctly but never saying when you'd actually choose one.

open-answer questions
119
modules
10
level range
Junior → Senior
every answer cites a source
Sourced
What every card gives you

Four things a list of answers can't give you

The reveal is not a paragraph to memorise. It is a diagnostic: it tells you which parts of your answer were vague, and that is exactly where the follow-up lands.

The question alone

No options, no hints. It appears by itself, so you have to generate the answer — exactly as you will in the room.

A grading checklist

The points a strong reply covers. Missed two of five? That is a "didn't know", however familiar the answer felt.

What is being tested

Every card names what the interviewer is really checking, so you answer the question behind the question.

The common trap

The plausible answer that quietly costs you the round — named up front so you do not walk into it.

Try it now

19 of the questions, published in full

Answer each one out loud before you open it — that is the whole exercise. The reveal gives you the model answer, the points a strong reply covers, what the interviewer is really testing, and the trap to avoid. All 119 questions are free in the app.

Foundations & Culture

2 questions

What problem does DevOps actually solve in an organization?

It removes the wall between the people who write software and the people who run it. Before DevOps those two groups had opposing incentives — developers were paid to ship change, operations to prevent it — so work piled up at the handover. DevOps makes one team own the whole path from commit to production, which is why speed and stability stop being a trade-off.

Key points you should have covered

  • The root problem is misaligned incentives between dev and ops, not missing tooling
  • Shared ownership of the whole path from commit to production
  • Speed and stability rise together — research consistently finds they are not opposites
  • Culture and org design come first; tools follow

What the interviewer is checking: whether you see DevOps as a way of organising work, or as a job title with a CI server attached.

Common trap: answering "it's CI/CD and automation". That's the output, not the problem being solved.

Source

How do DevOps, SRE and platform engineering relate to each other?

DevOps is the philosophy — shared ownership between building and running. SRE is one concrete implementation of it, with reliability expressed as measurable SLOs and error budgets. Platform engineering is the newest layer: instead of embedding an ops person in every team, you build an internal platform that product teams use themselves without filing tickets.

Key points you should have covered

  • DevOps is a philosophy, SRE is a prescriptive implementation of it
  • SRE's distinguishing tools are SLOs, error budgets and a toil budget
  • Platform engineering treats the internal platform as a product for developers
  • All three attack the same problem — the handover cost between building and running

What the interviewer is checking: whether you can place the three on a spectrum rather than treating them as competing buzzwords.

Common trap: saying they're the same thing with different names, or that platform engineering "replaced" DevOps.

Source

Continuous Integration & Delivery

3 questions

Walk me through the difference between continuous integration, continuous delivery and continuous deployment.

Continuous integration is developers merging to a shared mainline many times a day, with every merge verified by an automated build and tests. Continuous delivery extends that so every green build is genuinely releasable and reaching production is a business decision, not an engineering project. Continuous deployment removes even that button — every change that passes the pipeline goes to production automatically.

Key points you should have covered

  • CI is about merging frequently to a shared mainline with automated verification
  • Continuous delivery means every build is releasable — the gate is a human decision
  • Continuous deployment removes the human gate entirely
  • Delivery and deployment differ by exactly one thing: who presses the button

What the interviewer is checking: precision. These three are constantly used interchangeably and getting them right is a cheap credibility signal.

Common trap: saying "CD means continuous deployment" and never distinguishing the two.

Source

Trunk-based development or GitFlow — when would you pick each?

I default to trunk-based: short-lived branches merged to main within a day, which keeps integration pain small and is what the delivery research correlates with high performance. GitFlow earns its complexity when you genuinely support multiple released versions in parallel — shipped desktop software, firmware, an on-premise product with long-lived release branches. For a web service deployed continuously, GitFlow mostly adds merge overhead.

Key points you should have covered

  • Trunk-based means short-lived branches, merged within about a day
  • Long-lived branches defer integration pain rather than removing it
  • GitFlow fits products with multiple supported versions in production simultaneously
  • For a continuously deployed web service, GitFlow's release branches mostly add cost

What the interviewer is checking: whether you can defend a default and still name where it doesn't apply.

Common trap: "GitFlow is outdated" with no acknowledgement of the versioned-product case.

Source

How do you deal with flaky tests?

Flaky tests are worse than no tests, because they teach the team to ignore red. I'd quarantine them out of the blocking suite immediately so the pipeline regains trust, then treat each one as a real bug with an owner and a deadline — most are timing assumptions, shared state between tests, or a genuine race in the code. What I won't do is add a blanket retry, which hides the failure and keeps the bug.

Key points you should have covered

  • A flaky suite destroys trust, and an ignored suite protects nothing
  • Quarantine first to restore a meaningful signal, then fix with an owner and a deadline
  • Usual root causes: timing assumptions, shared state, real concurrency bugs
  • Blanket retries hide failures — sometimes including real intermittent production bugs

What the interviewer is checking: whether you protect the signal or just make the red go away.

Common trap: "we retry them three times" offered as the whole answer.

Source

Release & Deployment Strategies

2 questions

Blue-green, canary and rolling — when would you use each?

Rolling is the sensible default: replace instances gradually, no extra capacity, but both versions serve traffic during the rollout so they must be compatible. Blue-green gives you an instant cutover and an instant rollback at the cost of running two full environments — worth it when downtime is expensive and the change is risky. Canary is what you pick when you want production evidence before committing: a small share of real traffic, watched, then widened.

Key points you should have covered

  • Rolling: gradual instance replacement, no extra capacity, versions must coexist
  • Blue-green: two full environments, instant cutover and instant rollback, double cost
  • Canary: small traffic share first, evidence-driven, needs good metrics to be meaningful
  • All three require backward-compatible changes during the overlap window

What the interviewer is checking: whether you can match a strategy to a constraint rather than name three of them.

Common trap: defining all three correctly but never saying when you'd actually choose one.

Source

Explain the expand/contract pattern for schema changes.

You split a breaking change into three deployments. Expand: add the new column or table while the old one still exists, and have the application write to both. Migrate: backfill existing rows and switch reads to the new shape. Contract: once nothing reads the old column, drop it. At every step the previous application version still works, so you can roll back at any point without touching data.

Key points you should have covered

  • Three phases: expand, migrate, contract — each its own deployment
  • Expand adds the new structure and dual-writes; the old path keeps working
  • Migrate backfills and moves reads across
  • Contract removes the old structure only once nothing depends on it
  • The point is that every intermediate state is rollback-safe

What the interviewer is checking: whether you can name a concrete technique, not just say "backward compatible".

Common trap: describing two steps and skipping the dual-write window, which is where the safety comes from.

Source

Infrastructure & IaC

2 questions

Why Infrastructure as Code? What do you lose without it?

Because infrastructure becomes reviewable, reproducible and auditable — the same properties we already demand of application code. Without it you get servers nobody can rebuild, changes with no history of who did what and why, and environments that differ in ways nobody can enumerate. The moment you need to recreate production in another region, hand-built infrastructure turns into an archaeology project.

Key points you should have covered

  • Infrastructure gets code review, version history and an audit trail
  • Reproducibility: rebuild an environment from source rather than from memory
  • Without it, undocumented manual changes accumulate silently
  • Disaster recovery and region expansion become tractable instead of heroic

What the interviewer is checking: whether you can justify the practice to someone who thinks clicking in a console is faster.

Common trap: answering "automation" alone — a shell script is automation too, without the review or history.

Source

How do you manage secrets across environments?

Secrets live in a dedicated store, never in the repository and never in the image, and applications get them at runtime through an identity the platform proves — a workload identity or a mounted short-lived token rather than a static key in an environment variable. Each environment has its own separate values, rotation is automated, and access is audited. If a secret ever touched a Git history, I treat it as compromised and rotate it.

Key points you should have covered

  • A dedicated secret store — not the repo, not the image, not a config file
  • Runtime injection via platform-proven identity, not long-lived static keys
  • Per-environment separation so a staging leak can't reach production
  • Automated rotation and audited access
  • A committed secret is compromised even after the commit is removed

What the interviewer is checking: whether you know the identity problem underneath — a secret to fetch secrets is still a secret.

Common trap: "we put them in environment variables" without saying how they get there.

Source

Reliability, Observability & Incidents

3 questions

What's the difference between an SLA, an SLO and an SLI?

An SLI is the measurement — the actual number, like the fraction of requests served under 300 milliseconds. An SLO is the target you set for that indicator internally, say 99.9 percent over 30 days. An SLA is the contract with a customer, with financial consequences when you miss it. The important relationship is that your SLO should be stricter than your SLA, so you find out you're in trouble before the customer does.

Key points you should have covered

  • SLI: the measured indicator itself
  • SLO: your internal target for that indicator over a window
  • SLA: the external contract, with consequences attached
  • The SLO must be tighter than the SLA so you get warning before penalties
  • Good SLIs measure user-visible behaviour, not machine internals like CPU

What the interviewer is checking: whether you get the ordering right. These three are the most commonly muddled terms in the field.

Common trap: defining SLA as "uptime target" and never mentioning the contractual consequence.

Source

Walk me through how you'd run a production incident. Who does what?

Someone takes the incident commander role immediately and does not debug — they coordinate, decide and keep the timeline. Underneath that: an operations lead doing the hands-on investigation, and a communications lead handling stakeholders so the responders aren't answering questions. First priority is mitigation, not root cause: restore service by rolling back or failing over, then diagnose afterwards with the pressure off.

Key points you should have covered

  • A single incident commander who coordinates rather than debugs
  • Separate operations and communications roles so responders aren't interrupted
  • Mitigate first — rollback or failover — and investigate root cause afterwards
  • Keep a running timeline during the incident; memory is unreliable after
  • Declare early: a false alarm is cheaper than a late escalation

What the interviewer is checking: whether you know incident response is a coordination problem before it's a technical one.

Common trap: describing only the debugging and never naming who is in charge.

Source

What makes a postmortem genuinely blameless?

The assumption that everyone acted reasonably given what they knew at the time, so the question is never who made the mistake but what made the mistake easy to make and hard to catch. In practice that means writing about systems and conditions rather than people, and treating a human error as a signal about a missing guardrail. The test is whether the person closest to the outage would happily write it up themselves.

Key points you should have covered

  • Assume everyone acted reasonably with the information available at the time
  • Focus on the conditions that made the error likely and hard to detect
  • Human error is a symptom of a missing safeguard, not a root cause
  • Action items must have owners and deadlines, or the postmortem was theatre
  • The practical test: would the person involved willingly write it themselves?

What the interviewer is checking: whether you understand the goal is candour — people hide information in blaming cultures, and hidden information causes the next outage.

Common trap: "we just don't name anyone" — anonymising a blaming document doesn't change the culture.

Source

Architecture & Scaling

2 questions

Monolith or microservices — when would you pick each?

I'd start with a modular monolith almost every time: one deployment, one database, no network between your own functions, and you learn the real domain boundaries by building it. Microservices earn their cost when you need independent deployment and scaling per component, or when several teams keep blocking each other in one codebase. What you're buying is team autonomy, and what you're paying is distributed-systems complexity.

Key points you should have covered

  • Default to a modular monolith — boundaries are cheaper to move before they're network calls
  • Microservices buy independent deployment, independent scaling and team autonomy
  • The cost is distributed systems: network failure, eventual consistency, distributed tracing
  • Splitting is usually driven by organisational scaling, not technical need
  • Wrong boundaries are far more expensive across services than across modules

What the interviewer is checking: whether you evaluate architecture by cost rather than by fashion.

Common trap: "microservices scale better" as if that were free and unconditional.

Source

Horizontal or vertical scaling — how do you decide?

Vertical is a bigger machine — simple, no code changes, but there's a ceiling and usually a restart to get there. Horizontal is more machines, which gives you effectively unbounded headroom and redundancy, but only works if the workload is stateless or the state is shared. In practice I scale databases vertically until it hurts because sharding is expensive, and application tiers horizontally because they're designed for it.

Key points you should have covered

  • Vertical: simpler, no code change, but capped and usually needs a restart
  • Horizontal: near-unlimited headroom plus redundancy, requires stateless or shared state
  • Horizontal scaling gives fault tolerance; vertical scaling does not
  • Databases commonly scale vertically first because sharding is costly
  • Stateless application tiers are the natural horizontal case

What the interviewer is checking: whether you notice that horizontal scaling also buys availability, not just capacity.

Common trap: "horizontal is always better" without the statelessness precondition.

Source

Platform Engineering & Developer Experience

2 questions

What is platform engineering, and how is it different from DevOps?

Platform engineering builds an internal product — a paved road of tooling, templates and self-service infrastructure — that product teams consume without filing tickets. The difference from classic DevOps is who does the work: DevOps says every team owns its own delivery, which doesn't scale past a certain size because each team rebuilds the same pipeline. Platform engineering makes that capability a product with users and a roadmap.

Key points you should have covered

  • The platform is an internal product with developers as its users
  • Self-service is the defining property — no ticket, no waiting on another team
  • It answers the scaling problem of every team rebuilding the same delivery machinery
  • It doesn't contradict DevOps; it industrialises the parts DevOps left to each team
  • The interview framing: DevOps builds and runs infrastructure, platform engineering builds infrastructure others run themselves

What the interviewer is checking: whether you can articulate why this role appeared, not just that it exists.

Common trap: "it's DevOps with a new name" — that misses self-service and the product framing entirely.

Source

What is a golden path, and what makes one people actually use?

A golden path is the supported, opinionated way to do a common task — create a service, deploy it, rotate a secret — with the pipeline, observability and manifests already wired in. It gets used when it's genuinely faster than doing it yourself, when it's maintained so it doesn't rot, and when it stays opinionated rather than becoming a configuration menu. The moment it lags behind what teams need, they route around it.

Key points you should have covered

  • An opinionated, supported default route through a common task
  • Ships with pipeline, observability and deployment config already wired
  • Adoption follows from being faster than the alternative, not from a mandate
  • It must be maintained and kept current, or teams route around it
  • Opinionated beats configurable — endless options recreate the original problem

What the interviewer is checking: whether you understand adoption is earned. Golden paths fail socially far more often than technically.

Common trap: describing the template and never addressing why anyone would choose it.

Source

Supply Chain & Software Security

1 question

What does an SBOM prove, and what does SLSA prove?

An SBOM is the ingredient list — every component and version inside an artifact, so when a vulnerability lands you can answer "are we affected?" in minutes instead of weeks. SLSA is about provenance: it attests how the artifact was built, by which pipeline, from which source commit. They're complementary — the SBOM tells you what's inside, SLSA tells you the box came from the factory you think it did.

Key points you should have covered

  • SBOM: the component inventory of an artifact, with versions
  • Its practical value is answering exposure questions fast when a CVE drops
  • SLSA: attested provenance — which pipeline built this, from which source
  • They answer different questions and neither replaces the other
  • Formats matter in procurement: CycloneDX and SPDX are the two standards

What the interviewer is checking: whether you can separate the two, since they're routinely conflated.

Common trap: describing an SBOM as a security scan. It's an inventory — scanning is what you do with it.

Source

AI in the Delivery Lifecycle

1 question

The research finds AI adoption raises delivery throughput but also instability. How do you get one without the other?

By treating AI as an amplifier of whatever your delivery system already is. If review, testing and rollback are strong, more code moving through them is a win; if they're weak, you're now generating defects faster than you can catch them. So the answer isn't to slow down AI use — it's to make sure the change failure rate and recovery time are watched as closely as throughput, and to invest in the checks before you scale up generation.

Key points you should have covered

  • The 2025 research found throughput up and instability up at the same time
  • The amplifier framing: AI magnifies existing engineering strengths and weaknesses
  • Guard the stability metrics — change failure rate and recovery time — not just speed
  • Strengthen review, automated testing and rollback before scaling generation
  • More code produced is not the same as more value delivered

What the interviewer is checking: whether you can discuss AI with evidence rather than enthusiasm or dismissal.

Common trap: an unqualified "AI makes teams faster" — the same research found what it costs.

Source

FinOps & Sustainability

1 question

The cloud bill jumped 40 percent this month. How do you find out why?

Start with the breakdown by service and by tag to see whether it's one thing or everything, then line that up against the change timeline — deployments, autoscaling events, traffic. Most jumps are one of a few shapes: a scaling policy that stopped scaling down, data egress from a new integration, forgotten non-production environments, or logging volume from a change in verbosity. Then set an anomaly alert so the next one doesn't wait for an invoice.

Key points you should have covered

  • Break down by service and tag first — is it concentrated or across the board?
  • Correlate against the change and deployment timeline
  • Usual suspects: broken scale-down, data egress, orphaned environments, log volume
  • Storage and logging grow silently; they rarely show up as a spike
  • Follow up with anomaly alerting so detection doesn't depend on the invoice

What the interviewer is checking: whether you'd debug cost the way you debug an incident.

Common trap: jumping to "buy reserved instances" before knowing what grew.

Source

That is 19 of 119. The rest are in the app, on a schedule that brings back the ones you fumble.

Practise all 119
The full set

119 questions across 10 modules

Junior through senior, scenario-led where a real interview would be. Drill one module on its own, or let the schedule mix them.

Practise all 119
12 questions

Foundations & Culture

The rationale questions: what DevOps is for, how it relates to SRE and platform engineering, and how you argue for it in a room that isn't convinced.

15 questions

Continuous Integration & Delivery

Pipeline questions that test judgement rather than tool syntax: branching trade-offs, build-once promotion, flaky tests, schema changes and pipeline security.

14 questions

Release & Deployment Strategies

Choosing between blue-green, canary and rolling — and the parts candidates skip: rollback with a changed schema, what signals abort a canary, and coordinating a release across teams.

12 questions

Infrastructure & IaC

Infrastructure as code beyond the syntax: drift, state, immutability, environment parity, and the config-versus-secret question every candidate answers too quickly.

14 questions

Reliability, Observability & Incidents

SLA versus SLO versus SLI, error budgets as a decision tool, what makes an alert worth a page, and how you actually run an incident and the postmortem after it.

12 questions

Architecture & Scaling

The architecture trade-offs a DevOps interview actually asks about: monolith versus microservices, scaling and autoscaling, state, caching, load balancing and when multi-cloud is real.

12 questions

Platform Engineering & Developer Experience

The discipline that split off from DevOps: golden paths, platform-as-product, Backstage, and how you get fifteen teams to adopt something without mandating it.

Recently entered interviews
10 questions

Supply Chain & Software Security

What replaced "we scan dependencies": SBOMs, SLSA provenance, keyless signing, pinning, and why the build system is now the thing attackers go after.

Recently entered interviews
10 questions

AI in the Delivery Lifecycle

The questions that entered DevOps interviews with AI-assisted development: what the research actually found, how review and testing change, and what guardrails you put on agents.

Recently entered interviews
8 questions

FinOps & Sustainability

Cloud spend as an engineering metric rather than a finance report: making cost visible to the team that creates it, who owns a regression, and where sustainability actually overlaps.

Recently entered interviews
Go deeper

Interview prep tests the talking. The path builds the knowledge.

These questions tell you where you are thin. The DevOps Engineer path is where you fix it — 9 decks in sequence, from the shell to observability.

Start the DevOps Engineer path
DevOps Engineer path9 topics · 705 cards
  1. 1Linux: Practical / DevOps
  2. 2Bash & Shell Scripting
  3. 3Git & GitHub
  4. 4Docker Basics
  5. 5Kubernetes Basics
  6. 6Terraform Associate: Fundamentals
  7. 7CI/CD with GitHub Actions
  8. 8GitOps with Argo CD & Flux
  9. 9Prometheus & Observability
FAQ

Common questions

Are these the questions actually asked in DevOps interviews? +

They are the recurring themes of DevOps interviews — CI/CD mechanics, deployment and rollback strategy, infrastructure as code, reliability and incident handling, and increasingly platform engineering, supply chain security and AI in the delivery pipeline. No list can predict a specific company's questions; what it can do is make sure none of the standard ground catches you cold.

Is this current for 2026? +

Yes. Alongside the long-standing fundamentals, the deck covers the topics that entered DevOps interviews recently: platform engineering and internal developer platforms, SLSA/SBOM/Sigstore supply chain practice, AI in the delivery lifecycle including how it affects throughput and stability, and FinOps. Every answer links to a primary source so you can check the ground truth yourself.

Why is there no multiple choice? +

Because interviews have no multiple choice. Picking the right answer from four options is recognition; an interview demands you generate the answer from nothing. These cards hide everything until you commit to an answer, which trains the skill you are actually going to use.

How long before an interview should I start? +

Two weeks at twenty minutes a day is a comfortable run at it — long enough for the questions you fumble to come back more than once, which is what makes recall hold under mild stress. Starting the night before still helps, but you will be leaning on recognition, and the follow-ups are exactly where that breaks.

How many questions are there in total? +

The full deck has 119 questions across 10 modules. A curated selection is published on this page in full; the rest are available free in the app.

Do I need to sign up? +

No. The deck is free and works without an account — your progress is stored in your browser. Signing in only adds syncing across devices.

Does this overlap with the other Gnoseed decks? +

Deliberately, yes. If a question is asked at interview it belongs here, whether or not the Kubernetes or SRE deck also covers it. The framing differs too: those decks test whether you know a fact, these test whether you can talk through a trade-off.

Give it two weeks before the interview

Twenty minutes a day, answering out loud, and the questions you fumble keep coming back until they are no longer the ones you fumble. Free, no sign-up, works offline.

Start learning free