0
0
AWScloud~20 mins

S3 versioning in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
S3 Versioning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when you delete an object in a versioned S3 bucket?

You have enabled versioning on an S3 bucket. You delete an object named photo.jpg. What is the state of the object after deletion?

AA delete marker is added, hiding the latest version but previous versions remain accessible.
BThe object is archived to Glacier automatically.
CThe object is copied to a backup bucket before deletion.
DThe object is permanently removed and cannot be recovered.
Attempts:
2 left
💡 Hint

Think about how versioning protects data from permanent deletion.

Architecture
intermediate
2:00remaining
How to configure S3 versioning for data protection in a multi-region setup?

You want to protect your data in an S3 bucket with versioning and replicate all versions to another region. Which AWS feature must you enable alongside versioning?

AEnable S3 Transfer Acceleration to speed up replication.
BUse Lifecycle policies to move versions to Glacier.
CEnable Cross-Region Replication (CRR) with versioning enabled on both buckets.
DEnable S3 Event Notifications to trigger Lambda for copying objects.
Attempts:
2 left
💡 Hint

Replication of versions requires a specific S3 feature that works with versioning.

security
advanced
2:00remaining
What is the effect of disabling versioning on an existing versioned S3 bucket?

You have a versioned S3 bucket with many object versions. You disable versioning on this bucket. What happens to the existing versions and new uploads?

AAll existing versions are deleted immediately, and new uploads create versions.
BExisting versions remain, but new uploads overwrite objects without creating versions.
CVersioning is paused; new uploads create delete markers instead of versions.
DExisting versions are archived, and new uploads are rejected until versioning is re-enabled.
Attempts:
2 left
💡 Hint

Consider what disabling versioning means for existing data and future uploads.

Best Practice
advanced
2:00remaining
How to minimize storage costs while using S3 versioning for critical data?

You use S3 versioning to protect critical data but want to reduce storage costs over time. Which approach is best?

AApply Lifecycle rules to transition non-current versions to cheaper storage classes like Glacier.
BManually delete old versions every month to save space.
CDisable versioning and rely on backups instead.
DUse S3 Transfer Acceleration to reduce storage costs.
Attempts:
2 left
💡 Hint

Think about automated ways to manage old versions cost-effectively.

🧠 Conceptual
expert
2:00remaining
What is the total number of object versions after these operations in a versioned S3 bucket?

In a versioned S3 bucket, you perform these steps on an object named report.pdf:

  1. Upload report.pdf (version 1)
  2. Upload a new report.pdf (version 2)
  3. Delete report.pdf
  4. Upload report.pdf again (version 3)

How many versions (including delete markers) exist for report.pdf now?

A2 versions
B3 versions
C5 versions
D4 versions
Attempts:
2 left
💡 Hint

Remember that deleting adds a delete marker version.