0
0
MLOpsdevops~20 mins

Canary releases for model updates in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Canary Release Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Canary Release Purpose
Why is a canary release used when updating machine learning models in production?
ATo deploy the new model only in a testing environment without any user traffic
BTo immediately replace the old model with the new one for all users to save time
CTo run both old and new models in parallel and average their predictions for all users
DTo gradually expose the new model to a small portion of users to monitor performance before full deployment
Attempts:
2 left
💡 Hint
Think about minimizing risk when introducing changes.
💻 Command Output
intermediate
2:00remaining
Interpreting Traffic Routing Command Output
You run a command to route traffic to the new model version in a canary release. What is the output of this command?
MLOps
kubectl rollout status deployment/model-v2
kubectl patch service model-service -p '{"spec":{"selector":{"version":"v2"}}}'
A
deployment "model-v2" rolled out with warnings
service selector unchanged
B
error: deployment "model-v2" not found
service patch failed due to syntax error
C
deployment "model-v2" successfully rolled out
service patched to route traffic to version v2
D
deployment "model-v2" rolled out
service deleted accidentally
Attempts:
2 left
💡 Hint
Check for success messages and correct patch syntax.
🔀 Workflow
advanced
3:00remaining
Correct Order of Canary Release Steps
Arrange the steps in the correct order for performing a canary release of a new ML model version.
A3,1,2,4
B1,2,3,4
C1,3,2,4
D2,1,3,4
Attempts:
2 left
💡 Hint
Think about deploying first, then routing traffic, then monitoring.
Troubleshoot
advanced
2:00remaining
Identifying Issue in Canary Release Traffic Routing
After deploying a new model version with a canary release, users report no change in predictions. What is the most likely cause?
ATraffic routing rules still direct 100% traffic to the old model version
BThe new model version failed to build and was never deployed
CThe monitoring system is not collecting data properly
DThe new model version is slower but still serving predictions
Attempts:
2 left
💡 Hint
If users see no change, check where traffic is going.
Best Practice
expert
2:30remaining
Best Practice for Canary Release Rollback
During a canary release, monitoring detects a significant drop in model accuracy. What is the best immediate action?
ARollback the canary release by routing all traffic back to the stable model version
BIncrease traffic to the new model to gather more data for analysis
CIgnore the drop and continue rollout to all users
DDeploy a third model version immediately without rollback
Attempts:
2 left
💡 Hint
When performance drops, safety first.