InterviewDryRun
DevOps interview · Asked at mid and senior level

How do you achieve zero-downtime deployments?

How the interviewer asks it

“Every deploy of an API causes about thirty seconds of errors for users. Explain why that usually happens and how you would change the deployment so releases cause no errors.”

Typed drills are free and unlimited: the AI scores your answer against the outline below.

What the interviewer is looking for

  • Root causes: traffic sent before the app is ready, and connections cut when old pods stop.
  • Readiness probes, a preStop delay and graceful shutdown on SIGTERM.
  • A rollout strategy with surge capacity and no unavailable pods.
  • Backwards-compatible database changes using expand and contract.

How to structure your answer

  1. 01

    Diagnose

    Match the error window to pod start and stop events in the logs and load balancer metrics.

  2. 02

    Startup

    A readiness probe that only passes when the app can serve, including warm caches and connections.

  3. 03

    Shutdown

    Stop receiving new traffic first (preStop sleep while endpoints update), finish in-flight requests, then exit.

  4. 04

    Strategy

    Rolling update with maxUnavailable 0, or blue-green or canary for riskier releases.

  5. 05

    Data

    Expand the schema, deploy code that works with both shapes, migrate data, then contract.

Best answers from candidates

No candidate answers yet. Type yours, and if it scores 6 or more you can show it here without your name.

Answers are shared by candidates, without names, after a privacy check. Add yours

Common mistakes

  • Blaming the load balancer without checking shutdown behaviour.
  • Running a breaking migration in the same step as the deploy.
  • Liveness and readiness probes pointing at the same deep health check.

Follow-up questions to expect

  • The release also includes a database schema change. How do you ship it without downtime?
  • How would you roll back automatically if error rates rise?

Now answer it out loud

Max will ask you this exact question, listen to your answer, push on the weak spots with follow-ups like the ones above, and score you when you finish.

Practice with Max

Free: a 5-minute voice round and unlimited typed drills, with scored feedback. No card, and your camera is never recorded.

More devOps interview questions