Google Cloud Associate Cloud Engineer — Question 235
You want to enable your development team to deploy new features to an existing Cloud Run service in production. To minimize the risk associated with a new revision, you want to reduce the number of customers who might be affected by an outage without introducing any development or operational costs to your customers. You want to follow Google-recommended practices for managing revisions to a service. What should you do?
Answer options
- A. Ask your customers to retry access to your service with exponential backoff to mitigate any potential problems after the new revision is deployed.
- B. Gradually roll out the new revision and split customer traffic between the revisions to allow rollback in case a problem occurs.
- C. Send all customer traffic to the new revision, and roll back to a previous revision if you witness any problems in production.
- D. Deploy your application to a second Cloud Run service, and ask your customers to use the second Cloud Run service.
Correct answer: B
Explanation
The correct answer, B, is the recommended approach as it allows for controlled traffic distribution and easy rollback if issues arise, minimizing the impact on customers. Option A does not proactively prevent problems, while C risks all customers being affected by potential issues, and D introduces unnecessary complexity and additional costs by managing two separate services.