A team must prevent accidental stack deletion and retain an S3 bucket when it is removed from a template or replaced during an update. Which configurations meet these requirements? (Choose three.)
Choose 3 answers
Show the answer
Correct answersA. Enable termination protection on the stack.C. Set the bucket's DeletionPolicy to Retain.E. Set the bucket's UpdateReplacePolicy to Retain.
AWhy this is right: Termination protection prevents accidental deletion of the stack.
BWhy not this: Denying Update:Delete prevents resource removal instead of allowing removal while retaining the bucket.
CWhy this is right: DeletionPolicy Retain preserves the bucket when its resource definition is removed from the template.
DWhy not this: Rollback triggers monitor alarms during operations; they do not provide these deletion and retention protections.
EWhy this is right: UpdateReplacePolicy Retain preserves the old bucket when an update replaces it.
Termination protection blocks stack deletion. DeletionPolicy retains a resource removed from a template, while UpdateReplacePolicy retains the old resource after replacement. A stack policy denying Update:Delete blocks removal rather than allowing removal while retaining the bucket.