Skip to content
tezvyn:

Smoke test fails after canary deployment. Design the automated rollback.

Source: oneuptime.comHardHow cards are made

Smoke test fails after canary deployment. Design the automated rollback.

Tests self-healing pipeline design: freeze canary traffic, auto-redeploy the last good release, verify rollback health, and keep failed pods for forensics. Red flag: requiring manual approval or in-place fixes instead of an atomic rollout swap.

What's really being asked

The interviewer wants to see if you can design a self-healing delivery pipeline that minimizes blast radius when a canary fails. They care about your understanding of automated verification gates, atomic rollback mechanisms, and the operational boundary between deployment tooling and runtime safety. Specifically they are looking for whether you treat rollback as a first-class pipeline stage rather than an afterthought, and whether you understand that a failed smoke test in production is a signal to revert traffic, not to patch forward.

The full answer

A strong answer walks through four sequential components. First, traffic isolation: the canary progression must freeze instantly so no additional users hit the bad version. This means stopping the canary scheduler and either draining existing canary pods or shifting traffic back to the stable baseline before any rollback begins. Second, the rollback trigger: the pipeline should automatically initiate a new rollout using the last successfully deployed release without waiting for human approval. The reference architecture shows this is done by configuring verification at the pipeline stage level so that a failed verification job directly drives the rollback automation. Third, rollback verification: after the old release is restored you must run the same smoke tests or health checks against it to prove the previous version is still viable and that the failure was caused by the new code rather than an environmental issue. Fourth, forensics and alerting: the failed rollout and its logs must remain accessible for debugging, the on-call engineer should be paged with context, and the pipeline should emit metrics on rollback duration and frequency.

The mistakes people make

A major red flag is suggesting manual approval for the rollback. The question asks for an automated process, so introducing a human gate breaks the safety contract. Another red flag is proposing to mutate live containers or edit code in place to fix the smoke test. Interviewers also get nervous when candidates casually mention rolling back database schema changes as part of the same automated flow, since that couples stateful and stateless recovery. Finally, describing a rollback that simply redeploys without verifying the old version is still healthy shows shallow operational thinking.

What usually comes next

The interviewer may ask how you handle a rollback that also fails, which tests whether you keep a known good pool warm or have a circuit breaker to halt all deployments. They might ask how long you retain the failed canary artifacts, or how you prevent a rollback storm when the underlying issue is actually a degraded dependency. Another common follow-up is how you coordinate this process across multiple regions or shards.

A concrete example

Imagine a Kubernetes pipeline using a delivery tool with stage-level verification. After a canary deploy to production, a verification container runs smoke tests and times out after five minutes. The test fails. The pipeline stage has verify set to true, so the delivery system automatically creates a new rollout pointing to the previous container image and configuration. Traffic shifts back to the stable replica set. Once the old pods pass health checks, the pipeline marks the rollback successful and pages the on-call team with a link to the failed verification logs. The bad release remains in the cluster but receives zero traffic so engineers can exec into it for debugging.

Interview question

In an automated rollback pipeline triggered by a failed canary smoke test, which step must occur before redeploying the last known good release?

  • a.Page the on-call engineer and wait for manual approval to proceed
  • b.Run smoke tests against the previous release to confirm it is still healthy
  • c.Shift traffic back to the stable baseline and freeze the canary progressionCorrect
  • d.Mutate the failed canary containers in place to patch the failing test
Why?

The card states that traffic isolation—freezing the canary and shifting traffic to the stable baseline—must happen before any rollback begins to minimize blast radius. Running health checks against the previous release is part of post-redeploy verification, while manual approval or in-place patches break the automated safety contract.

Just read this? Test yourself on what you have been reading.

Read the original → oneuptime.com

You just looked this up. Could you explain it out loud?

That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on ci/cd — each one lists the topics its interview covers.

See open roles