Medium1 markMultiple Choice
Domain 4.3: Managing Cloud Run resourcesCloud RunTraffic SplittingDeployments

GCP ACE · Question 35 · Domain 4.3: Managing Cloud Run resources

You have deployed a new version (v2) of your application to Cloud Run. You want to test this new version with a small subset of users before fully rolling it out. You want 10% of traffic to go to v2, and 90% to remain on v1.

How should you configure this?

Answer options:

A.

Deploy v2 to a new Cloud Run service and use a Global HTTP(S) Load Balancer to split traffic.

B.

Use the Cloud Run traffic splitting feature to assign 90% to the v1 revision and 10% to the v2 revision.

C.

Modify your application code to randomly route 10% of requests to a different endpoint.

D.

Create a Cloud DNS weighted routing policy.

How to approach this question

Recognize Cloud Run's native capabilities for managing deployments.

Full Answer

B.Use the Cloud Run traffic splitting feature to assign 90% to the v1 revision and 10% to the v2 revision.✓ Correct
Use the Cloud Run traffic splitting feature to assign 90% to the v1 revision and 10% to the v2 revision.
Cloud Run natively supports traffic splitting. When you deploy a new revision, you can configure the service to route a specific percentage of incoming requests to the new revision, allowing for easy canary deployments and A/B testing without needing external load balancers.

Common mistakes

Overcomplicating the solution by adding a Load Balancer when Cloud Run handles this natively.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam