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 questionsThe 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.
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.
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.
Keep practicing
Take the free GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice questions
- Question 1You have an application controlled by a managed instance group. When you deploy a new ver…
- Question 2Your service adds text to images that it reads from Cloud Storage. During busy times of t…
- Question 3You have been tasked with planning the migration of your company’s application from on-pr…
- Question 4You plan to make a simple HTML application available on the internet. This site keeps inf…
- Question 5HipLocal's APIs are showing occasional failures, but they cannot find a pattern. They wan…
- Question 6Your company has created an application that uploads a report to a Cloud Storage bucket. …
