QuestionQ15

Troubleshooting and Optimization

A developer at a company writes an AWS CloudFormation template. The template refers to subnets that were created by a separate AWS CloudFormation template that the company's network team wrote. When the developer attempts to launch the stack for the first time, the launch fails.

Which template coding mistakes could have caused this failure?

Choose two
Explanation

For cross-stack references: (B) The developer's template must use Fn::ImportValue to reference outputs from the network team's stack. (D) The network team's template must export the subnets in the Outputs section using the Export parameter. Without both an export in the source stack and an import in the consuming stack, cross-stack references fail. Ref (A) is for same-stack resources; Mappings (C, E) are lookup tables, not for resource references.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!