S3 Versioning keeps every version of an object, so an overwrite or delete never truly loses data — you can recover any prior version. It’s the foundation for protecting against accidental changes.
What to know
Once enabled, a “delete” just adds a delete marker; the old versions remain and are recoverable. Versioning pairs with lifecycle rules (to expire old versions and control cost) and with MFA Delete (to require MFA before permanent deletion). Accidental-overwrite protection → Versioning.
Versioning, deletion, and lifecycle rules
Versioning helps recover from accidental overwrites and ordinary deletes, but it is not a complete backup or access-control strategy. A delete marker makes the current version appear deleted while earlier versions remain available to an authorized user. Permanently deleting a specific version requires identifying that version; lifecycle rules can expire noncurrent versions to manage storage cost.
- Accidental overwrite: restore an earlier object version.
- Ordinary delete in a versioned bucket: a delete marker is added.
- Cost control: configure lifecycle rules for noncurrent versions when appropriate.
- Cross-Region Replication: replication requires versioning on the relevant source and destination buckets.
Exam trap: versioning does not prevent an authorized principal from deleting versions, and it does not replace IAM permissions, encryption, or a deliberate backup and recovery design.
Test yourself
A team keeps accidentally overwriting important files in S3 and wants to be able to recover any previous version. What should they enable?
- S3 Transfer Acceleration
- S3 Versioning
- S3 Intelligent-Tiering
- Cross-Region Replication
👉 Click to reveal the answer & explanation
Correct answer: B. Versioning retains every version of an object so prior versions can be restored after an overwrite or delete. Transfer Acceleration (A) speeds uploads; Intelligent-Tiering (C) optimizes cost; replication (D) copies to another Region but isn’t version history within a bucket.
Related topics
Amazon S3 · S3 Object Lock · S3 lifecycle & replication
Ready to pass your AWS exam?
Stop guessing whether you’re ready. Our full-length, exam-realistic practice exams put you through the exact question style you’ll face — with a detailed explanation behind every answer, so you learn why, not just what.
- ✓ 6 full-length practice exams
- ✓ A detailed explanation for every single question
- ✓ Realistic, scenario-based questions — not memory dumps
- ✓ 6 months of access to your selected certification pack
See the Practice Exam Packs → or try 25 free SAA-C03 questions first