Professional Cloud Architect · Free Practice Question Medium
Question 39
The game's backend APIs run on a fleet of virtual machines behind a Managed Instance Group with autoscaling enabled. The scaling policy on this group adds more instances if the CPU utilization is consistently over 80%, and to scale down when the CPU utilization is consistently lower than 60%. You've noticed that autoscaling adds more virtual machines than necessary when scaling up, and you suspect that this may be due to a misconfiguration in health checks - the initial health check latency is set to 30 seconds. Each virtual machine takes less than 3 minutes to be ready to process requests. What can you do to fix this issue?
-
A
You can update the autoscaling health check to increase the initial delay to 200 seconds.
-
B
You can update the managed instances template to set the maximum instances to 3.
-
C
You can update the autoscaling health check from HTTP to TCP.
-
D
You can update the managed instances template to set the minimum instances to 3.
Reveal correct answer
Correct answer: A
A.
By increasing the initial delay of the health check to 200 seconds, you allow more time for the virtual machines to become fully ready to process requests before autoscaling takes place. Since each virtual machine takes less than 3 minutes to be ready, increasing the initial delay will help prevent unnecessary scaling.
B.
Limiting the maximum instances to 3 would restrict the scaling, but it does not address the underlying problem of unnecessary scaling caused by the misconfiguration in health checks.
C.
Changing the health check protocol from HTTP to TCP may have implications on the health monitoring and may not directly address the problem of unnecessary scaling due to misconfiguration in health checks.
D.
Setting the minimum instances to 3 would enforce a higher baseline number of instances, but it does not directly address the issue of unnecessary scaling caused by the misconfiguration in health checks.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
