Cloud & DevOpsworking

How would you ship a service so a bad release can roll back safely?

Health checks, versioned deploys, and a rollback path you have practiced.

Points worth saying

  • A deploy should be reversible without a midnight rebuild.
  • Health and readiness probes keep broken instances out of traffic.
  • Observability tells you the release is bad before customers do.

A full answer

Describe the unit you ship: a container image or package with a version. Blue-green or rolling updates keep capacity while the new version starts. Canary traffic is optional but shows you can limit blast radius.

Readiness fails until the process can serve. Liveness restarts a stuck process. Without both, a dead instance may still receive traffic or a starting instance may be killed too early.

Rollback is a first-class step: previous image, previous config, and a dashboard that shows error rate and latency. Name one metric you would watch in the first fifteen minutes after deploy. That is the interview answer, not a cloud logo list.

Mark your progress

Create a practice profile to mark this question.