GCP Associate Cloud Engineer Practice Question 35: MIG CPU Autoscaling

Google Cloud Associate Cloud Engineer · Test 4 · question 5 of 10

Compute Engine Deploymenteasy

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?

Select one answer
Show answer and explanation

Answer:

  • D. An autoscaling policy on the managed instance group with a target CPU utilization of 60 percent and the min and max sizes

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

Practice Test 4 ›

Study guides for Google Cloud Associate Cloud Engineer