Google Cloud Professional Cloud Developer — Question 1

You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.
Which deployment strategy should you use?

Answer options

Correct answer: B

Explanation

Canary deployment allows you to release a new version to a small subset of users before rolling it out to the entire user base, minimizing the potential impact of issues. In contrast, blue/green and rolling deployments may expose a larger user group to the new version immediately, while a recreate deployment takes the application offline, which could affect all users at once.