Lesson 23 of 30
A rolling update replacing containers a few at a time sounds like it guarantees zero downtime — it doesn't, on its own. It only gets there paired with two things most teams forget: real health checks, and an app that actually handles being asked to stop.
12 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A rolling update is configured with no health check at all — the orchestrator just waits a fixed few seconds after starting a new container before removing an old one. What's the real risk?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
A rolling update replaces old containers with new ones incrementally — a few at a time, never all at once — so total capacity never drops to zero mid-deploy. That's the mechanism the orchestration-basics lesson in this track named as one piece of self-healing/scaling behavior. This lesson is about what "zero-downtime" actually depends on beyond that basic description, because the phrase gets treated as automatic when it isn't.
Two things have to be true for a rolling update to genuinely avoid downtime:
Start: 2 old replicas serving traffic, 0 new. Capacity: 2.
Picture 2 replicas serving traffic, rolling forward to a new image, one at a time: start 1 new replica → wait for its health check to pass → then, and only then, remove 1 old replica. Repeat for the second pair. At every point in that sequence there are at least 2 healthy replicas serving traffic — capacity never drops, but for a window in the middle, the old and new versions of the application are running and serving requests simultaneously. That overlap is not a bug to eliminate; it's the entire mechanism.
"How would you deploy a new version of this service with zero downtime?" is a standard systems-adjacent question, and a strong answer names the actual mechanism (health-gated replacement, graceful shutdown) and the real alternative (blue-green, with its cost/rollback tradeoff) rather than just saying "rolling update" as if the phrase alone guarantees the outcome.