Google Cloud Professional Cloud DevOps Engineer — Question 168
You have an application running in production on Cloud Run. Your team recently finished developing a new version (revision B) of the application. You want to test the new revision on 10% of your clients by using the least amount of effort. What should you do?
Answer options
- A. Deploy the new revision to the existing service without traffic allocated. Tag the revision and share the URL with 10% of your clients.
- B. Create a new service, and deploy the new revisions on the new service. Deploy a new revision of the old application where the application routes a percentage of the traffic to the new service.
- C. Create a new service, and deploy the new revision on that new service. Create a load balancer to split the traffic between the old service and the new service.
- D. Deploy the new revision to the existing service without traffic allocated. Split the traffic between the old revision and the new revision.
Correct answer: D
Explanation
The correct answer, D, allows you to test the new revision with 10% of the traffic while still keeping the old revision active. Option A does not test the new revision with real traffic. Option B involves unnecessary complexity by creating a separate service, and option C introduces a load balancer that is not needed for a simple traffic split.