nerdexam
Amazon

DOP-C02 · Question #275

A company is developing a web application's infrastructure using AWS CloudFormation. The database engineering team maintains the database resources in a CloudFormation template, and the software devel

The correct answer is A. Create a stack export from the database CloudFormation template and import those references. To allow independent CloudFormation stacks managed by different teams to share resources while maintaining separate lifecycles and review processes, the database stack should export its outputs for the web application stack to import.

Submitted by dimitri_ru· Mar 6, 2026Configuration Management and Infrastructure as Code

Question

A company is developing a web application's infrastructure using AWS CloudFormation. The database engineering team maintains the database resources in a CloudFormation template, and the software development team maintains the web application resources in a separate CloudFormation template. As the scope of the application grows, the software development team needs to use resources maintained by the database engineering team. However, both teams have their own review and lifecycle management processes that they want to keep. Both teams also require resource-level change-set reviews. The software development team would like to deploy changes to this template using their CI/CD pipeline. Which solution will meet these requirements?

Options

  • ACreate a stack export from the database CloudFormation template and import those references
  • BCreate a CloudFormation nested stack to make cross-stack resource references and parameters
  • CCreate a CloudFormation stack set to make cross-stack resource references and parameters
  • DCreate input parameters in the web application CloudFormation template and pass resource

How the community answered

(57 responses)
  • A
    74% (42)
  • B
    9% (5)
  • C
    14% (8)
  • D
    4% (2)

Why each option

To allow independent CloudFormation stacks managed by different teams to share resources while maintaining separate lifecycles and review processes, the database stack should export its outputs for the web application stack to import.

ACreate a stack export from the database CloudFormation template and import those referencesCorrect

Creating a stack export from the database CloudFormation template and importing those values into the web application template provides loose coupling, allowing each team to maintain independent review and lifecycle processes while enabling cross-stack resource referencing.

BCreate a CloudFormation nested stack to make cross-stack resource references and parameters

Using CloudFormation nested stacks creates a tight coupling where the parent stack manages the lifecycle of the child stack, thus violating the requirement for separate review and lifecycle management processes for each team.

CCreate a CloudFormation stack set to make cross-stack resource references and parameters

CloudFormation StackSets are designed for deploying the same stack across multiple accounts or regions, not for managing dependencies or sharing resources between different stacks within a single application in one account.

DCreate input parameters in the web application CloudFormation template and pass resource

Creating input parameters and manually passing resource references is error-prone and does not provide an automated, robust mechanism for cross-stack referencing that adapts to changes in the database stack outputs.

Concept tested: CloudFormation cross-stack references (Exports/Imports), stack dependencies

Source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html

Topics

#CloudFormation#stack exports#cross-stack referencing#IaC

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice