A versioning-enabled S3 bucket must expire current objects 30 days after creation and permanently delete previous versions 90 days after they become noncurrent. Which S3 Lifecycle configuration meets these requirements?
Show the answer
Correct answerD. Expire current versions after 30 days; expire noncurrent versions after 90 days.
AWhy not this: Transitioning noncurrent versions changes storage class but does not permanently delete them.
BWhy not this: Transitioning a current version changes its storage class rather than expiring it after 30 days.
CWhy not this: Removing expired delete markers does not permanently delete noncurrent object versions on the required schedule.
DWhy this is right: Current expiration meets the 30-day rule; noncurrent expiration deletes versions 90 days after they become noncurrent.
Current-version expiration and noncurrent-version expiration implement the separate retention periods. In a versioning-enabled bucket, current-version expiration creates a delete marker; removing expired delete markers does not delete retained noncurrent data versions.