AWS Certified SysOps Administrator – Associate (SOA-C03) — Question 8
A CloudOps engineer is troubleshooting an AWS CloudFormation stack creation that failed. Before the CloudOps engineer can identify the problem, the stack and its resources are deleted. For future deployments, the CloudOps engineer must preserve any resources that CloudFormation successfully created.
What should the CloudOps engineer do to meet this requirement?
Answer options
- A. Set the value of the DisableRollback parameter to False during stack creation.
- B. Set the value of the OnFailure parameter to DO_NOTHING during stack creation.
- C. Specify a rollback configuration that has a rollback trigger of DO_NOTHING during stack creation
- D. Set the value of the OnFailure parameter to ROLLBACK during stack creation.
Correct answer: B
Explanation
The correct answer is B, as setting the OnFailure parameter to DO_NOTHING prevents CloudFormation from rolling back and deleting any resources that were successfully created if the stack creation fails. The other options either enable rollbacks or do not effectively prevent resource deletion during stack creation failures.