AWS Certified Solutions Architect – Professional SAP-C01 – Question322

True or false: In a CloudFormation template, you can reuse the same logical ID several times to reference the resources in other parts of the template.

A.
True, a logical ID can be used several times to reference the resources in other parts of the template.
B. False, a logical ID must be unique within the template.
C. False, you can mention a resource only once and you cannot reference it in other parts of a template.
D. False, you cannot reference other parts of the template.

Correct Answer: B

Explanation:

Explanation: In AWS CloudFormation, the logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. You use the logical name to reference the resource in other parts of the template.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conce…