Microservices - CI/CD for MicroservicesIn 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.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand Traffic Routing in CanaryCanary deployments require controlled traffic routing to limit exposure.Step 2: Identify Best PracticeRouting a small, fixed percentage to the new version allows monitoring and rollback if needed.Final Answer:Route a fixed small percentage of traffic to the new version while the rest goes to the old version. -> Option BQuick 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 versionDropping requests to reduce loadIgnoring routing controls during deployment
Master "CI/CD for Microservices" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Advanced Patterns - Ambassador pattern - Quiz 15hard Advanced Patterns - Backend for Frontend (BFF) pattern - Quiz 12easy CI/CD for Microservices - Blue-green deployment - Quiz 3easy CI/CD for Microservices - Independent service pipelines - Quiz 11easy CI/CD for Microservices - Rollback strategies - Quiz 3easy CI/CD for Microservices - Automated testing strategy - Quiz 6medium Configuration and Secrets Management - Secrets management (Vault, AWS Secrets Manager) - Quiz 11easy Configuration and Secrets Management - Why externalized config enables flexibility - Quiz 6medium Migration from Monolith - Why gradual migration reduces risk - Quiz 6medium Migration from Monolith - Why gradual migration reduces risk - Quiz 5medium