nerdexam
Amazon

SOA-C02 · Question #24

A SysOps administrator is creating two AWS CloudFormation templates. The first template will create a VPC with associated resources, such as subnets, route tables, and an internet gateway. The…

The correct answer is A. Add an export field to the outputs of the first template and import he values in the second. Note: To reference a resource in another AWS CloudFormation stack, you must first create cross- stack references. To create a cross-stack reference, use the export field to flag the value of a resource output for export…

Submitted by miguelv· Mar 30, 2026Deployment, Provisioning, and Automation

Question

A SysOps administrator is creating two AWS CloudFormation templates. The first template will create a VPC with associated resources, such as subnets, route tables, and an internet gateway. The second template will deploy application resources within the VPC that was created by the first template. The second template should refer to the resources created by the first template. How can this be accomplished with the LEAST amount of administrative effort?

Options

  • AAdd an export field to the outputs of the first template and import he values in the second
  • BCreate a custom resource that queries the stack created by the first template and retrieves the
  • CCreate a mapping in the first template that is referenced by the second template.
  • DInput the names of resources in the first template and refer to those names in the second

How the community answered

(34 responses)
  • A
    82% (28)
  • B
    6% (2)
  • C
    9% (3)
  • D
    3% (1)

Explanation

Note: To reference a resource in another AWS CloudFormation stack, you must first create cross- stack references. To create a cross-stack reference, use the export field to flag the value of a resource output for export. https://repost.aws/knowledge-center/cloudformation-reference-resource https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough- crossstackref.html

Topics

#CloudFormation outputs#cross-stack references#stack exports#VPC provisioning

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice