A CloudFormation update will replace an EBS volume. The administrator must retain the original volume after replacement but delete the managed replacement when the stack is deleted; which configuration meets these requirements?
Show the answer
Correct answerA. Set DeletionPolicy to Delete and UpdateReplacePolicy to Retain.
AWhy this is right: This retains the original during replacement and deletes the managed replacement when the stack is deleted.
BWhy not this: This snapshots rather than retains the original volume and retains the replacement at stack deletion.
CWhy not this: This deletes the original during replacement and snapshots the replacement when the stack is deleted.
DWhy not this: This deletes the original during replacement and retains the replacement when the stack is deleted.
UpdateReplacePolicy: Retain preserves the old physical resource during replacement, while DeletionPolicy: Delete deletes the managed resource with the stack. DeletionPolicy: Retain alone does not preserve a resource replaced during an update.