A SysOps Administrator has configured health checks a target group for an Application Load Balancer. An Amazon EC2 instance belonging to the target group fails the health check. What will happen next? (Choose two.)
A.
The load balancer will continue to perform the health check on the EC2 instance.
B.
The EC2 instance will be terminated based on the health check failure.
C.
The EC2 instance will be rebooted.
D.
The load balancer will stop sending traffic to the EC2 instance.
E.
A new EC2 instance will be deployed to replace the unhealthy instance.
A | D are the answers
The problem does not say anything about ASG and target group can be only a single EC2.
Having said that, if the instance fails the health check, the Load balancer will stop sending traffic to the failed target (D), but will continue testing for health check on that target (A)
If the health checks exceed UnhealthyThresholdCount consecutive failures, the load balancer takes the target EC2 instance out of service. The load balancer continues to perform the health check on the EC2 instance. When the health checks exceed HealthyThresholdCount consecutive successes, the load balancer puts the target back in service.
ASG is not mentioned and hence only A and D apply.
By default, the health check configuration of your Auto Scaling group is set as an EC2 type that performs a status check of EC2 instances. To automate the replacement of unhealthy EC2 instances, you must change the health check type of your instance's Auto Scaling group from EC2 to ELB by using a configuration file.
When an EC2 instance fails a health check, the load balancer identifies it as unhealthy and stops sending traffic to that instance (Option D). This is done to prevent the load balancer from routing requests to an instance that is not functioning correctly.
To maintain high availability and ensure the health of the target group, the load balancer automatically replaces the unhealthy EC2 instance by launching a new instance (Option E). The new instance will be launched to replace the failed instance, helping to maintain the desired capacity and availability of the target group.
No ASG here so A and D are correct - health checks will mark is as unhealthy first and stop sending data + continue to monitor its status until its healthy again.
A-E :
"Problem: Instances in the Auto Scaling group fail the Amazon EC2 status checks.
Cause 1: If there are issues that cause Amazon EC2 to consider the instances in your Auto Scaling group impaired, Amazon EC2 Auto Scaling automatically replaces the impaired instances as part of its health check. "
https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html
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.
RicardoD
Highly Voted 2 years, 6 months agoTroyMcLure
Highly Voted 2 years, 6 months agoDAAJ
Most Recent 9 months, 3 weeks agoalbert_kuo
10 months agoalbert_kuo
6 months agoasfsdfsdf
2 years, 2 months agoOverlord75780
2 years, 6 months agoCyril_the_Squirl
2 years, 6 months agoOverlord75780
2 years, 6 months agoCyril_the_Squirl
2 years, 6 months ago