A managed instance group with autoscaling adds too many VMs because instances take ~3 minutes to become ready while the HTTP health check initial delay is 30 seconds. How should you adjust the configuration to avoid overprovisioning?
Choose an answer
Tap an option to check your answer.
Correct answer: Increase the HTTP health check initial delay to 200 seconds..
Why this is the answer
The correct answer is to increase the HTTP health check initial delay to 200 seconds. This is because the instances take approximately 3 minutes (180 seconds) to become ready. If the initial delay is only 30 seconds, the health check will mark the instance as unhealthy before it has a chance to fully start up. This triggers the autoscaler to create more instances, leading to overprovisioning. By setting the initial delay to 200 seconds, you give the instances enough time to become ready before the health check evaluates them, preventing unnecessary scaling actions. Setting the maximum number of instances to 1 or 3 would limit scaling but wouldn't address the underlying health check misconfiguration. Using a TCP health check might change the health check mechanism but wouldn't resolve the timing issue if the initial delay remains too short.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed