Question 110 of 500
Supporting compliance requirementshardMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to use Forseti Config Validator with a deny policy that blocks creation of resources without required labels. This works because Forseti Config Validator operates as a policy-as-code engine that can intercept resource creation requests at deployment time, using constraints written in YAML or Rego to enforce label requirements before the resource is provisioned. On the Google Professional Cloud Security Engineer exam, this scenario tests your understanding of the difference between preventive and detective controls—many candidates mistakenly choose a post-deployment audit or remediation option, but the question specifically asks for automatic enforcement, which requires a deny policy. A common trap is confusing Forseti’s Inventory or Scanner (which detect violations after the fact) with Config Validator’s ability to block non-compliant deployments in real time. Memory tip: think “Deny at Deploy” to remember that Config Validator stops bad resources before they exist.

PCSE Supporting compliance requirements Practice Question

This PCSE practice question tests your understanding of supporting compliance requirements. 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 uses Forseti Security to monitor their GCP environment for compliance violations. They want to automatically enforce policies that prevent the deployment of resources without required labels. What should they do?

Question 1hardmultiple choice
Full question →

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 Forseti Config Validator with a deny policy that blocks creation of resources without required labels

Forseti Config Validator can enforce policies at deployment time by using a deny policy that blocks resource creation if required labels are missing. This is the correct approach because it prevents non-compliant resources from being created in the first place, rather than detecting and remediating them after the fact.

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.

  • Use Forseti Config Validator with a deny policy that blocks creation of resources without required labels

    Why this is correct

    Config Validator can enforce policies using constraints that deny resource creation if labels are missing, using Organization Policy constraints or Forseti's own enforcement.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Configure Forseti Inventory to scan and report resources missing labels, then manually delete them

    Why it's wrong here

    Manual remediation is not automated enforcement, and deletion after creation may violate compliance requirements if resources are already deployed.

  • Enable VPC Service Controls to restrict projects without labels from accessing resources

    Why it's wrong here

    VPC SC restricts data access, not resource creation based on labels.

  • Use Cloud Asset Inventory to trigger Cloud Functions that delete resources missing labels

    Why it's wrong here

    This approach deletes after creation, but does not prevent initial creation; may cause instability and is not enforcement.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing reactive detection and remediation (Inventory, Cloud Asset Inventory, Cloud Functions) with proactive enforcement (Config Validator), leading candidates to choose options that only report or clean up violations instead of preventing them.

Detailed technical explanation

How to think about this question

Forseti Config Validator uses Open Policy Agent (OPA) to evaluate policies written in Rego against resource configurations before they are created. The deny policy returns a violation if required labels are absent, causing the deployment to fail. This is a preventive control that integrates with GCP's deployment pipeline, ensuring compliance at the point of creation rather than relying on post-deployment cleanup.

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 company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

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.

Related practice questions

Related PCSE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCSE 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 PCSE question test?

Supporting compliance requirements — This question tests Supporting compliance requirements — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use Forseti Config Validator with a deny policy that blocks creation of resources without required labels — Forseti Config Validator can enforce policies at deployment time by using a deny policy that blocks resource creation if required labels are missing. This is the correct approach because it prevents non-compliant resources from being created in the first place, rather than detecting and remediating them after the fact.

What should I do if I get this PCSE 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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 25, 2026

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.

Loading comments…

Sign in to join the discussion.

This PCSE 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 PCSE exam.