Complete the code to specify the bucket name in the lifecycle configuration.
{
"Bucket": "[1]",
"LifecycleConfiguration": {
"Rules": []
}
}The Bucket field must contain the exact name of your S3 bucket where the lifecycle rules apply.
Complete the code to set the lifecycle rule status to enable it.
{
"Rules": [
{
"ID": "ArchiveOldFiles",
"Status": "[1]",
"Filter": {},
"Transitions": []
}
]
}The Status field must be set to Enabled to activate the lifecycle rule.
Fix the error in the transition action by completing the code with the correct storage class.
{
"Transitions": [
{
"Days": 30,
"StorageClass": "[1]"
}
]
}The correct storage class for archiving to Glacier is GLACIER. Other options are invalid or do not exist.
Fill both blanks to define a lifecycle rule that deletes objects after 365 days and applies to all objects.
{
"Rules": [
{
"ID": "DeleteOldObjects",
"Status": "[1]",
"Expiration": {
"Days": [2]
},
"Filter": {}
}
]
}The rule must be Enabled to work and the expiration days set to 365 to delete objects after one year.
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.
{
"Rules": [
{
"ID": "TransitionStorageClasses",
"Status": "[1]",
"Transitions": [
{"Days": [2], "StorageClass": "STANDARD_IA"},
{"Days": [3], "StorageClass": "GLACIER"}
],
"Filter": {}
}
]
}The lifecycle rule must be Enabled. The first transition happens after 60 days to STANDARD_IA, and the second after 180 days to GLACIER.