GCP Professional Cloud Architect Practice Question
An e-commerce team is containerizing a Java API but will initially run it on Compute Engine virtual machines. The service must
stay available even during a complete zone outage,
scale out whenever either the average CPU load rises above 60 % or a Pub/Sub order-queue backlog grows,
support zero-downtime releases with an instant rollback path, and
automatically shrink to one VM during very low overnight traffic.
Which deployment strategy best satisfies these requirements?
Create a regional managed instance group from an instance template, attach an autoscaler driven by CPU and a custom Cloud Monitoring metric for Pub/Sub backlog, and perform application releases with the SUBSTITUTE update method.
Use an unmanaged instance group with an external HTTP(S) load balancer; trigger a Cloud Functions script to add or delete instances based on Pub/Sub backlog, and reboot instances in place for each release.
Create a single-zone managed instance group behind an internal load balancer, enable autoscaling on CPU utilization only, and handle releases with a blue-green approach by cloning the group and swapping backend services.
Deploy the container to Cloud Run, set minimum instances to 1, configure a Pub/Sub push subscription, and use traffic splitting for new revisions.
A regional managed instance group (MIG) spreads its VMs across two or more zones, so it keeps serving if one zone fails. A Compute Engine autoscaler can attach to the MIG with two scaling policies-CPU utilization and a custom Cloud Monitoring metric that reflects the Pub/Sub backlog-so either signal triggers scale-out. For releases, the MIG's SUBSTITUTE update method keeps the existing instances serving until their replacements are healthy, providing true zero downtime and a simple rollback. An autoscaler minimum-size setting of 1 lets the group shrink to a single instance off-peak. The other options fail at least one requirement: a single-zone MIG cannot survive a zonal outage, unmanaged groups lack health and update management, and Cloud Run does not use the mandated Compute Engine VMs.
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 a regional managed instance group (MIG)?
Open an interactive chat with Bash
How does Compute Engine autoscaler work with multiple scaling policies?
Open an interactive chat with Bash
What is the SUBSTITUTE update method in managed instance groups?
Open an interactive chat with Bash
What is a regional managed instance group (MIG) in GCP?
Open an interactive chat with Bash
How does autoscaling work with custom Cloud Monitoring metrics in GCP?
Open an interactive chat with Bash
What is the SUBSTITUTE update method in GCP and how does it provide zero-downtime releases?
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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .