Deployment Strategies interview question

MLOps & ProductionDeployment StrategiesModel Monitoringmedium

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?

  1. ACompare each step with the average of the same hour over the last four weeks, which smooths out one-off events such as sales while keeping the usual time-of-day pattern.
  2. BReplace the comparison with fixed absolute thresholds, such as a 1% error rate, since a fixed bar does not depend on traffic and so is not skewed by sales or quiet nights.
  3. CCompare 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.
  4. DSend 50% of traffic to the new version from the first step, since a larger sample removes the noise behind both wrong decisions without needing a separate baseline.
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.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More MLOps & Production questions

  1. A telecom support bot on a self-hosted vLLM server sends a 3,000-token system prompt plus the growing chat history on every turn. After you enable automatic…
  2. A security review of a retail client's Google Cloud project finds that the Vertex AI training pipeline, a GKE scoring service and a nightly export job all run…
  3. On a GKE cluster you deploy a model server as a Deployment with 3 replicas and expose it with a Service. Which statement correctly describes these Kubernetes…
  4. Which statement best defines MLOps?
  5. An 8B support model (≈ 16 GB of BF16 weights) is served with a vLLM-style engine as shown below. At peak, the time per output token (TPOT) spikes and the…