AWS Certified SysOps Administrator – Associate — Question 378

A SysOps administrator is troubleshooting an AWS CloudFormation stack creation that failed. Before the SysOps administrator can identify the problem, the stack and its resources are deleted. For future deployments, the SysOps administrator must preserve any resources that CloudFormation successfully created.

What should the SysOps administrator do to meet this requirement?

Answer options

Correct answer: B

Explanation

Setting the OnFailure parameter to DO_NOTHING during AWS CloudFormation stack creation ensures that successfully created resources are preserved for troubleshooting if the deployment fails. In contrast, setting OnFailure to ROLLBACK or DisableRollback to False will trigger automatic cleanup and delete the resources upon failure. Rollback triggers cannot be configured with a value of DO_NOTHING to achieve this behavior.