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

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

You have deployed a new revision of a Cloud Run service. You want to perform a canary deployment by routing 10% of the incoming traffic to the new revision and keeping 90% on the old revision.

How should you configure this?

Answer options:

A.

Deploy an External HTTP(S) Load Balancer in front of Cloud Run and configure traffic splitting in the backend service.

B.

Use the Cloud Console or gcloud to update the traffic splitting percentages for the service.

C.

Modify the application code to randomly reject 90% of requests, forcing them to retry on the old revision.

D.

Create a second Cloud Run service and use Cloud DNS weighted routing to split the traffic.

How to approach this question

Identify the native feature in Cloud Run for managing traffic between revisions.

Full Answer

B.Use the Cloud Console or gcloud to update the traffic splitting percentages for the service.✓ Correct
Use the Cloud Console or gcloud to update the traffic splitting percentages for the service.
Cloud Run natively supports traffic splitting. When you deploy a new revision, you can choose not to route 100% of traffic to it immediately. Instead, you can use the 'Manage Traffic' feature in the console or the `gcloud run services update-traffic` command to specify exact percentages for different revisions.

Common mistakes

Assuming you need an external Load Balancer or DNS configuration to achieve traffic splitting in Cloud Run.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam