Google Professional Cloud Developer Question 305
Single answerGoogle Cloud PlatformYou are responsible for deploying a new feature in a production environment on Google Cloud. The feature introduces significant changes to the user experience, and you want to minimize the risk of a negative impact on end-users. Which feature rollout strategy should you adopt to ensure a smooth transition and allow for monitoring and feedback before a full-scale release?
- A
Blue-green deployment
- B
Feature flagging
- C
Canary deployment
- D
Big bang deployment
Show answer and explanation
Correct answer: C
Explanation
Canary deployment is the most appropriate strategy for rolling out a feature in a controlled manner. It allows you to release the feature to a small subset of users, observe its performance, and identify issues before scaling up to the entire user base. This minimizes the impact of potential issues and ensures a smooth transition.
- A. Incorrect.
Blue-green deployment involves running two environments (blue and green) and switching traffic from one to the other. While it ensures zero downtime, it is not ideal for testing a feature incrementally for a subset of users.
- B. Incorrect.
Feature flagging allows you to toggle features on or off for specific users, but it doesn't control traffic segmentation or provide a gradual rollout strategy.
- C. Correct.
Canary deployment gradually releases the feature to a small subset of users, monitors its impact, and incrementally increases the release scope. This minimizes risk and gathers feedback effectively.
- D. Incorrect.
Big bang deployment releases the feature to all users at once. This is high-risk and does not allow for monitoring or gradual rollout, making it unsuitable for this scenario.