Easy1 markMultiple Choice
Domain 4.3: Managing Cloud Run resourcesCloud RunTraffic SplittingDomain 4.3

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 route 10% of the traffic to the new revision for testing, while keeping 90% on the old revision. How can you achieve this?

Answer options:

A.

Deploy a new Cloud Run service and use Cloud DNS to split traffic.

B.

Use the Cloud Console or gcloud to adjust the traffic splitting percentages between the revisions.

C.

Configure an external HTTP(S) load balancer to split traffic.

D.

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

How to approach this question

Identify the native feature in Cloud Run for canary deployments.

Full Answer

B.Use the Cloud Console or gcloud to adjust the traffic splitting percentages between the revisions.✓ Correct
Cloud Run natively supports traffic splitting. When you deploy a new revision, you can specify exactly what percentage of incoming traffic should be routed to it. This is ideal for canary deployments and A/B testing. You can configure this easily via the Cloud Console or using `gcloud run services update-traffic`.

Common mistakes

Assuming you need an external load balancer to perform basic traffic splitting in serverless environments.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam