PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #172
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #172: Real Exam Question with Answer & Explanation
The correct answer is D: Set up health checks in the managed instance group configuration.. Managed Instance Groups (MIGs) support autohealing: when a health check configured at the MIG level detects an unhealthy instance, the MIG automatically deletes and recreates it without human intervention. This is the proper mechanism for automatic instance recovery. Health check
Question
You have a service running on Compute Engine virtual machine instances behind a global load balancer. You need to ensure that when an 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 Cloud Logging alerts to trigger a workflow to reboot the instance.
- DSet up health checks in the managed instance group configuration.
Explanation
Managed Instance Groups (MIGs) support autohealing: when a health check configured at the MIG level detects an unhealthy instance, the MIG automatically deletes and recreates it without human intervention. This is the proper mechanism for automatic instance recovery. Health checks configured at the load balancer level (A) only affect traffic routing (the LB stops sending traffic to unhealthy instances) but do not trigger instance replacement. Options B and C depend on alerts and manual or semi-manual workflows, which introduce delay and are not fully automated recovery.
Topics
Community Discussion
No community discussion yet for this question.