AWS Certified SysOps Administrator – Associate — Question 168
A company uses AWS CloudFormation templates to deploy cloud infrastructure. An analysis of all the company's templates shows that the company has declared the same components in multiple templates. A SysOps administrator needs to create dedicated templates that have their own parameters and conditions for these common components.
Which solution will meet this requirement?
Answer options
- A. Develop a CloudFormation change set.
- B. Develop CloudFormation macros.
- C. Develop CloudFormation nested stacks.
- D. Develop CloudFormation stack sets.
Correct answer: C
Explanation
The correct answer is C because CloudFormation nested stacks allow you to define common components in a separate template, which can be reused in multiple parent stacks, while enabling the use of parameters and conditions. Options A, B, and D do not provide the same level of template reuse and organization for common components.