exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 226 discussion

Given the following AWS CloudFormation template:



What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?

  • A. Add an Export declaration to the Outputs section of the original template and use ImportValue in other templates.
  • B. Add Exported: true to the Content.Bucket in the original template and use ImportResource in other templates.
  • C. Create a custom AWS CloudFormation resource that gets the bucket name from the ContentBucket resource of the first stack.
  • D. Use Fn::Include to include the existing template in other templates and use the ContentBucket resource directly.
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
bhanupriya07
Highly Voted 11 months, 1 week ago
Selected Answer: A
A. Add an Export declaration to the Outputs section of the original template and use ImportValue in other templates.
upvoted 6 times
...
65703c1
Most Recent 5 months ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
KarBiswa
7 months, 3 weeks ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-crossstackref.html
upvoted 3 times
...
Claire_KMT
12 months ago
A. Add an Export declaration to the Outputs section of the original template and use ImportValue in other templates.
upvoted 2 times
papason
12 months ago
By adding an Export declaration to the Outputs section of the original CloudFormation template, you can make the bucket name available for other templates to import and use. This allows you to reference the bucket name directly in other templates without the need for additional resources or custom logic.
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago