A company runs a multi-tier web application with two Amazon EC2 instances in one Availability Zone in the us-east-1 Region. A SysOps administrator must migrate one of the EC2 instances to a new Availability Zone
Which solution will accomplish this?
Amazon EC2 and Availability Zones:
EC2 instances are tied to a specific Availability Zone within a region. Moving an instance directly is not possible.
Creating an Amazon Machine Image (AMI) allows the instance to be recreated in another Availability Zone.
Steps to Migrate an EC2 Instance to a New Availability Zone:
Create an AMI:
Open the EC2 Console.
Select the EC2 instance you want to migrate.
Choose Actions > Image and templates > Create Image.
Configure the AMI creation settings and create the image.
Launch a New Instance:
Navigate to the AMI section in the EC2 Console.
Select the newly created AMI.
Click Launch Instance from Image.
Specify the new Availability Zone during the instance configuration.
Terminate the Original Instance:
After validating that the new instance is functioning correctly, terminate the original instance to avoid additional costs.
Why Other Options Are Incorrect:
A: Directly copying an instance to another AZ is not supported.
C: There is no AWS CLI command to move an EC2 instance between AZs.
D: Stopping and modifying the AZ of an existing instance is not possible.
Currently there are no comments in this discussion, be the first to comment!