Home › AWS Developer Associate › cloudcomputing › awsdevdeployment › 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.
Related questions
Which strategy lets a serverless API safely deploy a new Lambda alias while keeping old clWhich AWS service lets developers store and version build artefacts and intermediate filesA Lambda function is deployed as a container image stored in ECR. Which change triggers LaWhich Elastic Beanstalk deployment policy shifts traffic to new instances WHILE keeping thA team wants to deploy a Lambda update with the option to roll back automatically if a CloWhich AWS service automates Docker image builds and publishes them to a private container Which combination provides end-to-end CI/CD for an application stored in CodeCommit, builtWhich CodeDeploy deployment strategy for a Lambda alias shifts traffic from version V1 to