AWS Certified SysOps Administrator – Associate (legacy) — Question 563
A user accidentally deleted a file from an Amazon EBS volume. The SysOps Administrator identified a recent snapshot for the volume.
What should the Administrator do to restore the user's file from the snapshot?
Answer options
- A. Attach the snapshot to a new Amazon EC2 instance in the same Availability Zone, and copy the deleted file.
- B. Browse to the snapshot and copy the file to the EBS volume within an Amazon EC2 instance.
- C. Create a volume from the snapshot, attach the volume to an Amazon EC2 instance, and copy the deleted file.
- D. Restore the file from the snapshot onto an EC2 instance using the Amazon EC2 console.
Correct answer: C
Explanation
To recover individual files from an Amazon EBS snapshot, you must first create a new EBS volume from that snapshot. After creating the volume, it can be attached to an active Amazon EC2 instance as a secondary device, allowing you to mount the file system and copy the required file. Snapshots themselves cannot be directly attached to EC2 instances or browsed at the file level.