Question
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?
- 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. Correct
- 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.
Explanation
According to AWS documentation, setting the OnFailure parameter to DO_NOTHING during CloudFormation stack creation will prevent CloudFormation from deleting the stack and its resources if stack creation fails. This allows the CloudOps engineer to preserve any successfully created resources for troubleshooting or future use.