DVA-C02 · Question #241
Given the following AWS CloudFormation template: What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?
The correct answer is A. Add an Export declaration to the Outputs section of the original template and use ImportValue in. 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…
Question
Given the following AWS CloudFormation template:
What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?
Exhibits
Options
- AAdd an Export declaration to the Outputs section of the original template and use ImportValue in
- BAdd Exported: true to the Content.Bucket in the original template and use ImportResource in
- CCreate a custom AWS CloudFormation resource that gets the bucket name from the
- DUse Fn::Include to include the existing template in other templates and use the ContentBucket
How the community answered
(32 responses)- A91% (29)
- B3% (1)
- D6% (2)
Explanation
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.
Community Discussion
No community discussion yet for this question.

