Google Cloud Associate Cloud Engineer — Question 296
You ate managing an application deployed on Cloud Run. The development team has released a new version of the application. You want to deploy and redirect traffic to this new version of the application. To ensure traffic to the new version of the application is served with no startup time, you want to ensure that there are two idle instances available for incoming traffic before adjusting the traffic flow. You also want to minimize administrative overhead. What should you do?
Answer options
- A. Ensure the checkbox “Serve this revision immediately” is unchecked when deploying the new revision. Before changing the traffic rules, use a traffic simulation tool to send load to the new revision.
- B. Configure service autoscaling and set the minimum number of instances to 2.
- C. Configure revision autoscaling for the new revision and set the minimum number of instances to 2.
- D. Configure revision autoscaling for the existing revision and set the minimum number of instances to 2.
Correct answer: C
Explanation
The correct answer is C because configuring revision autoscaling for the new revision ensures that two idle instances are available to handle traffic before the switch. Option A delays deployment unnecessarily, while option B does not specifically target the new revision. Option D targets the existing revision, which does not align with the requirement to deploy the new version.