Google Cloud Associate Cloud Engineer — Question 143
Your web application has been running successfully on Cloud Run for Anthos. You want to evaluate an updated version of the application with a specific percentage of your production users (canary deployment). What should you do?
Answer options
- A. Create a new service with the new version of the application. Split traffic between this version and the version that is currently running.
- B. Create a new revision with the new version of the application. Split traffic between this version and the version that is currently running.
- C. Create a new service with the new version of the application. Add an HTTP Load Balancer in front of both services.
- D. Create a new revision with the new version of the application. Add an HTTP Load Balancer in front of both revisions.
Correct answer: B
Explanation
The correct answer is B because creating a new revision allows you to manage traffic between the existing version and the new version seamlessly within the same service. Options A and C involve creating a new service, which is unnecessary for a canary deployment, while option D adds an HTTP Load Balancer, complicating the deployment without need.