Microsoft Certified: DevOps Engineer ExpertDesign and implement pipelinesMedium

A DevOps team is responsible for deploying a critical line-of-business application to Azure App Services. The application requires a deployment strategy that minimizes downtime to near zero during updates and provides an easy rollback mechanism in case of issues. The team needs to test the new version with a small subset of users before a full rollout. Which deployment strategy should the team implement?

  1. AIn-place deployment
  2. BRolling deployment
  3. CBlue/Green deployment with traffic shifting
  4. DCanary deployment
Show answer & explanation

Correct answer: D. Canary deployment

Canary deployment allows for gradual rollout of a new version to a small percentage of users, enabling monitoring and testing in a production environment before a full release, and providing an easy rollback if issues are detected. This perfectly matches the requirement of testing with a small subset of users and minimizing downtime.

Why the other options are wrong

  • A. In-place deployment replaces the existing version directly, leading to downtime and no easy rollback without a full redeployment.
  • B. Rolling deployment updates instances one by one, minimizing downtime but not allowing for testing with a small subset of users before full commitment.
  • C. Blue/Green deployment deploys a new version alongside the old, then switches traffic. While it minimizes downtime and allows rollback, it doesn't inherently support gradual rollout to a 'small subset' of users first.

Canary Deployment

A deployment strategy where a new version of an application is incrementally rolled out to a small subset of users or servers, allowing for real-world testing and performance monitoring before a full rollout.

  • Gradual rollout to a small user base.
  • Enables A/B testing and performance monitoring.
  • Easy rollback if issues are detected.
  • Minimizes risk of widespread impact from new releases.

Memory trick: Canary sings a little tune before the whole flock takes flight.

More Design and implement pipelines questions