Create an autoscaling managed instance group for an HTTPS web app and ensure unhealthy VMs are recreated. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a health check on port 443 and use that when creating the Managed Instance Group..
Why this is the answer
To ensure unhealthy VMs are recreated in an autoscaling managed instance group (MIG) for an HTTPS web app, you must configure a health check. The health check actively probes the instances to determine their health status. By specifying port 443, the health check verifies that the HTTPS service running on the instances is responsive. If an instance fails the health checks, the MIG considers it unhealthy and will attempt to recreate it, maintaining the desired service availability. Selecting Multi-Zone provides high availability across zones but doesn't inherently recreate unhealthy instances within a zone. Adding a label 'health-check' to the instance template is not how health checks are configured for MIGs. A startup script sending a heartbeat to the metadata server is a custom solution that doesn't integrate directly with the MIG's built-in health check and autohealing mechanisms.
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