AWS Certified Developer – Associate (DVA-C02) — Question 350

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.)

Answer options

Correct answer: B, D

Explanation

To share resources like subnets across separate AWS CloudFormation stacks, the producing stack must define and export those resources in its Outputs section. The consuming stack must then retrieve those values using the Fn::ImportValue intrinsic function. Failure to export the values or failure to import them using ImportValue will result in deployment failure.