Practice free →
HomeAWS Developer Associatecloudcomputingawsdevdeployment › Which CloudFormation feature lets a developer re…

Which CloudFormation feature lets a developer reference an existing resource (e.g. an existing S3 bucket) inside a new template without recreating it?

AMove the resource into a different AWS account first
BManually rewrite the resource's ARN every time the stack is updated
CDelete the existing resource and recreate it under the new stack
DUse `Fn::ImportValue` to reference an exported output from another stack, or pass the resource ARN via Parameters
Answer & Solution
Correct answer: D. Use `Fn::ImportValue` to reference an exported output from another stack, or pass the resource ARN via Parameters
Cross-stack references use `Outputs` + `Fn::ImportValue`, or simply parameters. The other options destroy data or invent unnecessary moves.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions