AWS Certified Solutions Architect – Professional — Question 42
How can you check the operational validity of your AWS CloudFormation template?
Answer options
- A. To check the operational validity, you need to attempt to create the stack.
- B. There is no way to check the operational validity of your AWS CloudFormation template.
- C. To check the operational validity, you need a sandbox or test area for AWS CloudFormation stacks.
- D. To check the operational validity, you need to use the aws cloudformation validate-template command.
Correct answer: A
Explanation
The correct answer is A because the only definitive way to check if a CloudFormation template is operationally valid is to create the stack based on it. Option B is incorrect as there are methods to check validity, option C is misleading since a sandbox is not necessary for this validation, and option D, while it provides a way to validate syntax, does not confirm operational validity.