GCP Professional Cloud Security Engineer Practice Question
Your security team stores daily customer data dumps in a versioning-enabled Cloud Storage bucket. Compliance requires that live objects be automatically removed 60 days after their creation, and any noncurrent (archived) object versions be erased 7 days after they become noncurrent. You need to configure the bucket's lifecycle policy with the minimum number of rules. Which configuration satisfies both requirements?
Rule 1: Delete when Age = 60 and IsLive = true. Rule 2: Delete when Age = 7 and IsLive = false.
Single rule: Delete when Age = 60 and NumberOfNewerVersions ≥ 1 (covers both live and noncurrent objects).
Rule 1: Delete when Age = 60 (no IsLive condition). Rule 2: Delete when NumberOfNewerVersions ≥ 1 and Age = 7.
Rule 1: SetStorageClass to Nearline when Age = 60. Rule 2: Delete when Age = 7 and MatchesStorageClass = Nearline.
To meet the 60-day deletion requirement for current objects you need a rule that targets live objects only. Setting the condition Age = 60 together with IsLive = true accomplishes this. A second, separate rule must target noncurrent versions; specifying Age = 7 and IsLive = false deletes each archived version seven days after it becomes noncurrent. Google's lifecycle syntax allows these two independent rules, and no additional conditions (such as NumberOfNewerVersions or storage-class matches) are required for the stated policy, so this two-rule set is both correct and minimal. Other options either omit the IsLive filter (which would also delete archived versions at 60 days), rely on NumberOfNewerVersions (which does not guarantee age-based deletion), or use storage-class transitions that do not satisfy the compliance directive.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Cloud Storage bucket versioning?
Open an interactive chat with Bash
What does the IsLive condition mean in lifecycle rules?
Open an interactive chat with Bash
How does the Age condition work in Cloud Storage lifecycle policies?
Open an interactive chat with Bash
What is Cloud Storage versioning?
Open an interactive chat with Bash
How do lifecycle rules in Cloud Storage work?
Open an interactive chat with Bash
What is the difference between IsLive and NumberOfNewerVersions in lifecycle rules?
Open an interactive chat with Bash
GCP Professional Cloud Security Engineer
Ensuring data protection
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .