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

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.