AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 236
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?
Answer options
- A. Create a stack export from the database CloudFormation template and import those references into the web application CloudFormation template.
- B. Create a CloudFormation nested stack to make cross-stack resource references and parameters available in both stacks.
- C. Create a CloudFormation stack set to make cross-stack resource references and parameters available in both stacks.
- D. Create input parameters in the web application CloudFormation template and pass resource names and IDs from the database stack.
Correct answer: A
Explanation
The correct answer, A, allows the software development team to import specific resources from the database team's template without altering their independent processes. Option B, while it enables cross-stack references, does not align with the requirement of maintaining separate review processes. Option C is also unsuitable as stack sets are designed for managing stacks across multiple accounts and regions rather than facilitating resource sharing between teams. Option D lacks the capability to effectively manage resource-level change-set reviews as required.