AWS Certified SysOps Administrator – Associate (legacy) — Question 882
A SysOps Administrator has been tasked with deploying a company's infrastructure as code. The Administrator wants to write a single template that can be reused for multiple environments in a safe, repeatable manner.
What is the recommended way to use AWS CloudFormation to meet this requirement?
Answer options
- A. Use parameters to provision the resources.
- B. Use nested stacks to provision the resources.
- C. Use Amazon EC2 user data to provision the resources.
- D. Use stack policies to provision the resources.
Correct answer: A
Explanation
Using AWS CloudFormation parameters allows you to input custom values each time you create or update a stack, enabling a single template to be safely reused across different environments. Nested stacks are used for modularity and template reuse rather than environment-specific input customization, while stack policies protect resources from unintentional updates. Amazon EC2 user data is for instance bootstrapping and does not manage template provisioning for multiple environments.