Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Developer practice bank has an additional 608 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
You manage a Cloud Storage bucket storing daily trading reports. The bucket has a 30-day unlocked retention policy and an Object Lifecycle Management rule that deletes noncurrent versions older than 90 days.
Your solution must meet these requirements:
Which configuration should you implement?
Bucket Lock allows you to permanently lock a bucket's retention policy. Once locked, the retention policy cannot be removed and its retention period cannot be reduced, ensuring that every object in the bucket remains immutable until it reaches the specified age.
resourcemanager.projects.delete until the lien is explicitly removed.You needed to comply with strict regulatory immutability rules—such as SEC, FINRA, or CFTC requirements—where every object in the bucket must be permanently guaranteed to be retained for a fixed minimum period.
While Object Versioning and Bucket Lock can work together, object holds exist specifically to freeze individual objects without altering bucket-wide retention rules.
Soft delete is a bucket-level data protection feature that retains deleted or overwritten objects in an offline state for a configured retention duration so they can be restored if deleted accidentally. Object Retention Lock lets you set a per-object retain-until timestamp and mode (Unlocked or Locked) to prevent deletion or replacement until that date passes.
roles/storage.admin).Locked mode permanently prevents the retention date from being shortened or removed. Because the duration of a legal investigation is unpredictable, locking a retain-until date either risks expiring too early or forces unnecessary storage retention long after the case closes.Locked mode: Once an object's retention mode is set to Locked, it cannot be downgraded to Unlocked, and the retain-until time can only be extended.The goal were to recover from accidental or malicious deletions using offline protection and enforce an immutable, known regulatory expiration date on specific compliance records rather than a flexible legal hold.
You can enable both Object Versioning and soft delete on the same bucket for defense in depth, but soft delete alone does not replace Object Versioning for directly readable historical access.
An event-based hold is an object-level metadata flag (eventBasedHold) used to delay the start of an object's retention countdown until a specific external event occurs. While the hold is active, the object cannot be deleted or replaced by users or Object Lifecycle Management.
The compliance requirement stated that objects must remain protected for 30 days after a business event occurs, such as retaining loan records for a fixed period after a loan is paid off, rather than releasing a litigation freeze without extending retention.
Although both temporary holds and event-based holds behave identically when no retention policy is present, their interaction with a bucket retention policy makes temporary holds the proper mechanism for legal holds.
Object Versioning is a Cloud Storage bucket feature that preserves previous states of objects as noncurrent versions whenever a live object is overwritten or deleted without specifying its generation number. A temporary hold is an object-level metadata flag (temporaryHold) designed to protect individual objects from deletion or replacement during regulatory audits, investigations, or litigation.
generation number.Delete actions until the hold is removed.generation numbers.Delete rules do not act on objects that have an active hold, even if age conditions are met.Combining Object Versioning with temporary holds separates ongoing historical tracking from ad-hoc legal preservation. Unlike event-based holds, temporary holds do not restart the retention clock upon release, and unlike locked retention policies, they can be lifted as soon as the legal investigation concludes.
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