127k views
0 votes
What happens when an object is deleted in a bucket with versioning enabled?

User Aenw
by
8.1k points

1 Answer

0 votes

Final answer:

When an object is deleted from a bucket with versioning enabled, a delete marker is placed on it, making it appear deleted. Previous versions remain accessible, and recovery can be done by deleting the delete marker or restoring a previous version.

Step-by-step explanation:

When an object is deleted from a bucket with versioning enabled, the object is not actually removed. Instead, a delete marker is placed on the latest version of the object. This makes it appear as if the object is deleted, but in reality, all the previous versions of the object still exist in the bucket. If you try to retrieve the object, the bucket returns a 404 error because the delete marker becomes the current version. To recover the object, you can either delete the delete marker or restore a previous version of the object as the current version.

User Stefann
by
8.1k points