0
0
AWScloud~20 mins

S3 lifecycle rules in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
S3 Lifecycle Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when an S3 lifecycle rule transitions objects to Glacier after 30 days?

You have an S3 bucket with a lifecycle rule that moves objects to Glacier storage class after 30 days. What is the expected behavior for objects older than 30 days?

AObjects older than 30 days are immediately deleted from S3 and only stored in Glacier.
BObjects older than 30 days are transitioned to Glacier storage class but remain accessible with a retrieval delay.
CObjects older than 30 days remain in S3 Standard storage and are not moved.
DObjects older than 30 days are copied to Glacier but also remain in S3 Standard storage.
Attempts:
2 left
💡 Hint

Think about how S3 lifecycle transitions work with Glacier storage class.

Configuration
intermediate
2:00remaining
Which lifecycle rule configuration deletes objects after 365 days?

Choose the correct JSON snippet for an S3 lifecycle rule that deletes objects 365 days after creation.

A{ "Rules": [{ "ID": "DeleteAfter365", "Status": "Enabled", "Expiration": { "Days": 365 } }] }
B{ "Rules": [{ "ID": "DeleteAfter365", "Status": "Enabled", "Transition": { "Days": 365, "StorageClass": "GLACIER" } }] }
C{ "Rules": [{ "ID": "DeleteAfter365", "Status": "Enabled", "AbortIncompleteMultipartUpload": { "DaysAfterInitiation": 365 } }] }
D{ "Rules": [{ "ID": "DeleteAfter365", "Status": "Enabled", "Expiration": { "Date": "365" } }] }
Attempts:
2 left
💡 Hint

Expiration rules use the 'Days' field to specify deletion timing.

security
advanced
2:00remaining
What is the security risk of enabling lifecycle rules that permanently delete objects without versioning?

You enable lifecycle rules that permanently delete objects after 30 days on a bucket without versioning. What is the main security risk?

ALifecycle rules automatically encrypt deleted objects, preventing data leaks.
BObjects can be recovered after deletion using versioning snapshots.
CObjects are archived to Glacier before deletion, so no data is lost.
DDeleted objects cannot be recovered, risking accidental data loss.
Attempts:
2 left
💡 Hint

Consider what happens when versioning is not enabled and objects are deleted.

Architecture
advanced
2:00remaining
How to design lifecycle rules for cost optimization with frequent access and archival?

You have a bucket with objects accessed frequently for 60 days, then rarely accessed for 180 days, then archived. Which lifecycle rule sequence optimizes cost?

ATransition to GLACIER after 60 days, then to STANDARD_IA after 180 days, then delete after 365 days.
BDelete after 60 days, transition to GLACIER after 180 days, then to STANDARD_IA after 365 days.
CTransition to STANDARD_IA after 60 days, then to GLACIER after 180 days, then delete after 365 days.
DKeep all objects in STANDARD storage for 365 days, then delete.
Attempts:
2 left
💡 Hint

Think about storage classes for frequent and infrequent access and cost savings.

Best Practice
expert
2:00remaining
What is the best practice to prevent accidental deletion with lifecycle rules on a versioned bucket?

You have enabled versioning on an S3 bucket and lifecycle rules that delete objects after 30 days. What is the best practice to avoid accidental permanent deletion?

AConfigure lifecycle rules to delete only non-current versions after 30 days and keep current versions.
BDisable versioning to simplify lifecycle rule management.
CSet lifecycle rules to delete all versions immediately after 30 days.
DUse lifecycle rules to transition all versions to GLACIER instead of deleting.
Attempts:
2 left
💡 Hint

Consider how versioning interacts with lifecycle expiration of current and non-current versions.