A SysOps Administrator is using AWS CloudFormation to deploy resources but would like to manually address any issues that the template encounters. What should the Administrator add to the template to support the requirement?
A.
Enable Termination Protection on the stack
B.
Set the OnFailure parameter to ג€DO_NOTHINGג€
C.
Restrict the IAM permissions for CloudFormation to delete resources
By setting the OnFailure parameter to "DO_NOTHING", the CloudFormation stack will not take any automatic actions in response to a failure during stack creation or update. Instead, it will allow the Administrator to manually review and address any issues before deciding how to proceed.
Correct Answer: B
https://docs.aws.amazon.com/cli/latest/reference/cloudformation/create-stack.html
Determines what action will be taken if stack creation fails. This must be one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or DisableRollback , but not both.
Default: ROLLBACK
Possible values:
DO_NOTHING
ROLLBACK
DELETE
B is the best answer. But actually the OnFailure option is set in the CreateStack API call; as far as I can tell, you can't set that within the template itself.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
YashBindlish
Highly Voted 2 years, 7 months agoalbert_kuo
Most Recent 9 months, 4 weeks agoTroyMcLure
2 years, 5 months agopleasespammelater
2 years, 6 months agowshyang
2 years, 6 months agowshyang
2 years, 6 months agokarmaah
2 years, 6 months agosaumenP
2 years, 6 months agojxhyxxclyp
2 years, 7 months ago