S3 Object Lock
A WORM (Write Once, Read Many) compliance feature that prevents S3 object versions from being deleted or overwritten.
How it works
S3 Object Lock applies a Write Once, Read Many model to protect object versions from deletion or overwrite during retention. It requires S3 Versioning and supports Governance mode, Compliance mode, and legal holds. A user with the appropriate permission can request a Governance bypass; Compliance prevents even the root user from deleting a protected version before retention expires.
When to use it
Choose it when the requirement is enforce immutable object retention for regulatory compliance or legal hold.
Real-world example
A brokerage stores trade confirmations in an Object Lock enabled bucket and applies Compliance mode with a seven-year retention period. The protected versions help the company meet its record retention requirements.
Key facts
- Requires S3 Versioning; Object Lock can be enabled on a new or existing bucket.
- Governance mode allows users with specific IAM permissions to bypass or alter retention dates.
- Compliance mode strictly prevents any user, including the AWS root account, from deleting the object before expiration.
Common pitfall
An excessively long Compliance retention period can keep object versions longer than intended and incur costs. Check the duration before applying it because it cannot be shortened during the protection period.
Often confused with
S3 Glacier Vault Lock, which locks entire Glacier vault policies rather than managing object-level retention dates.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- WORM storage compliance
- legal hold indefinite retention
- Governance vs Compliance mode
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.