0
0
AWScloud~10 mins

S3 lifecycle rules 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 bucket name in the lifecycle configuration.

AWS
{
  "Bucket": "[1]",
  "LifecycleConfiguration": {
    "Rules": []
  }
}
Drag options to blanks, or click blank then click option'
Atemp-storage
Blifecycle-config
Carchive-bucket
Dmy-example-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using a lifecycle rule name instead of the bucket name.
Leaving the bucket name empty.
2fill in blank
medium

Complete the code to set the lifecycle rule status to enable it.

AWS
{
  "Rules": [
    {
      "ID": "ArchiveOldFiles",
      "Status": "[1]",
      "Filter": {},
      "Transitions": []
    }
  ]
}
Drag options to blanks, or click blank then click option'
AEnabled
BOn
CDisabled
DActive
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Active' or 'On' which are not valid status values.
Setting status to 'Disabled' disables the rule.
3fill in blank
hard

Fix the error in the transition action by completing the code with the correct storage class.

AWS
{
  "Transitions": [
    {
      "Days": 30,
      "StorageClass": "[1]"
    }
  ]
}
Drag options to blanks, or click blank then click option'
ASTANDARD_IA
BGLACIER_IR
CGLACIER
DCOLD_STORAGE
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-existent storage classes like 'COLD_STORAGE'.
Confusing 'STANDARD_IA' (infrequent access) with Glacier.
4fill in blank
hard

Fill both blanks to define a lifecycle rule that deletes objects after 365 days and applies to all objects.

AWS
{
  "Rules": [
    {
      "ID": "DeleteOldObjects",
      "Status": "[1]",
      "Expiration": {
        "Days": [2]
      },
      "Filter": {}
    }
  ]
}
Drag options to blanks, or click blank then click option'
AEnabled
BDisabled
C365
D180
Attempts:
3 left
💡 Hint
Common Mistakes
Setting status to 'Disabled' disables the rule.
Using wrong number of days for expiration.
5fill in blank
hard

Fill all three blanks to create a lifecycle rule that transitions objects to STANDARD_IA after 60 days, then to GLACIER after 180 days, and is enabled.

AWS
{
  "Rules": [
    {
      "ID": "TransitionStorageClasses",
      "Status": "[1]",
      "Transitions": [
        {"Days": [2], "StorageClass": "STANDARD_IA"},
        {"Days": [3], "StorageClass": "GLACIER"}
      ],
      "Filter": {}
    }
  ]
}
Drag options to blanks, or click blank then click option'
AEnabled
B60
C180
DDisabled
Attempts:
3 left
💡 Hint
Common Mistakes
Setting status to 'Disabled' disables the rule.
Mixing up the days for transitions.