PROFESSIONAL-CLOUD-DEVELOPER · Question #33
You have a service running on Compute Engine virtual machine instances behind a global load balancer. You need to ensure that when the instance fails, it is recovered. What should you do?
The correct answer is D. Set up health checks in the managed instance group configuration.. A is not correct because the load balancer health check will not recover the instance. The load balancer health check will exclude the instance from receiving traffic. B is not correct because a service on the instance may not work when the instance fails. C is not correct becaus
Question
You have a service running on Compute Engine virtual machine instances behind a global load balancer. You need to ensure that when the instance fails, it is recovered. What should you do?
Options
- ASet up health checks in the load balancer configuration.
- BDeploy a service to the instances to notify you when they fail.
- CUse Stackdriver alerting to trigger a workflow to reboot the instance.
- DSet up health checks in the managed instance group configuration.
How the community answered
(47 responses)- A6% (3)
- B11% (5)
- C2% (1)
- D81% (38)
Explanation
A is not correct because the load balancer health check will not recover the instance. The load balancer health check will exclude the instance from receiving traffic. B is not correct because a service on the instance may not work when the instance fails. C is not correct because this is not the platform-idiomatic way of recovering failed instances. D is correct because the managed instance group health check will recreate the instance when it fails, and this is the platform-native way to satisfy this use case. https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed- instances#monitoring_groups)
Topics
Community Discussion
No community discussion yet for this question.