0
0
AWScloud~10 mins

S3 storage class optimization in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the S3 storage class for an object upload.

AWS
aws s3 cp file.txt s3://mybucket/ --storage-class [1]
Drag options to blanks, or click blank then click option'
AGLACIER
BSTANDARD
CREDUCED_REDUNDANCY
DONEZONE_IA
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing GLACIER which is for archival and not suitable for frequent access.
Using REDUCED_REDUNDANCY which is deprecated.
Selecting ONEZONE_IA which stores data in a single zone and is less durable.
2fill in blank
medium

Complete the code to set lifecycle rule to transition objects to Glacier after 30 days.

AWS
"Transitions": [{"Days": [1], "StorageClass": "GLACIER"}]
Drag options to blanks, or click blank then click option'
A15
B60
C30
D90
Attempts:
3 left
💡 Hint
Common Mistakes
Using 15 days which is too soon for most use cases.
Choosing 60 or 90 days which delays the transition unnecessarily.
3fill in blank
hard

Fix the error in the lifecycle policy JSON to correctly specify the expiration in days.

AWS
"Expiration": {"Days": [1]
Drag options to blanks, or click blank then click option'
A"30"
Bnull
Cthirty
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string value with quotes which causes JSON parsing errors.
Using a word instead of a number.
Setting null which disables expiration.
4fill in blank
hard

Fill both blanks to create a lifecycle rule that transitions to STANDARD_IA after 60 days and expires after 365 days.

AWS
"Transitions": [{"Days": [1], "StorageClass": "STANDARD_IA"}], "Expiration": {"Days": [2]
Drag options to blanks, or click blank then click option'
A60
B365
C180
D90
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up transition and expiration days.
Using too short or too long durations.
5fill in blank
hard

Fill all three blanks to define a lifecycle rule that transitions to ONEZONE_IA after 30 days, then to GLACIER after 90 days, and expires after 365 days.

AWS
"Transitions": [{"Days": [1], "StorageClass": "ONEZONE_IA"}, {"Days": [2], "StorageClass": "GLACIER"}], "Expiration": {"Days": [3]
Drag options to blanks, or click blank then click option'
A30
B90
C365
D180
Attempts:
3 left
💡 Hint
Common Mistakes
Reversing the order of transitions.
Using incorrect days causing invalid lifecycle behavior.
Setting expiration before transitions.