GCP Professional Cloud Architect Practice Question
A fintech team hosts a latency-sensitive REST API on Cloud Run, fronted by an external HTTP(S) load balancer that exposes api.example.com. For each release they must:
run functional and load tests against the new version without affecting customers,
switch all production traffic instantaneously after tests pass,
be able to roll back within one minute, and
avoid changing the public DNS name or load-balancer endpoint. Which deployment plan best implements a blue-green strategy while meeting every requirement?
Deploy the new version as another Cloud Run service in the same region, add it as a second backend to the HTTP(S) load balancer for testing, then edit backend weights to shift traffic when ready.
Create a new revision of the existing Cloud Run service, tag it for testing, then use Cloud Run traffic splitting to move production traffic from 0 % to 100 % to the new revision (and back if needed).
Deploy the new version as a separate Cloud Run service in a different project, verify it with tests, then update Cloud DNS to point api.example.com to the new project's load-balancer IP.
Replace the container image of the existing Cloud Run revision in place, using max-unavailable = 0 to ensure instances start before old ones terminate.
Blue-green on Cloud Run is easiest when both versions live as separate revisions of the same service. Deploying the container creates a new revision that is addressable by a tag for pre-production testing while the current revision continues to serve 100 % of user traffic. After tests pass, the traffic-splitting API (or console/CLI) can shift routing from 0 % to 100 % for the new revision in a single atomic operation; reversing the split provides an instant rollback. Because the service URL and the HTTP(S) load balancer backend remain unchanged, no DNS or load-balancer reconfiguration is required. Deploying to different services or projects would necessitate updating load-balancer backends or DNS, lengthening cut-over and rollback times and increasing risk. An in-place image update without a parallel green environment violates the blue-green principle of simultaneous production and candidate versions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the blue-green deployment strategy?
Open an interactive chat with Bash
How does Cloud Run handle traffic splitting?
Open an interactive chat with Bash
Why is it better to use the same service for blue-green deployments on Cloud Run?
Open an interactive chat with Bash
What is Cloud Run traffic splitting?
Open an interactive chat with Bash
How does a blue-green deployment work on Cloud Run?
Open an interactive chat with Bash
What are the key differences between Cloud DNS and traffic splitting for deployment?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Managing implementation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .