Bird
0
0

What happens to an object in an S3 bucket when versioning is enabled and you upload a new file with the same name?

easy📝 Conceptual Q1 of 15
AWS - S3 Fundamentals
What happens to an object in an S3 bucket when versioning is enabled and you upload a new file with the same name?
AThe bucket automatically creates a backup in another region.
BThe old object is deleted and replaced by the new one.
CThe upload is rejected to prevent overwriting.
DA new version of the object is created and the old version is preserved.
Step-by-Step Solution
Solution:
  1. Step 1: Understand S3 versioning behavior

    When versioning is enabled, each upload with the same object key creates a new version instead of overwriting.
  2. Step 2: Effect on existing objects

    The old version remains stored and accessible, allowing recovery if needed.
  3. Final Answer:

    A new version of the object is created and the old version is preserved. -> Option D
  4. Quick Check:

    S3 versioning = preserves old versions [OK]
Quick Trick: Versioning keeps old files, never overwrites [OK]
Common Mistakes:
MISTAKES
  • Thinking versioning deletes old files
  • Assuming uploads are rejected
  • Believing backups happen automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes