GCP Associate Cloud Engineer Practice Question 35: MIG CPU Autoscaling
Google Cloud Associate Cloud Engineer · Test 4 · question 5 of 10
A web tier runs in a managed instance group behind a load balancer. CPU use rises during the day and falls at night. You want the group to add VMs when average CPU utilization is above 60 percent and remove them when it is lower, within a minimum of 2 and a maximum of 10 VMs.
What should you configure?
Show answer and explanation
Answer:
A managed instance group autoscaler adds or removes VMs to keep a signal, here average CPU utilization, near its target. You set the target (0.6), the minimum number of instances (2), and the maximum (10), and the group adjusts continuously without human action.
Option A follows a fixed schedule, not the real load. Option B needs a person to react, which is slow and not automatic. Option C wastes money at night and still fails to help when the load exceeds what one VM can handle.
Reference: Autoscaling groups of instances