Medium1 markMultiple Choice
Domain 4.3: Managing Cloud Run resourcesDomain 4.3Cloud RunTraffic Splitting

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

You have a Cloud Run service currently serving 100% of production traffic. You deploy a new revision of the service, but you only want 10% of user traffic to be routed to the new revision for canary testing.

How should you configure this?

Answer options:

A.

Deploy the new revision to a different Cloud Run service and use a Global HTTP Load Balancer to split traffic.

B.

Use the Cloud Console or gcloud to adjust the traffic splitting settings, assigning 90% to the old revision and 10% to the new revision.

C.

Modify the application code to randomly reject 90% of requests.

D.

Cloud Run does not support traffic splitting; you must use GKE for canary deployments.

How to approach this question

Identify the native traffic management feature in Cloud Run.

Full Answer

B.Use the Cloud Console or gcloud to adjust the traffic splitting settings, assigning 90% to the old revision and 10% to the new revision.✓ Correct
Use the Cloud Console or gcloud to adjust the traffic splitting settings, assigning 90% to the old revision and 10% to the new revision.
Cloud Run natively supports traffic splitting. When you deploy a new revision, you can choose not to route 100% of traffic to it immediately. You can manage traffic splits directly in the Cloud Console or via `gcloud run services update-traffic`, allowing for easy canary testing and gradual rollouts.

Common mistakes

Assuming complex load balancer setups are required for simple canary deployments in Cloud Run.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam