Your company is launching a promotional campaign that may create short-lived traffic spikes. You need a pool of identical Compute Engine VMs in zone us-central1-a that automatically keeps at least 2 instances running and can grow up to 20 when average CPU usage across the group rises above 60 percent. Future rollout changes must be done with rolling updates. Which approach satisfies the requirements while minimizing manual operations?
Launch two Spot VMs from a custom image and place them behind a regional external HTTP(S) load balancer, which will automatically add more instances when traffic increases.
Create an instance template for the VM configuration, then create a zonal managed instance group in us-central1-a that sets a minimum size of 2, maximum size of 20, and an autoscaling policy targeting 60 percent average CPU.
Deploy the application to a GKE Autopilot cluster and use a Horizontal Pod Autoscaler set to 60 percent CPU to scale the workloads instead of using Compute Engine instances.
Create a regional managed instance group with a fixed target size of 2 instances and rely on live migration to handle traffic spikes.
A managed instance group (MIG) is required for Compute Engine autoscaling and rolling updates. Creating an instance template first captures the boot disk image, machine type, startup script, and metadata. A zonal MIG created from that template can be configured with a minimum of 2 and a maximum of 20 instances and an autoscaling policy that targets 60 percent average CPU utilization. Unmanaged groups cannot autoscale. Load-balancing alone does not add or remove VMs. Regional MIGs span multiple zones, which is unnecessary here and disabling autoscaling would not meet the scaling requirement. Containers on GKE meet autoscaling differently and introduce extra operational overhead compared with the stated need for 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 Managed Instance Group (MIG) in Google Cloud?
Open an interactive chat with Bash
How does autoscaling work in a Managed Instance Group (MIG)?
Open an interactive chat with Bash
What is the purpose of an instance template in Compute Engine?
Open an interactive chat with Bash
What is a Managed Instance Group (MIG)?
Open an interactive chat with Bash
What is the role of an instance template in Compute Engine?
Open an interactive chat with Bash
How does autoscaling work for Compute Engine Managed Instance Groups?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
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 .