Google Cloud Professional Cloud Architect — Question 115
You are managing an application deployed on Cloud Run for Anthos, and you need to define a strategy for deploying new versions of the application. You want to evaluate the new code with a subset of production traffic to decide whether to proceed with the rollout. What should you do?
Answer options
- A. Deploy a new revision to Cloud Run with the new version. Configure traffic percentage between revisions.
- B. Deploy a new service to Cloud Run with the new version. Add a Cloud Load Balancing instance in front of both services.
- C. In the Google Cloud Console page for Cloud Run, set up continuous deployment using Cloud Build for the development branch. As part of the Cloud Build trigger, configure the substitution variable TRAFFIC_PERCENTAGE with the percentage of traffic you want directed to a new version.
- D. In the Google Cloud Console, configure Traffic Director with a new Service that points to the new version of the application on Cloud Run. Configure Traffic Director to send a small percentage of traffic to the new version of the application.
Correct answer: A
Explanation
The correct answer is A because deploying a new revision to Cloud Run with traffic percentage configuration allows for controlled testing of the new version with live traffic. Option B is incorrect as it involves creating a new service instead of using revisions, which does not meet the requirement of evaluating the new code. Options C and D involve additional configurations that are unnecessary for simply testing a new version with a percentage of traffic.