ASSOCIATE-CLOUD-ENGINEER · Question #40
You work for a retail company that has a busy online store. As you are approaching New Year, you find that your e-store is getting more and more traffic. You ensure that your web servers are behind a
The correct answer is D. Increase the cool down period.. To prevent rapid, frequent scaling of a managed instance group, increasing the cool-down period allows instances to initialize and stabilize before the autoscaler makes new decisions.
Question
Options
- AChange the auto scaling metric to use multiple metrics instead of just one metric.
- BReduce the number of maximum instance count.
- CAssociate a health check with instance group.
- DIncrease the cool down period.
How the community answered
(24 responses)- A4% (1)
- B17% (4)
- C4% (1)
- D75% (18)
Why each option
To prevent rapid, frequent scaling of a managed instance group, increasing the cool-down period allows instances to initialize and stabilize before the autoscaler makes new decisions.
While using multiple autoscaling metrics can provide a more robust scaling strategy, it does not directly prevent rapid scaling up and down if the metrics fluctuate frequently and the cool-down period is short.
Reducing the maximum instance count limits the total number of instances the group can scale up to, but it does not prevent the instance group from rapidly scaling up and down within that limit if the autoscaling conditions are met.
Associating a health check ensures that unhealthy instances are removed and replaced, improving reliability, but it does not directly control the frequency of scaling decisions based on load metrics.
The cool-down period in an autoscaling configuration is the amount of time the autoscaler waits after an instance is created and starts serving traffic before collecting new metric data for that instance and making further scaling decisions. Increasing this period helps prevent "flapping" or rapid, successive scaling events by giving new instances time to become operational and stabilize the load, thus reducing unnecessary scale-in/scale-out operations.
Concept tested: Managed Instance Group autoscaling cooldown
Source: https://cloud.google.com/compute/docs/autoscaler/configure-autoscaler#cool-down_period
Topics
Community Discussion
No community discussion yet for this question.