Deployment and Orchestration of ML and AI Workflows
Which AWS CloudFormation feature lets a compute stack reference an exported subnet ID from a network stack in the same account and Region?
Show the answer
Correct answerD. An Fn::ImportValue intrinsic function
AWhy not this: CreationPolicy waits for resource signals; it does not transfer values between stacks.
BWhy not this: Fn::GetAtt retrieves resource attributes within the template, not exports from a separate stack.
CWhy not this: DependsOn controls resource creation order within a template; it does not retrieve another stack's outputs.
DWhy this is right: Fn::ImportValue retrieves an exported output for use in another stack in the same account and Region.
Fn::ImportValue retrieves a value exported by another stack in the same account and Region. Fn::GetAtt retrieves attributes of resources within the template rather than importing another stack's exported output.