A versioned S3 bucket accumulates large previous versions of frequently overwritten objects. The company must retain current versions indefinitely but permanently remove previous versions 30 days after replacement; which Lifecycle action meets this requirement?
Show the answer
Correct answerA. Expire noncurrent versions after 30 days.
AWhy this is right: Noncurrent version expiration permanently removes previous versions based on time since replacement.
BWhy not this: Expired delete marker removal cleans up eligible delete markers, not stored previous object versions.
CWhy not this: Transitioning changes the storage class but retains the previous versions.
DWhy not this: Current version expiration affects the versions that must be retained and does not permanently remove the previous versions.
Noncurrent version expiration permanently deletes versions after they have been noncurrent for the configured period. Current version expiration instead adds delete markers in a versioned bucket and does not provide the required cleanup.