Configure Autohealing for Managed Instance Groups
You want to configure autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps. You need to configure re-creation of VMs if they are unresponsive after 3 attempts of 10 seconds each. What should you do?
Community Insight
The core trap is confusing load balancing health checks (which route traffic away from bad instances) with autohealing health checks (which actually delete and recreate unhealthy instances).
This question tests the distinction between load balancer health checks and managed instance group (MIG) autohealing in Google Cloud. The correct configuration requires setting up an HTTP health check within the MIG to trigger VM recreation, not just traffic routing.
Many learners select Option A because it mentions a health check, but they miss that load balancer health checks do not automatically recreate VMs; they only stop sending traffic to them.
Community Discussion (136 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option C is the correct answer because autohealing is a feature of Managed Instance Groups (MIGs), not load balancers. To configure autohealing, you must attach a health check to the MIG. When the health check detects an instance as UNHEALTHY, the MIG controller deletes the instance and creates a new one based on the template. The prompt specifies '3 attempts of 10 seconds each,' which corresponds to configuring the health check's interval and threshold settings within the MIG context.Why the Other Options Are Wrong
Option A describes configuring a load balancer backend. As noted by community members like DickDastardly and Fidget_, load balancer health checks 'help direct traffic away from non-responsive instances' but do not cause Compute Engine to recreate instances. Options B and D are incorrect because balancing modes (B) and autoscaling (D) do not inherently provide the autohealing mechanism required to replace failed VMs. Autoscaling handles capacity changes, while autohealing handles failure recovery.Community Comment Notes
The community consensus strongly favors C. ReyBan highlighted that 'Health checks for autohealing detect and recreate failed instances,' distinguishing them from LB health checks. ashrafh confirmed that LB health checks only redirect traffic ('redirect to one which work') rather than recreating VMs. Fidget_ quoted official documentation stating that MIG health checks 'proactively signal to delete and recreate instances.' Tavva_prudhvi provided a step-by-step console guide confirming that autohealing is toggled ON within the instance group settings.Official Reference
Exam Strategy
Always distinguish between 'traffic management' (Load Balancing) and 'infrastructure repair' (Autohealing/MIG). If the question asks to 'recreate' or 'repair' instances, look for Managed Instance Group configurations. If it asks to 'distribute' or 'route' traffic, look at Load Balancer backends.
Frequently Asked Questions
Why can't I use a Network Load Balancer health check for autohealing?
Network Load Balancer health checks only determine if an instance receives traffic. They do not trigger the deletion and recreation of the VM instance itself.
Does enabling autoscaling automatically heal broken VMs?
No. Autoscaling adjusts the number of instances based on load metrics. Autohealing is a separate setting within the MIG that monitors health and replaces unhealthy instances.
Related Analysis
Practice All ACE Questions
Access 84 questions with complete answers and detailed explanations.
View Full ACE Practice Test →