An administrator must import an existing S3 bucket into a CloudFormation stack without recreating it and also change a managed EC2 instance's type. The bucket must survive later stack deletion; which approach meets these requirements?
Show the answer
Correct answerD. Import the bucket with DeletionPolicy: Retain, then update the instance separately.
AWhy not this: UpdateReplacePolicy governs replacement, not stack deletion, and does not satisfy the import DeletionPolicy requirement.
BWhy not this: A resource import operation cannot also modify resources already managed by the stack.
CWhy not this: A standard update does not adopt the existing bucket; termination protection blocks deletion of the entire stack.
DWhy this is right: Import adopts the bucket, Retain protects it at stack deletion, and a separate update changes the instance.
Resource import brings the existing bucket under stack management, and DeletionPolicy: Retain preserves it at stack deletion. Import cannot also modify existing resources, so the instance change requires a separate update; UpdateReplacePolicy does not govern stack deletion.