Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The Professional Data Engineer practice bank has 1,353 more like it. Try 10 free: instant score, no account.
A financial services organization ingests millions of analytical audit files daily into a Google Cloud Storage Standard bucket. Strict compliance regulations mandate that audit files must be retained immutably for exactly 7 years (2,555 days), preventing any user—including bucket and project administrators—from deleting or modifying them before the retention period expires.
To optimize storage costs, the team identified the following operational requirements:
Which combination of Cloud Storage configurations satisfies all compliance and cost-optimization requirements?
This configuration pairs Cloud Storage Bucket Lock with Object Lifecycle Management (OLM) to enforce regulatory compliance (WORM - Write Once, Read Many) while automating storage class transitions and end-of-life object deletion.
SetStorageClass to COLDLINE executes once an object reaches age: 30 in the STANDARD storage class. Adding sizeAboveBytes: 10485760 (10 MiB) ensures that smaller objects are not transitioned, preventing Class A operation charges from outweighing the cost savings of the Coldline class.Delete action and age: 2555 automatically purges objects once their retention requirement is satisfied, without requiring manual administrative intervention.SetStorageClass do not rewrite data, so object age continues accumulating uninterrupted towards the retention and deletion threshold.This architecture directly satisfies compliance and financial constraints by leveraging native, fully managed storage governance controls without custom automation scripts or external scheduling services.
This option attempts to enforce immutability by setting individual Object Holds on ingested objects and relies on an organization policy constraint to govern bucket deletion.
constraints/storage.retentionPolicySeconds) enforce boundaries on bucket configurations; they do not automatically execute data deletions or lifecycle purges on stored objects.sizeAboveBytes condition, leading to transition charges on small objects that negate storage savings.Delete actions cannot delete objects that are protected by an active Object Hold.The data were subject to open-ended litigation or regulatory holds where the exact retention period cannot be predetermined.
This design uses an unlocked retention policy alongside an inverted lifecycle size filter (sizeBelowBytes) and an external serverless scheduler (Cloud Run) to manage object deletion.
sizeBelowBytes: 10485760 transitions objects that are smaller than 10 MiB rather than larger. This directly inflates costs by applying Class A transition fees to the smallest files.Delete actions already execute automatically.sizeBelowBytes sets an upper size bound on the matched objects instead of a lower bound.The organization needed a non-binding data governance policy during early development testing where policies must remain adjustable.
This option relies on Object Versioning to maintain historical versions of objects and uses lifecycle rules based on daysSinceNoncurrentTime to manage noncurrent object versions.
storage.objects.delete). It does not provide the immutable, WORM-compliant retention guarantee enforced by a locked retention policy.SetStorageClass lifecycle rule does not specify the sizeAboveBytes condition. As a result, small files will incur destination storage class Class A transition fees that exceed their storage cost savings.daysSinceNoncurrentTime only applies after an object has already been overwritten or marked live-deleted, meaning active (live) objects will never be deleted at the 7-year mark unless another process overwrites them first.The objective was to protect against accidental administrative overwrites during data manipulation workflows rather than enforcing strict regulatory retention compliance.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated