
Answer-first summary for fast verification
Answer: The ASG will terminate the EC2 Instance
To maintain the same number of instances, Amazon EC2 Auto Scaling performs a periodic health check on running instances within an Auto Scaling group. When it finds that an instance is unhealthy, it terminates that instance and launches a new one. Amazon EC2 Auto Scaling creates a new scaling activity for terminating the unhealthy instance and then terminates it. Later, another scaling activity launches a new instance to replace the terminated instance. Incorrect options: The ASG will detach the EC2 instance from the group, and leave it running - The goal of the auto-scaling group is to get rid of the bad instance and replace it The ASG will keep the instance running and re-start the application - The ASG does not have control of your application The ASG will format the root EBS drive on the EC2 instance and run the User Data again - This will not happen, the ASG cannot assume the format of your EBS drive, and User Data only runs once at instance first boot.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As an AWS developer tasked with designing scalable and resilient systems, you have set up an Auto Scaling group that integrates with an Application Load Balancer to manage incoming traffic efficiently. The Auto Scaling group is configured with specific parameters: a minimum size of 5 instances, a maximum size of 20 instances, and a desired capacity of 10 instances. Currently, one of the 10 EC2 instances in this configuration has been flagged as unhealthy.
Given these settings and the information about the unhealthy instance, which of the following actions will be initiated by the Auto Scaling group?
A
The ASG will keep the instance running and re-start the application
B
The ASG will format the root EBS drive on the EC2 instance and run the User Data again
C
The ASG will terminate the EC2 Instance
D
The ASG will detach the EC2 instance from the group, and leave it running
No comments yet.