Data Ingestion and Transformation

A team updates a CloudFormation stack containing an S3 data bucket. It must preview proposed changes, block bucket replacement during updates, and retain the bucket if it is removed from the template; which actions together meet these requirements? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Set the bucket resource's DeletionPolicy attribute to Retain.D. Apply a stack policy denying Update:Replace for the bucket resource.F. Create and review a change set before executing the stack update.

AWhy this is right: DeletionPolicy: Retain preserves the bucket when its resource definition is removed from the template.

BWhy not this: Termination protection blocks stack deletion but does not block resource deletion or replacement during an update.

CWhy not this: UpdateReplacePolicy: Retain keeps the old physical bucket when a replacement happens; it does not stop the replacement.

DWhy this is right: Denying Update:Replace prevents stack updates from replacing the protected bucket.

EWhy not this: Drift detection reports differences between deployed resources and the stack's current template, not the changes a new template would make.

FWhy this is right: A change set exposes proposed resource changes for review before the team executes the update.

Change sets preview changes, a stack policy can deny bucket replacement, and DeletionPolicy: Retain preserves a bucket removed from the template. Termination protection prevents stack deletion, not resource deletion or replacement during stack updates; UpdateReplacePolicy: Retain keeps the old bucket after a replacement but does not prevent the replacement; drift detection compares deployed resources with the current template rather than previewing a proposed update.