You work for a company that has a set of EC2 Instances.
There is an internal requirement to create another instance in another availability zone.
One of the EBS volumes from the current instance needs to be moved from one of the older instances to the new instance.
How can you achieve this?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - C.
For a volume to be available in another availability zone, you need to create a snapshot from the volume.
Then in the snapshot from creating a volume, you can then specify the new availability zone accordingly.
The EBS Volumes attached to the EC2 Instance will always have to remain in the same availability zone as the EC2 Instance.
A possible reason for this could be because EBS Volumes are present outside of the host machine, and instances have to be connected over the network.
If the EBS Volumes are present outside the Availability Zone, there can be potential latency issues and subsequent performance degradation.
What one can do in such a scenario is to get the Snapshot of the EBS Volume.
Snapshot sequentially captures the state of your EBS Volume.
You can create an EBS Volume from this snapshot in your desired Availability Zone and attach it to your new Instance.
Later you can detach the volume from the older instance and delete then.
Option A is invalid because the Instance and Volume have to be in the same AZ to be attached to the instance.
After all, we have to specify AZ while creating Volume.
Option B is invalid because there is no way to specify a volume as a source.
Option D is invalid because the Diskcopy would be a tedious process.
For more information on snapshots, please visit the below URLs-
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-detaching-volume.htmlTo move an EBS volume from one EC2 instance to another in a different availability zone, you have several options.
Option A: Detach and Attach You can detach the EBS volume from the existing EC2 instance, and then attach it to a new EC2 instance in another availability zone. To do this, follow these steps:
Option B: Create a New Volume You can create a new EBS volume in the other availability zone and copy the contents of the existing volume to the new one. To do this, follow these steps:
Option C: Create a Snapshot You can create a snapshot of the existing EBS volume and then create a new volume from the snapshot in the other availability zone. To do this, follow these steps:
Option D: Disk Copy You can create a new EBS volume in the other availability zone and do a disk copy of the contents from the existing volume to the new one. To do this, follow these steps:
Overall, the best approach depends on your specific requirements and constraints. However, Option A and Option C are typically the most straightforward and least complex.