Challenge - 5 Problems
Canary Deployment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Canary deployment traffic split with NGINX
Given this NGINX configuration snippet for canary deployment, what percentage of traffic is routed to the canary backend?
Nginx
upstream backend {
server backend-v1.example.com weight=1;
server backend-v2.example.com weight=1;
}
server {
listen 80;
location / {
proxy_pass http://backend;
}
}Attempts:
2 left
💡 Hint
Weights in upstream servers determine traffic distribution proportionally.
✗ Incorrect
The upstream block has two servers: backend-v1 with weight 1 and backend-v2 with weight 1. Traffic is split evenly 50% each.
❓ Configuration
intermediate2:00remaining
Configure NGINX for 10% canary traffic
Which NGINX upstream configuration correctly routes 10% of traffic to the canary backend and 90% to the stable backend?
Attempts:
2 left
💡 Hint
Weights are relative and must be integers.
✗ Incorrect
Weights define relative traffic. Weight 9 + 1 means 90% to stable, 10% to canary.
❓ Troubleshoot
advanced2:00remaining
Why is canary traffic not reaching the canary backend?
You configured NGINX with a canary backend using weights, but all traffic goes to the stable backend. What is the most likely cause?
Attempts:
2 left
💡 Hint
Check backend server health and connectivity.
✗ Incorrect
If the canary backend is down, NGINX routes all traffic to the healthy stable backend regardless of weights.
🔀 Workflow
advanced3:00remaining
Steps to implement a canary deployment with NGINX
What is the correct order of steps to perform a canary deployment using NGINX?
Attempts:
2 left
💡 Hint
Think about deploying first, then routing traffic, then monitoring, then scaling.
✗ Incorrect
First deploy canary, then route traffic, monitor results, and finally increase traffic or promote.
✅ Best Practice
expert2:30remaining
Best practice for canary deployment rollback with NGINX
If the canary deployment shows errors, what is the safest way to rollback using NGINX configuration?
Attempts:
2 left
💡 Hint
Rollback means no traffic should go to canary backend.
✗ Incorrect
Removing the canary backend from upstream ensures no traffic is routed there. Setting weight to zero is invalid in NGINX.