- A
Create a custom Organization Policy constraint that checks if Cloud Logging is enabled.
Why wrong: Cloud Logging is enabled by default and cannot be enforced via custom constraints.
- B
Disable the ability to turn off Cloud Logging by using the Organization Policy 'compute.disableCloudLogging'.
Why wrong: There is no such Organization Policy constraint.
- C
Use the Organization Policy 'constraints/gcp.resourceAuditLogging' to enforce audit logs.
This policy ensures audit logs are enabled, which is part of Cloud Logging.
- D
Set a project-level default for Cloud Logging using Organization Policies.
Why wrong: Organization Policies do not set project-level defaults; they enforce constraints.
Quick Answer
The answer is to use the Organization Policy constraint `constraints/gcp.resourceAuditLogging` to enforce audit logs across all projects. This policy works by mandating that Cloud Logging, which encompasses audit logs for admin activity, data access, and system events, remains enabled at the organization level, overriding any project-level settings that might attempt to disable it. On the Google Professional Cloud DevOps Engineer exam, this question tests your understanding of how Organization Policies enforce governance at scale, often contrasting custom constraints for labels with built-in constraints for logging. A common trap is confusing project-level logging settings with organization-wide enforcement; the key is that `gcp.resourceAuditLogging` is a pre-built, immutable policy that cannot be bypassed by individual project owners. For the exam, remember: labels are custom, logging is built-in—think of it as "audit logs are the backbone, enforced by a single constraint."
PCDOE Practice Question: Bootstrapping a Google Cloud organization for DevOps
This PCDOE practice question tests your understanding of bootstrapping a google cloud organization for devops. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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 DevOps team is setting up a new Google Cloud organization. They want to enforce that all projects have a specific set of labels, and that Cloud Logging is enabled. They have written a custom Organization Policy constraint to enforce the labels. However, they are unsure how to enforce Cloud Logging. Which of the following approaches should they use?
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
Use the Organization Policy 'constraints/gcp.resourceAuditLogging' to enforce audit logs.
Option C is correct because the Organization Policy constraint `constraints/gcp.resourceAuditLogging` enforces that audit logs (which include Cloud Logging) are enabled for all projects in the organization. This policy ensures that logging cannot be disabled at the project level, meeting the requirement to enforce Cloud Logging across the organization.
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.
- ✗
Create a custom Organization Policy constraint that checks if Cloud Logging is enabled.
Why it's wrong here
Cloud Logging is enabled by default and cannot be enforced via custom constraints.
- ✗
Disable the ability to turn off Cloud Logging by using the Organization Policy 'compute.disableCloudLogging'.
Why it's wrong here
There is no such Organization Policy constraint.
- ✓
Use the Organization Policy 'constraints/gcp.resourceAuditLogging' to enforce audit logs.
Why this is correct
This policy ensures audit logs are enabled, which is part of Cloud Logging.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Set a project-level default for Cloud Logging using Organization Policies.
Why it's wrong here
Organization Policies do not set project-level defaults; they enforce constraints.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may confuse custom Organization Policy constraints with built-in constraints, or mistakenly think that Cloud Logging can be enforced via a custom constraint or a project-level default, when in fact the built-in `constraints/gcp.resourceAuditLogging` is the correct mechanism.
Detailed technical explanation
How to think about this question
The `constraints/gcp.resourceAuditLogging` Organization Policy constraint is a boolean constraint that, when set to `true`, requires all projects in the organization to have audit logging enabled. This includes both admin activity and data access logs, which are part of Cloud Logging. Under the hood, this policy is enforced at the resource hierarchy level, and any attempt to disable logging in a project will be denied by the policy engine. In a real-world scenario, this is critical for compliance with regulations like SOC 2 or PCI DSS, where continuous logging is mandatory.
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
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
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.
- →
Bootstrapping a Google Cloud organization for DevOps — study guide chapter
Learn the concepts, then practise the questions
- →
Bootstrapping a Google Cloud organization for DevOps practice questions
Targeted practice on this topic area only
- →
All PCDOE questions
500 questions across all exam domains
- →
Google Professional Cloud DevOps Engineer study guide
Full concept coverage aligned to exam objectives
- →
PCDOE practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCDOE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Bootstrapping a Google Cloud organization for DevOps practice questions
Practise PCDOE questions linked to Bootstrapping a Google Cloud organization for DevOps.
Managing service incidents practice questions
Practise PCDOE questions linked to Managing service incidents.
Managing Google Cloud costs practice questions
Practise PCDOE questions linked to Managing Google Cloud costs.
Building and implementing CI/CD pipelines practice questions
Practise PCDOE questions linked to Building and implementing CI/CD pipelines.
Implementing service monitoring strategies practice questions
Practise PCDOE questions linked to Implementing service monitoring strategies.
Optimizing service performance practice questions
Practise PCDOE questions linked to Optimizing service performance.
PCDOE fundamentals practice questions
Practise PCDOE questions linked to PCDOE fundamentals.
PCDOE scenario practice questions
Practise PCDOE questions linked to PCDOE scenario.
PCDOE troubleshooting practice questions
Practise PCDOE questions linked to PCDOE troubleshooting.
Practice this exam
Start a free PCDOE 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 PCDOE question test?
Bootstrapping a Google Cloud organization for DevOps — This question tests Bootstrapping a Google Cloud organization for DevOps — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use the Organization Policy 'constraints/gcp.resourceAuditLogging' to enforce audit logs. — Option C is correct because the Organization Policy constraint `constraints/gcp.resourceAuditLogging` enforces that audit logs (which include Cloud Logging) are enabled for all projects in the organization. This policy ensures that logging cannot be disabled at the project level, meeting the requirement to enforce Cloud Logging across the organization.
What should I do if I get this PCDOE 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 11, 2026
This PCDOE 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 PCDOE 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.