Microsoft Certified: DevOps Engineer ExpertConfigure processes and communicationsHard
A DevOps team is managing a critical application. They need to ensure that every deployment to production is fully reversible to minimize downtime in case of critical issues. The deployment process should allow for an immediate switch back to the previous stable version if problems are detected. Which deployment strategy is most suitable for achieving this goal?
- AImmutable deployment
- BRolling deployment
- CBlue/Green deployment
- DCanary release
Show answer & explanationAnswer & explanation
Correct answer: C. Blue/Green deployment
Blue/Green deployment is specifically designed for full reversibility. It involves running two identical production environments (Blue for old version, Green for new). If issues arise with the new Green version, traffic can be instantly switched back to the stable Blue environment, allowing for immediate rollback with minimal downtime.
Why the other options are wrong
- A. Immutable deployment ensures that deployed artifacts are never changed in place; new deployments involve creating new instances. While good for consistency, it doesn't inherently guarantee immediate full rollback via a traffic switch like Blue/Green does; a rollback would typically involve deploying the previous immutable version, which is a new deployment process.
- B. Rolling deployment gradually replaces instances of the old version with the new. While it offers some rollback capability by reversing the roll, it's not an immediate, full-environment switch and can still incur downtime or partial service disruption during the rollback process.
- D. Canary release deploys to a small subset of users first. While it minimizes impact, it's primarily for testing new features in production, not for ensuring immediate full rollback of an entire deployment.
Blue/Green Deployment
Blue/Green deployment is a strategy that runs two identical production environments, 'Blue' (current version) and 'Green' (new version). Traffic is switched from Blue to Green once testing is complete. If issues arise, traffic can be instantly switched back to Blue, providing rapid rollback and minimal downtime.
- Two identical production environments.
- Instant traffic switch.
- Rapid rollback capability.
- Minimizes downtime during deployment and rollback.
- Ensures full reversibility.
Memory trick: Deployment safety means an easy return.