0
0
Microservicessystem_design~20 mins

Canary deployment in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Canary Deployment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main purpose of a canary deployment?
Imagine you have a new version of a microservice. You want to release it carefully to avoid breaking the whole system. What is the main goal of using a canary deployment?
ATo test the new version with a small group of users before full release
BTo release the new version to all users at once to save time
CTo rollback the old version immediately after deployment
DTo deploy the new version only in the development environment
Attempts:
2 left
💡 Hint
Think about reducing risk by limiting exposure.
Architecture
intermediate
2:00remaining
Which component is essential for routing traffic in a canary deployment?
In a microservices system using canary deployment, which component is responsible for directing a portion of user requests to the new version while the rest go to the stable version?
ALogging and monitoring tool
BDatabase replication service
CContinuous integration server
DLoad balancer with traffic splitting capability
Attempts:
2 left
💡 Hint
Think about how requests are distributed.
scaling
advanced
2:00remaining
How should you scale the canary version during deployment?
You start a canary deployment by sending 5% of traffic to the new version. Over time, you want to increase this percentage. What is the best practice for scaling the canary version?
ARandomly change traffic percentages without monitoring
BGradually increase traffic to the canary version while monitoring metrics
CKeep the canary version at 5% traffic indefinitely
DImmediately switch 100% traffic to the new version after deployment
Attempts:
2 left
💡 Hint
Think about risk and feedback.
tradeoff
advanced
2:00remaining
What is a tradeoff when using canary deployment compared to blue-green deployment?
Canary and blue-green deployments are both strategies to release new versions. What is a key tradeoff when choosing canary deployment over blue-green?
ACanary deployment exposes only a small user group to risk but takes longer to fully release
BCanary deployment instantly switches all users to the new version
CCanary deployment requires more infrastructure than blue-green
DCanary deployment does not allow rollback
Attempts:
2 left
💡 Hint
Consider risk exposure and release speed.
estimation
expert
2:00remaining
Estimate the number of users affected during a canary deployment with 10 million daily users and 1% canary traffic
Your service has 10 million daily active users. You deploy a new version using canary deployment, routing 1% of traffic to it. How many users will experience the new version daily?
A500,000 users
B10,000 users
C100,000 users
D1,000,000 users
Attempts:
2 left
💡 Hint
Calculate 1% of 10 million.