Easy1 markMultiple Choice
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?
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
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert