159k views
1 vote
If the AZ which and ec2 instance is running in fails, what happens to the instance?

1 Answer

3 votes

Final answer:

If the Availability Zone (AZ) in which an EC2 instance is running fails, the instance will be affected depending on how it was launched.

Step-by-step explanation:

If the Availability Zone (AZ) in which an EC2 instance is running fails, the instance will be affected depending on how it was launched.



If the instance was launched in an Auto Scaling group, it will be automatically replaced by launching a new instance in a different AZ within the same region. The Auto Scaling group is responsible for maintaining the desired number of instances and distributing them across multiple AZs.



However, if the instance was launched independently (not in an Auto Scaling group), it will be unavailable until the AZ is restored or manually moved to a different AZ.

User Riga
by
7.9k points