Medium1 markMultiple Choice
Subtask 5.1: Advise TeamsCloud RunTraffic SplittingCanary DeploymentTesting

GCP PCA · Question 31 · Advise Teams

You are managing a customer-facing web application deployed on Cloud Run. The development team has created a new version of the application with a redesigned UI. The product manager wants to test the new UI with 10% of the live user traffic to ensure it doesn't negatively impact conversion rates before rolling it out to everyone. How should you implement this?

Answer options:

A.

Deploy the new version to a separate Cloud Run service and configure Cloud DNS to route 10% of requests to the new URL.

B.

Deploy the new version to the existing Cloud Run service and use the traffic splitting feature to route 10% of traffic to the new revision.

C.

Modify the application code to randomly serve the new UI to 10% of users.

D.

Use Cloud Load Balancing to route traffic based on the user's geographic location.

How to approach this question

Identify the native feature of serverless compute (Cloud Run/App Engine) that allows for canary deployments.

Full Answer

B.Deploy the new version to the existing Cloud Run service and use the traffic splitting feature to route 10% of traffic to the new revision.✓ Correct
Cloud Run automatically creates a new 'Revision' every time you deploy. It includes a native traffic splitting feature that allows you to route a specific percentage of incoming HTTP requests to different revisions. This is the most efficient and least complex way to perform canary testing or A/B testing on GCP serverless platforms.

Common mistakes

Trying to use DNS (Option A) or application logic (Option C) for traffic splitting. Always leverage the native platform capabilities.

Practice the full GCP Professional Cloud Architect Practice Exam 7

50 questions · hints · full answers · grading

More questions from this exam