A CloudFormation-managed EBS volume must remain available for inspection when an update replaces it. The current volume must be deleted when the stack is later deleted. Which resource attributes meet these requirements?
Show the answer
Correct answerD. UpdateReplacePolicy: Retain; DeletionPolicy: Delete
AWhy not this: Retains the replaced volume but also retains the current volume when the stack is deleted.
BWhy not this: Deletes the replaced volume and retains the current volume on stack deletion, reversing the required behavior.
CWhy not this: Preserves a snapshot rather than keeping the replaced volume available for inspection.
DWhy this is right: Retains the replaced volume for inspection and deletes the current managed volume when the stack is deleted.
UpdateReplacePolicy: Retain preserves the old volume during replacement, while DeletionPolicy: Delete deletes the current managed volume during stack deletion. DeletionPolicy: Retain would preserve the current volume too, contrary to the requirement.