Google Cloud storage challenge lab (Arcade)

Hi community! I’m trying to pass a challenge lab and I’m stuck with it for a few hours already. Gemini couldn’t solve it either. So, the task is:

Challenge scenario

You are managing a Cloud Storage bucket named BUCKET_NAME. This bucket serves multiple purposes within your organization and contains a mix of active project files, archived documents, and temporary logs. To optimize storage costs, you need to implement a lifecycle management policy that automatically aligns the storage classes of these files with their access patterns.

  • Design a lifecycle management policy with the following objectives:

    • Active Project Files: Files within the /projects/active/ folder modified within the last 30 days should reside in Standard storage for fast access.

    • Archives: Files within /archive/ modified within the last 90 days should be moved to Nearline storage. After 180 days, they should transition to Coldline storage.

    • Temporary Logs: Files within /processing/temp_logs/ should be automatically deleted after 7 days.

Now, what I tried to do:

  1. Anything in the /projects/active/folder of age 31: move to nearline

  2. That one is a complete puzzle. Default storageclass is Standard, so, age 91 - move to Nearline, age 181 - move to coldline.

  3. that one is easy, I think, age 7: delete.

But “Check my progress” button remains red. Any ideas how to get through this?

here’s a .json which I think should solve the case, but it doesn’t…:

{
“rule”: [
{
“action”: {
“type”: “SetStorageClass”,
“storageClass”: “NEARLINE”
},
“condition”: {
“age”: 31,
“keyPrefixMatch”: [
“projects/active/”
],
“matchesStorageClass”: [
“STANDARD”
]
}
},
{
“action”: {
“type”: “SetStorageClass”,
“storageClass”: “NEARLINE”
},
“condition”: {
“age”: 91,
“keyPrefixMatch”: [
“archive/”
],
“matchesStorageClass”: [
“STANDARD”
]
}
},
{
“action”: {
“type”: “SetStorageClass”,
“storageClass”: “COLDLINE”
},
“condition”: {
“age”: 181,
“keyPrefixMatch”: [
“archive/”
],
“matchesStorageClass”: [
“NEARLINE”
]
}
},
{
“action”: {
“type”: “Delete”
},
“condition”: {
“age”: 7,
“keyPrefixMatch”: [
“processing/temp_logs/”
]
}
}
]
}

The “Check my progress” likely stays red because your lifecycle rules aren’t precisely matching the lab’s folder paths and age requirements. For active project files, the rule should apply to objects under /projects/active/ younger than 30 days remain Standard—so only objects older than 30 days move to Nearline. For archives, objects under /archive/ should move to Nearline after 90 days and to Coldline after 180 days, and for temporary logs under /processing/temp_logs/, deletion occurs after 7 days. Make sure your lifecycle JSON or YAML uses the correct matchesPrefix for each folder, and the age values exactly match the lab instructions—small mismatches often prevent the progress checker from passing.