GCP Professional Cloud Security Engineer Practice Question
Your company stores audit logs in a Cloud Storage bucket with object versioning. Security policy requires that any noncurrent object version be permanently deleted as soon as three newer versions exist, regardless of age. You must add one lifecycle rule to target only those versions and leave the current (live) version intact. Which lifecycle rule condition do you configure?
Cloud Storage lifecycle conditions act as filters that determine which objects a rule's action applies to. The requirement is version-count based: delete a noncurrent version once there are three newer ones. The only condition that evaluates relative version count is NumberOfNewerVersions. Setting it to 3 makes the rule target any archived (non-live) object that has at least three more recent versions, while excluding the current version.
Other conditions do not work:
Age triggers on days since creation, not version count.
IsLive distinguishes live versus non-live but cannot count newer versions.
MatchesStorageClass filters by storage class only.
Therefore, NumberOfNewerVersions set to 3 is the correct choice.
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 object versioning in Cloud Storage?
Open an interactive chat with Bash
How does the NumberOfNewerVersions lifecycle rule work?
Open an interactive chat with Bash
Why can’t conditions like Age or IsLive be used for this rule?
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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .