GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice question 32 of 35

You configured your Compute Engine instance group to scale automatically according to overall CPU usage. However, your application’s response latency…

Full set: 265 questions
You configured your Compute Engine instance group to scale automatically according to overall CPU usage. However, your application’s response latency increases sharply before the cluster has finished adding up instances. You want to provide a more consistent latency experience for your end users by changing the configuration ot the instance group autoscaler. Which two configuration changes should you make? (Choose two.)
Answer options
A: Add the label “AUTOSCALE” to the instance group template.
B: Decrease the cool-down period for instances added to the group. Correct answer
C: Increase the target CPU usage for the instance group autoscaler.
D: Decrease the target CPU usage for the instance group autoscaler. Correct answer
E: Remove the health-check for individual VMs in the instance group.
Correct Answer:
B. Decrease the cool-down period for instances added to the group.; D. Decrease the target CPU usage for the instance group autoscaler.
Explanation

The core issue is that the autoscaler is reacting too slowly to increased load, causing latency spikes before new instances are ready. To mitigate this, the autoscaler must be configured to be more proactive and responsive.
1. Decreasing the target CPU usage (D) makes the autoscaler trigger a scale-out event at a lower average CPU level. This adds capacity earlier, before existing instances become overloaded and application latency degrades.
2. Decreasing the cool-down period (B) reduces the time the autoscaler waits after a scaling event before it can initiate another one. This allows the autoscaler to react more quickly to sustained or rapidly increasing traffic by adding more instances in quicker succession.

Why Incorrect

A. Adding a label is for resource organization and filtering; it has no functional impact on the autoscaler's behavior or responsiveness.
C. Increasing the target CPU usage would delay the scaling action, as instances would need to reach a higher level of load before new ones are added, worsening the latency problem.
E. Removing the health check would compromise the instance group's reliability by preventing the replacement of unhealthy instances, but it would not affect the speed of scaling out.

References

1. Google Cloud Documentation - Autoscaling groups of instances, "Scaling policies": This document explains that the autoscaler's goal is to maintain the average CPU utilization at the specified target level. "For example, if you set the target CPU utilization to 60%, the autoscaler works to keep the average CPU utilization of the specified instance group at 60%." To scale out sooner, this target must be lowered.

2. Google Cloud Documentation - Autoscaling groups of instances, "Cool down period": This section states, "The cool down period... is the period of time that the autoscaler must wait before it can collect usage information from a new VM instance." A shorter cool-down period allows the autoscaler to more quickly assess the group's state after a new instance is added and make subsequent scaling decisions faster if the load continues to rise.

3. Google Cloud Documentation - gcloud compute instance-groups managed set-autoscaling: The documentation for the command-line tool shows the parameters --target-cpu-utilization and --cool-down-period as key configurable settings for tuning autoscaler behavior, confirming their direct role in controlling scaling actions.

Scroll to Top