A high-traffic recommender needs to limit risk when releasing a new model. How do blue-green and canary differ?
- Exam domain
- Model Deployment12% of the exam
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Model Deployment (12% of the exam)
Objective in the exam guide: Compare deployment strategies (e.g. blue-green and canary) and evaluate their suitability for high-traffic applications.
Comparing blue-green and canary is named.
Why A is the answer
Blue-green flips all traffic; canary starts with a small share
Blue-green runs two full versions and flips traffic. Canary exposes a slice first, which limits impact if something is wrong.
Remember: Canary limits blast radius; blue-green flips.
How it works
Rollout strategies trade speed for risk.
In detail
- Blue-green: flip and roll back.
- Canary: gradual exposure.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Blue-green flips all traffic; canary starts with a small shareRight
Canary limits blast radius; blue-green flips.
B. They are the sameWrong
They differ in exposure.
C. Canary switches all traffic at onceWrong
That describes blue-green.
D. Blue-green sends 1% of traffic to the new model for weeksWrongMost tempting
That describes canary.
Why it tempts: The names are easy to swap.
Use case
An illustrative scenario, not a real incident.
Illustrative: the recommender starts at 5% new traffic and reaches 100% over two days.
See it in different ways
stateDiagram-v2 state "100% old" as s0 state "5% new" as s1 state "50% new" as s2 state "100% new" as s3 [*] --> s0 s0 --> s1: start canary s1 --> s2: metrics good s2 --> s3: metrics good s3 --> [*]
How to read this chart
- It starts at "100% old".
- From "100% old", "start canary" moves it to "5% new".
- From "5% new", "metrics good" moves it to "50% new".
- From "50% new", "metrics good" moves it to "100% new".
- It ends at "100% new".
mindmap
root(("Rollout"))
n1["Blue-green"]
n2["Two full stacks"]
n3["Instant switch"]
n4["Canary"]
n5["Small share first"]
n6["Gradual"]How to read this chart
- The centre is "Rollout".
- "Blue-green" covers "Two full stacks", "Instant switch".
- "Canary" covers "Small share first", "Gradual".