AWS Certified SysOps Administrator – Associate (legacy) — Question 812
A user has launched an EC2 instance from an instance store backed AMI. The user has attached an additional instance store volume to the instance. The user wants to create an AMI from the running instance. Will the AMI have the additional instance store volume data?
Answer options
- A. Yes, the block device mapping will have information about the additional instance store volume
- B. No, since the instance store backed AMI can have only the root volume bundled
- C. It is not possible to attach an additional instance store volume to the existing instance store backed AMI instance
- D. No, since this is ephemeral storage it will not be a part of the AMI
Correct answer: A
Explanation
When creating an AMI from an instance store-backed EC2 instance, the block device mapping of the new AMI will register any additional instance store volumes associated with the instance. While the actual data on these ephemeral drives is not saved within the AMI, the mapping configuration is preserved so that new instances launched from the AMI will automatically mount those volumes. Thus, option A is correct because the block device mapping retains information about the extra instance store volume.