Google ACE Deploying and Implementing a Cloud Solution Practice Question
A company has a managed instance group (MIG) with a fixed number of instances. They want to add an autoscaling policy that scales based on CPU utilization, with a target utilization of 60%. Which command should be used to update the MIG?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
gcloud compute instance-groups managed set-autoscaling my-mig --region us-central1 --max-num-replicas 10 --target-cpu-utilization 0.6
The 'gcloud compute instance-groups managed set-autoscaling' command configures autoscaling for a MIG with the specified target CPU utilization.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
gcloud compute instance-groups managed set-autoscaling my-mig --region us-central1 --max-num-replicas 10 --target-cpu-utilization 0.6
Why this is correct
This is the correct command for enabling autoscaling on a regional managed instance group. The set-autoscaling verb properly applies the autoscaling policy, and the --region us-central1 flag matches the regional scope of the MIG. The --max-num-replicas 10 sets the upper limit, while --target-cpu-utilization 0.6 correctly specifies a 60% CPU utilization target as a decimal fraction.
- ✗
gcloud compute instance-groups managed update my-mig --autoscaling --cpu-utilization 60
Why it's wrong here
This command is invalid because the gcloud compute instance-groups managed update subcommand is used for updating instance group properties such as size or template, not for configuring autoscaling. The --autoscaling flag does not exist on the update command; you must use set-autoscaling. Additionally, --cpu-utilization 60 is incorrect because the target CPU utilization must be provided as a decimal (0.6), not an integer percentage.
- ✗
gcloud compute instance-groups managed configure-autoscaling my-mig --region us-central1 --target-cpu-utilization 0.6
Why it's wrong here
This command fails because configure-autoscaling is not a recognized subcommand in the gcloud compute instance-groups managed group. The correct verb is set-autoscaling, which is the only command that accepts autoscaling policy flags. Even though the other flags like --region and --target-cpu-utilization are appropriately used for a regional MIG, the invalid command name causes the operation to fail before any changes are made.
- ✗
gcloud compute instance-groups managed set-autoscaling my-mig --zone us-central1-a --max-num-replicas 10 --target-cpu-utilization 60
Why it's wrong here
This command uses --zone us-central1-a, which targets a zonal managed instance group, but the MIG in question is regional, so the --region us-central1 flag is required. Additionally, --target-cpu-utilization 60 is incorrect because the flag expects a decimal fraction, so 60% must be expressed as 0.6, not the integer 60. Both the scope and the utilization value are wrong, making this option invalid.
Go deeper
Related to this question
About these practice questions
This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.