AWS Certified Solutions Architect – Professional — Question 267
A user is planning to use EBS for his DB requirement. The user already has an EC2 instance running in the VPC private subnet.
How can the user attach the EBS volume to a running instance?
Answer options
- A. The user can create EBS in the same zone as the subnet of instance and attach that EBS to instance.
- B. It is not possible to attach an EBS to an instance running in VPC until the instance is stopped.
- C. The user can specify the same subnet while creating EBS and then attach it to a running instance.
- D. The user must create EBS within the same VPC and then attach it to a running instance.
Correct answer: A
Explanation
Amazon EBS volumes are bound to a specific Availability Zone (AZ) and must reside in the same AZ as the EC2 instance to which they are attached. Because EBS volumes are not subnet-specific or VPC-specific resources, options C and D are incorrect. Furthermore, EBS volumes can be attached to EC2 instances while they are running, which invalidates option B.