- A
Enable Cloud Armor on all Cloud Storage buckets to block public internet access
Why wrong: Cloud Armor is a WAF/DDoS protection service for applications behind load balancers. It doesn't apply to Cloud Storage buckets or control IAM policies that grant public access.
- B
Apply the 'storage.publicAccessPrevention' organization policy constraint, which prevents allUsers and allAuthenticatedUsers from being granted in Cloud Storage IAM policies organization-wide
Public Access Prevention is the correct control. Applied as an org policy, it makes it impossible to grant allUsers or allAuthenticatedUsers access to any bucket in the organization. Attempts to set such policies are rejected by the API. This is the definitive preventive control for accidental public bucket exposure.
- C
Enable VPC Service Controls around Cloud Storage to prevent public internet access
Why wrong: VPC Service Controls restrict access from outside the defined perimeter but don't specifically address allUsers IAM bindings. They are primarily for preventing data exfiltration to other GCP projects, not for managing public internet accessibility of specific resources.
- D
Configure Cloud Monitoring to alert the security team when a bucket is made public so they can revert it
Why wrong: Monitoring alerts are a detective control — they notify after the fact. The question asks for prevention of future incidents. Public Access Prevention is a preventive control that blocks the action before it succeeds.
Quick Answer
The answer is to apply the ‘storage.publicAccessPrevention’ organization policy constraint. This Google Cloud IAM constraint, when enforced at the organization, folder, or project level, acts as a preventive control that blocks any IAM policy binding granting access to ‘allUsers’ or ‘allAuthenticatedUsers’ on Cloud Storage buckets, directly stopping public access from being granted before it can occur. On the Google Cloud Digital Leader exam, this tests your understanding of organization policies as preventive security controls versus detective controls like bucket audit logs—a common trap is confusing this with simply removing public access after the fact. The key distinction is that this constraint prevents the action entirely, rather than reacting to it. Memory tip: think of it as a “public access lock” that says “no” before anyone can say “yes” to the internet.
Cloud Digital Leader Trust and security with Google Cloud Practice Question
This GCDL practice question tests your understanding of trust and security with google cloud. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company's application stores sensitive customer information in Cloud Storage. A security audit finds that one bucket has 'allUsers' access granted (making it publicly accessible on the internet). The security team wants to prevent this from happening in the future. Which control prevents public access from being granted to Cloud Storage buckets?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Apply the 'storage.publicAccessPrevention' organization policy constraint, which prevents allUsers and allAuthenticatedUsers from being granted in Cloud Storage IAM policies organization-wide
Option B is correct because the 'storage.publicAccessPrevention' organization policy constraint is a Google Cloud IAM constraint that, when enforced at the organization, folder, or project level, prevents any IAM policy binding that grants access to 'allUsers' or 'allAuthenticatedUsers' on Cloud Storage buckets. This is a preventive control that blocks the action before it can occur, directly addressing the security team's requirement to prevent public access from being granted in the future.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable Cloud Armor on all Cloud Storage buckets to block public internet access
Why it's wrong here
Cloud Armor is a WAF/DDoS protection service for applications behind load balancers. It doesn't apply to Cloud Storage buckets or control IAM policies that grant public access.
- ✓
Apply the 'storage.publicAccessPrevention' organization policy constraint, which prevents allUsers and allAuthenticatedUsers from being granted in Cloud Storage IAM policies organization-wide
Why this is correct
Public Access Prevention is the correct control. Applied as an org policy, it makes it impossible to grant allUsers or allAuthenticatedUsers access to any bucket in the organization. Attempts to set such policies are rejected by the API. This is the definitive preventive control for accidental public bucket exposure.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Enable VPC Service Controls around Cloud Storage to prevent public internet access
Why it's wrong here
VPC Service Controls restrict access from outside the defined perimeter but don't specifically address allUsers IAM bindings. They are primarily for preventing data exfiltration to other GCP projects, not for managing public internet accessibility of specific resources.
- ✗
Configure Cloud Monitoring to alert the security team when a bucket is made public so they can revert it
Why it's wrong here
Monitoring alerts are a detective control — they notify after the fact. The question asks for prevention of future incidents. Public Access Prevention is a preventive control that blocks the action before it succeeds.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the distinction between preventive, detective, and corrective controls, and the trap here is that candidates confuse VPC Service Controls (which restrict network-level access) with IAM policy controls (which govern identity-based access), leading them to choose option C instead of the correct preventive IAM constraint.
Detailed technical explanation
How to think about this question
The 'storage.publicAccessPrevention' constraint is part of Google Cloud's Organization Policy Service and uses a boolean constraint (boolean constraint) that, when set to True, enforces that any IAM policy binding containing 'allUsers' or 'allAuthenticatedUsers' is rejected at the API level. This constraint is evaluated at the time of the IAM policy update request, returning a 403 error if violated, and it can be combined with audit logs to provide a complete defense-in-depth strategy. A subtle behavior is that this constraint does not retroactively remove existing public access; it only prevents new grants, so existing public buckets must be manually remediated.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Trust and security with Google Cloud — study guide chapter
Learn the concepts, then practise the questions
- →
Trust and security with Google Cloud practice questions
Targeted practice on this topic area only
- →
All GCDL questions
507 questions across all exam domains
- →
Google Cloud Digital Leader study guide
Full concept coverage aligned to exam objectives
- →
GCDL practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related GCDL practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Why cloud technology is transforming business practice questions
Practise GCDL questions linked to Why cloud technology is transforming business.
Fundamental cloud concepts practice questions
Practise GCDL questions linked to Fundamental cloud concepts.
Google Cloud products, services, and solutions practice questions
Practise GCDL questions linked to Google Cloud products, services, and solutions.
Scaling with Google Cloud operations practice questions
Practise GCDL questions linked to Scaling with Google Cloud operations.
Trust and security with Google Cloud practice questions
Practise GCDL questions linked to Trust and security with Google Cloud.
GCDL fundamentals practice questions
Practise GCDL questions linked to GCDL fundamentals.
GCDL scenario practice questions
Practise GCDL questions linked to GCDL scenario.
GCDL troubleshooting practice questions
Practise GCDL questions linked to GCDL troubleshooting.
Practice this exam
Start a free GCDL practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this GCDL question test?
Trust and security with Google Cloud — This question tests Trust and security with Google Cloud — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Apply the 'storage.publicAccessPrevention' organization policy constraint, which prevents allUsers and allAuthenticatedUsers from being granted in Cloud Storage IAM policies organization-wide — Option B is correct because the 'storage.publicAccessPrevention' organization policy constraint is a Google Cloud IAM constraint that, when enforced at the organization, folder, or project level, prevents any IAM policy binding that grants access to 'allUsers' or 'allAuthenticatedUsers' on Cloud Storage buckets. This is a preventive control that blocks the action before it can occur, directly addressing the security team's requirement to prevent public access from being granted in the future.
What should I do if I get this GCDL question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.