Google Cloud Professional Cloud Developer — Question 300
You need to deploy a new feature into production on Cloud Run. Your company’s SRE team mandates gradual deployments to avoid large downtimes caused by code change errors. You want to configure this deployment with minimal effort. What should you do?
Answer options
- A. Configure the application’s frontend load balancer to toggle between the new and old revisions.
- B. Configure the application code to send a small percentage of users to the newly deployed revision.
- C. Deploy the feature with “Serve this revision immediately” unchecked, and configure the new revision to serve a small percentage of traffic. Check for errors, and increase traffic to the revision as appropriate.
- D. Deploy the feature with “Serve this revision immediately” checked. Check for errors, roll back to the previous revision, and repeat the process until you have verified that the deployment is bug-free.
Correct answer: C
Explanation
Option C is correct because it allows for a controlled rollout by initially directing only a small portion of traffic to the new revision, ensuring any issues can be addressed before full deployment. Option A does not provide a method for gradual deployment, while Option B lacks the comprehensive monitoring and adjustment needed for risk management. Option D involves immediate deployment of the new revision, which does not align with the gradual rollout requirement and could lead to significant downtime if issues arise.