Medium1 markMultiple Choice

GCP ACE · Question 20 · Domain 3.1: Deploying and implementing Compute Engine resources

You have deployed a web application on a Managed Instance Group (MIG). You want the group to automatically add more instances when the average CPU utilization across the group exceeds 70%, and remove instances when it drops below that threshold.

How should you configure the MIG?

Answer options:

A.

Create a Cloud Monitoring alert that triggers a Cloud Function to resize the MIG when CPU exceeds 70%.

B.

Enable autoscaling and set the autoscaling metric to CPU utilization with a target of 70%.

C.

Configure a Load Balancer to distribute traffic only to instances with less than 70% CPU.

D.

Set the MIG's autohealing health check to fail if CPU exceeds 70%.

How to approach this question

Identify the native feature of Managed Instance Groups designed to handle dynamic load.

Full Answer

B.Enable autoscaling and set the autoscaling metric to CPU utilization with a target of 70%.✓ Correct
Enable autoscaling and set the autoscaling metric to CPU utilization with a target of 70%.
Managed Instance Groups (MIGs) offer built-in autoscaling capabilities. You can configure the autoscaler to scale based on CPU utilization, load balancing capacity, or custom Cloud Monitoring metrics. Setting the target CPU utilization to 70% is the native, best-practice approach.

Common mistakes

Confusing autohealing (which replaces broken VMs) with autoscaling (which adds/removes VMs based on load).

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam