A retailer's progressive-delivery pipeline shifts traffic to a new recommendation-API version in steps of 5% → 25% → 50% → 100%. At each step, automated analysis compares the canary's error rate and p95 latency with production's values from the same hour one week earlier. A good release was rolled back during a flash sale, and a bad one passed on a quiet night. Which change fixes the analysis?
Show the answer and explanation
Correct answer: C, Compare the canary with a baseline of the current version that runs at the same time on the same traffic share, so a sale or a quiet night affects both versions alike.
Explanation Deployment Strategies
Automated canary analysis (Kayenta, Argo Rollouts, Flagger) promotes or rolls back based on metrics, so the comparison must make the version the only difference. A historical baseline cannot: last week's same hour had different traffic, promotions, dependencies and cache state. A flash sale raises errors and latency for any version, so a good release looks bad; a quiet night can hide a regression.
The fix is a concurrent baseline:
- Run the current version alongside the canary, on the same traffic share and in the same time window, so sales and quiet nights hit both sides. Kayenta-style setups even start a fresh baseline the size of the canary, so warm-up and cache effects favour neither side.
- Compare canary and baseline with statistical tests on error rate, latency and model-level metrics such as the score distribution or fallback rate.
Also keep a bake time at each step so slow problems (memory leaks, delayed errors) surface, and keep rollback automatic; neither fixes a baseline taken from another week.
Why the alternatives fail: a four-week average is still a historical comparison, so anything special about today still affects only the canary side. Fixed absolute thresholds fail the canary when a sale raises errors for every version, and they pass relative regressions that stay under the bar (0.2% → 0.6% passes a 1% limit). Jumping to 50% only reduces noise, not the bias from comparing different time windows, and it exposes half the users to an unproven version.
Interview tip: name the three ingredients, concurrent baseline, bake time and automatic rollback, and add that ML releases also need model-level gates (score distribution, business KPIs), not just HTTP errors.