Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise stores millions of compliance audit logs and supporting evidence artifacts in a Cloud Storage bucket initialized with the Standard storage class. The data architecture team establishes the following data retention and cost optimization requirements:
SetStorageClass would exceed any monthly storage cost savings.Which Object Lifecycle Management configuration should the security engineer deploy on the bucket?
Configure a lifecycle rule with a SetStorageClass action targeting COLDLINE, specifying conditions for daysSinceNoncurrentTime of 365 days and matchesStorageClass set to STANDARD.
Configure a lifecycle rule with a SetStorageClass action targeting COLDLINE, specifying conditions for age of 365 days, matchesStorageClass set to STANDARD, and sizeBelowBytes set to 5242880.
Configure a lifecycle rule with a Delete action conditioned on an age of 365 days and matchesStorageClass set to STANDARD, paired with an automated Cloud Function to rewrite surviving objects into Coldline.
Configure a lifecycle rule with a SetStorageClass action targeting COLDLINE, specifying conditions for age of 365 days, matchesStorageClass set to STANDARD, and sizeAboveBytes set to 5242880.
Configure a lifecycle rule with a SetStorageClass action targeting COLDLINE, specifying conditions for daysSinceNoncurrentTime of 365 days and matchesStorageClass set to STANDARD.
Configure a lifecycle rule with a SetStorageClass action targeting COLDLINE, specifying conditions for age of 365 days, matchesStorageClass set to STANDARD, and sizeBelowBytes set to 5242880.
Configure a lifecycle rule with a Delete action conditioned on an age of 365 days and matchesStorageClass set to STANDARD, paired with an automated Cloud Function to rewrite surviving objects into Coldline.
Configure a lifecycle rule with a SetStorageClass action targeting COLDLINE, specifying conditions for age of 365 days, matchesStorageClass set to STANDARD, and sizeAboveBytes set to 5242880.
Object Lifecycle Management (OLM) in Google Cloud Storage automates object transition and deletion policies. The SetStorageClass lifecycle action alters the storage tier of an object asynchronously without rewriting data bytes or triggering data movement pipelines.
age condition to 365 and matchesStorageClass to STANDARD ensures that only active objects that have resided in Standard storage for a full year transition to the COLDLINE tier.sizeAboveBytes: 5242880 (5 MiB) filters out small index files and thumbnails. Because executing SetStorageClass is billed as a Class A operation against the destination class, small objects can incur transition API charges that dwarf ongoing capacity savings.SetStorageClass do not rewrite the underlying object data. Consequently, they incur zero retrieval fees and zero inter-region network charges.age, matchesStorageClass, and sizeAboveBytes within a single rule condition block.This declarative lifecycle approach eliminates manual batch scripts, avoids unneeded operation expenses on small files, and safeguards against unexpected egress and retrieval billing.