Skip to content
RED SAGSkills
hardSite Reliability Engineer interview question

How do you make deployments on Kubernetes reliable with zero downtime and safe rollback?

What the interviewer wants to hear

  • Readiness probes, rolling update settings, multiple replicas spread across zones
  • Graceful shutdown with preStop and terminationGracePeriod, connection draining
  • PodDisruptionBudgets and correct resource requests
  • Progressive delivery: canary with automated analysis on SLIs
  • Fast rollback and backward-compatible changes such as schema migrations

Model answer

I run several replicas spread across zones with topology spread constraints and a PodDisruptionBudget, with realistic resource requests. Rolling updates use maxUnavailable 0 and a small maxSurge, and readiness probes only pass when the app can really serve. For shutdown, the app handles SIGTERM, stops accepting new work and finishes in-flight requests; a short preStop sleep gives load balancers time to remove the pod, and terminationGracePeriodSeconds is long enough. For risk control I use progressive delivery, for example Argo Rollouts, sending 5% of traffic to a canary and automatically comparing error rate and latency against the baseline before promoting. Rollback must be one command or automatic. Changes, especially database migrations, are backward compatible, using expand and contract, so old and new versions can run side by side.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Site Reliability Engineer questions