S3 Versioning
Bucket-level feature that preserves multiple variants of an object in the same bucket.
How it works
S3 Versioning is a bucket-level feature that retains multiple versions of an object. When enabled, overwriting creates a new version; deleting without a version ID generally creates a delete marker instead of removing earlier versions. You can retrieve an earlier version if authorized. Once enabled, Versioning can only be suspended and is required for S3 Replication.
When to use it
Choose it when the requirement is protect objects from accidental deletion or overwrites and restore earlier states.
Real-world example
An architecture firm enables Versioning on a bucket containing design drawings. After an engineer accidentally overwrites a drawing, the administrators find the previous version by its version ID and restore its contents after checking it.
Key facts
- In a versioning-enabled bucket, deleting without a version ID creates a delete marker; deleting a specific version permanently removes it.
- Once enabled on a bucket, versioning can be suspended but never fully disabled.
- Required to enable S3 Cross-Region Replication and Same-Region Replication.
Common pitfall
A normal object deletion does not remove older versions, which continue to incur storage charges. Consider Lifecycle rules for noncurrent versions; deleting a specific version can permanently remove that data.
Often confused with
S3 Object Lock, which protects object versions with retention periods or legal holds; governance mode can be bypassed with permission.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- accidental overwrite protection
- restore previous object version
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.