You need to create an autoscaling managed instance group for an HTTPS web application. You want to make sure that unhealthy VMs are recreated. What should you do?
A.
Create a health check on port 443 and use that when creating the Managed Instance Group.
B.
Select Multi-Zone instead of Single-Zone when creating the Managed Instance Group.
C.
In the Instance Template, add the label 'health-check'.
D.
In the Instance Template, add a startup script that sends a heartbeat to the metadata server.
The correct answer is A. Create a health check on port 443 and use that when creating the Managed Instance Group.
Option B is related to the availability and distribution of instances across multiple zones, but it does not directly address the requirement of recreating unhealthy VMs.
Option C is incorrect because labels are not used for configuring health checks in GCP.
Option D is an alternative method for health checking, but it is not as straightforward as using the built-in health check functionality provided by GCP for managed instance groups.
Option A is the correct choice because it involves creating a health check specifically on port 443, which is the standard port for HTTPS traffic. This health check will monitor the health of the instances based on their ability to respond to HTTPS requests. When creating the Managed Instance Group, you would configure it to use this health check to determine the health of the instances
Options B, C, and D are not directly related to setting up proper health checks for autoscaling and ensuring unhealthy instances are recreated
ANSWER A. Create a health check on port 443 and use that when creating the Managed Instance Group.
To ensure that unhealthy VMs are recreated, a health check should be created to monitor the instances in the managed instance group. This health check should be configured to check the appropriate endpoint for the web application, which in this case would be port 443 for HTTPS. If an instance is determined to be unhealthy, the instance group will automatically recreate it.
INCORRECT:
ANSWER B is not directly related to recreating unhealthy VMs, but instead ensures that the instance group spans multiple zones for increased availability.
ANSWER C, adding a label to the instance template, has no direct impact on the ability to recreate unhealthy VMs.
ANSWER D, adding a startup script to send a heartbeat to the metadata server, can help detect and recover from application-level failures, but it does not directly ensure that unhealthy VMs are recreated.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
cesar7816
Highly Voted 4 years, 8 months agotanito83
Highly Voted 3 years, 5 months agoEnamfrancis
Most Recent 2 months agoXNap
8 months, 2 weeks agofraiacca
1 year, 2 months agoCaptain1212
1 year, 2 months agosthapit
1 year, 3 months agoNxt_007
1 year, 3 months agoBacklander
1 year, 5 months agoVamshi_Krishna
1 year, 6 months agoAshish_Tayal
1 year, 7 months agoraselsys
1 year, 8 months agoBuruguduystunstugudunstuy
1 year, 9 months agoAnonimos
1 year, 11 months agodennydream
2 years agoleogor
2 years, 1 month agoUntamables
2 years, 1 month ago