Google Cloud Professional Cloud Developer — Question 65
You have an application deployed in production. When a new version is deployed, you want to ensure that all production traffic is routed to the new version of your application. You also want to keep the previous version deployed so that you can revert to it if there is an issue with the new version.
Which deployment strategy should you use?
Answer options
- A. Blue/green deployment
- B. Canary deployment
- C. Rolling deployment
- D. Recreate deployment
Correct answer: A
Explanation
The blue/green deployment strategy allows you to have two environments, one live (blue) and one idle (green), where you can switch traffic to the green version after deployment. This setup enables easy rollback to the blue version if issues arise. The other strategies do not provide the same level of traffic control and rollback capability as blue/green deployments do.