AWS Certified Solutions Architect – Professional — Question 634
In CloudFormation, if you want to map an Amazon Elastic Block Store to an Amazon EC2 instance, _________.
Answer options
- A. you reference the logical IDs to associate the block stores with the instance
- B. you reference the physical IDs of the instance along with the resource type
- C. you reference the instance IDs of the block store along with the resource properties
- D. you reference the physical IDs of both the block stores and the instance
Correct answer: A
Explanation
In AWS CloudFormation, resources are defined within a template before they are actually provisioned, meaning physical IDs do not exist yet. Therefore, you must use logical IDs to declare relationships and associate resources, such as mapping an Amazon EBS volume to an Amazon EC2 instance. Options B, C, and D are incorrect because they rely on physical IDs or incorrect property references that are not available during template evaluation.