CompTIA Cloud+ (CV0-004)DevOps FundamentalsMedium
A cloud administrator deploys a new application version to a fully separate, identical production environment. After validating the new environment, traffic is switched over instantly, and if problems occur, traffic can be switched back immediately. Which deployment strategy is being used?
- ARolling deployment
- BCanary deployment
- CRecreate deployment
- DBlue-green deployment
Show answer & explanationAnswer & explanation
Correct answer: D. Blue-green deployment
Blue-green deployment maintains two identical environments, switching traffic all at once between them, enabling instant rollback by reverting the switch. Rolling and canary deployments gradually shift traffic, while recreate deployment tears down the old version before starting the new one.
Why the other options are wrong
- A. Rolling deployment gradually replaces instances rather than switching between two full environments.
- B. Canary deployment gradually exposes a small subset of users to the new version, not an instant full cutover.
- C. Recreate deployment shuts down the old version completely before starting the new one, causing downtime.
Blue-Green Deployment
A deployment strategy using two identical environments (blue and green) where traffic is switched entirely from one to the other, enabling instant rollback.
- Requires double the infrastructure temporarily
- Provides near-zero downtime cutover
- Rollback is as simple as switching traffic back
Memory trick: Blue-green: flip the traffic light switch instantly between two full copies.