A company uses Amazon S3 to store critical data. An incident occurs where an S3 bucket is accidentally deleted. The DevOps engineer needs to recover the bucket and its objects. What should the engineer do?
The only way to recover from a deleted bucket is to recreate it and restore objects from a backup. (Note: bucket name uniqueness may require waiting or using a different name.)
Why this answer
S3 bucket names are globally unique and, once deleted, cannot be restored by AWS — the bucket and its configuration are gone. The correct recovery approach is to recreate the bucket with the same name (if the name is still available) and restore the objects from a backup or from versioned copies if versioning was enabled. This is the only viable path to recovery.
Exam trap
DOP-C02 often tests whether candidates understand that S3 bucket deletion is irreversible and that versioning protects objects, not the bucket itself, leading candidates to incorrectly believe AWS Support or CloudTrail can restore a deleted bucket.
How to eliminate wrong answers
Option A is wrong because CloudTrail event history records API activity (who deleted the bucket) but does not store bucket contents or enable restoration. Option B is wrong because AWS Support cannot restore a deleted S3 bucket — AWS does not retain deleted buckets, and Support has no mechanism to recover them. Option D is wrong because there is no 'undo deletion' feature in the S3 console; deletion is permanent.