
Ultimate access to all questions.
The development team at an IT company is utilizing AWS CloudFormation to streamline the management of its cloud infrastructure. Currently, the team has established two distinct CloudFormation stacks: a network stack, which includes a Virtual Private Cloud (VPC) and corresponding subnets, and a web application stack, which encompasses EC2 instances and an RDS database instance. The team now wishes to configure the web application stack in such a way that it can reference and utilize the VPC created in the network stack.
As an AWS Certified Developer Associate, which of the following solutions would you recommend to address this requirement?
A
Create a cross-stack reference and use the Export output field to flag the value of VPC from the network stack. Then use Fn::ImportValue intrinsic function to import the value of VPC into the web application stack
B
Create a cross-stack reference and use the Outputs output field to flag the value of VPC from the network stack. Then use Fn::ImportValue intrinsic function to import the value of VPC into the web application stack
C
Create a cross-stack reference and use the Outputs output field to flag the value of VPC from the network stack. Then use Ref intrinsic function to reference the value of VPC into the web application stack
D
Create a cross-stack reference and use the Export output field to flag the value of VPC from the network stack. Then use Ref intrinsic function to reference the value of VPC into the web application stack