Bird
0
0

In a canary deployment, what is the recommended method to manage user traffic between the old and new service versions?

easy📝 Conceptual Q2 of 15
Microservices - CI/CD for Microservices
In a canary deployment, what is the recommended method to manage user traffic between the old and new service versions?
ASend all user requests to the new version immediately to speed up deployment.
BRoute a fixed small percentage of traffic to the new version while the rest goes to the old version.
CRandomly drop user requests during deployment to reduce load.
DDisable routing controls and rely on DNS propagation delays.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Traffic Routing in Canary

    Canary deployments require controlled traffic routing to limit exposure.
  2. Step 2: Identify Best Practice

    Routing a small, fixed percentage to the new version allows monitoring and rollback if needed.
  3. Final Answer:

    Route a fixed small percentage of traffic to the new version while the rest goes to the old version. -> Option B
  4. Quick Check:

    Controlled traffic split is essential [OK]
Quick Trick: Split traffic gradually, don't switch all at once [OK]
Common Mistakes:
  • Routing all traffic immediately to new version
  • Dropping requests to reduce load
  • Ignoring routing controls during deployment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes