exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 322 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
acloudguru
Highly Voted 3 years, 9 months ago
Selected Answer: A
reuse! not duplicated! so it is A.
upvoted 8 times
...
SkyZeroZx
Most Recent 2 years, 2 months ago
Selected Answer: A
Yes i have reused same LogicalID for link with other resource
upvoted 1 times
...
rostykm
2 years, 10 months ago
Selected Answer: B
B: the logical name not ID
upvoted 1 times
...
jyrajan69
3 years, 6 months ago
You may reuse the same logical ID multiple times, keyword being reuse. The logical ID is still unique, and it is, so the answer is A
upvoted 2 times
...
cldy
3 years, 8 months ago
B. False, a logical ID must be unique within the template.
upvoted 2 times
...
MIU
3 years, 9 months ago
B. It should be unique. Why people here are confused?
upvoted 1 times
...
Merlin1
3 years, 9 months ago
Again the wording "reuse" can you reuse it? No, can you reference it to add a resource to it i.e an EBS store yes. Does it have to be unique within a template yes. So if I am understanding the wording here...Can you "reference" a logical id more than once? Yes i.e adding 2 EBS volumes to it...You would use the logical ID to add each volume. Can you "reuse" that ID for a different resource? No...So what am I missing here? Seems like A to me.
upvoted 3 times
...
santanu77
3 years, 10 months ago
A. Logical ID "The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. Use the logical name to reference the resource in other parts of the template. For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance." From http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-resources.html
upvoted 2 times
...
lephi16
3 years, 10 months ago
Shouldn't this be A, according to it's own supporting information: 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. http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-resources.html
upvoted 1 times
lephi16
3 years, 10 months ago
Sry misread, the logical name part.. B it is
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...