Skip to content
RED SAGSkills
mediumMLOps Engineer interview question

Explain shadow, canary and A/B deployments for models. When do you use each?

What the interviewer wants to hear

  • Shadow: new model gets copy of traffic, no user impact
  • Canary: small traffic share to check health, gradual ramp
  • A/B test: measure business impact with statistics
  • Often used in sequence
  • Need clear metrics and rollback criteria

Model answer

In a shadow deployment, the new model receives a copy of live requests but its outputs are only logged, so users are not affected. I use it to check latency, errors and how predictions differ from the current model on real data. In a canary, a small share of real traffic, say 5%, is served by the new model; if health and key metrics stay good, I ramp up gradually. It is mainly a safety check. An A/B test splits users randomly for long enough to measure business impact, like conversion, with statistical confidence. I often use all three in order: shadow to catch technical issues, canary for safe exposure, and A/B to prove value. Each stage needs clear success and rollback criteria decided in advance, and automation to roll back fast.

Can you answer it under time pressure?

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

Start mock interview

More medium MLOps Engineer questions