0
0
AWScloud~5 mins

Outputs for cross-stack references in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of Outputs in AWS CloudFormation stacks?
Outputs provide important information from a stack, such as resource IDs or URLs, that other stacks or users can use.
Click to reveal answer
beginner
How do you share a value from one AWS CloudFormation stack to another?
You define an Output in the first stack and then import it in the second stack using the ImportValue function.
Click to reveal answer
beginner
What AWS CloudFormation function is used to import values from another stack's output?
The ImportValue function is used to reference outputs from other stacks by their exported name.
Click to reveal answer
intermediate
Why should output names be unique when exporting values for cross-stack references?
Because exported output names must be unique within an AWS account and region to avoid conflicts when importing.
Click to reveal answer
intermediate
Can you update an exported output name after it is created in AWS CloudFormation?
No, you cannot change or delete an exported output name if it is being used by other stacks. You must first remove the import references.
Click to reveal answer
Which AWS CloudFormation feature allows sharing values between stacks?
AOutputs with Export and ImportValue
BParameters only
CResources
DConditions
What must be unique when exporting outputs for cross-stack references?
AStack name
BResource logical ID
CParameter value
DExport name
What happens if you try to delete an exported output that is still imported by another stack?
ADeletion fails until importers are removed
BIt deletes successfully
CIt deletes and breaks the importer stack
DAWS automatically updates importers
Which function is used in a stack to get a value exported by another stack?
AGetAtt
BRef
CImportValue
DJoin
Outputs in CloudFormation are mainly used to:
ADefine resources
BShare information like resource IDs or URLs
CSet conditions
DCreate parameters
Explain how Outputs and ImportValue work together to enable cross-stack references in AWS CloudFormation.
Think about how one stack shares info and another stack uses it.
You got /4 concepts.
    Describe the limitations and best practices when using Outputs for cross-stack references.
    Consider what can go wrong if you change or delete exports.
    You got /4 concepts.