Question

Difficulty: MediumOrganization Policies and Constraints

A enterprise security team is implementing governance guardrails across a multitenant Google Cloud environment. They plan to restrict the activation of unauthorized service APIs using the `constraints/gcp.restrictServiceUsage` Organization Policy. However, to avoid disrupting existing workloads currently undergoing active development, the team wants to monitor potential violations in real time and evaluate the impact of the policy without blocking resource creation. Which configuration approach meets these requirements?

  1. Configure the Organization Policy constraint using a dry-run policy specification at the target resource hierarchy node.Answer
  2. B
    Assign the Owner or Editor primitive IAM roles to the deployment pipeline service accounts so they can override resource restrictions.
  3. C
    Define a VPC Service Controls perimeter around the development folders to log unauthorized API invocations to external Cloud Storage buckets.
  4. D
    Grant the Service Account User role to developers across the organization root to allow bypassing API enforcement constraints.

Answer

Configure the Organization Policy constraint using a dry-run policy specification at the target resource hierarchy node.
Configuring a dry-run policy specification allows administrators to simulate and log compliance violations without blocking deployment operations. Non-compliant API activations generate audit logs, giving visibility into compliance readiness before enforcing the constraint strictly.

Step-by-Step Solution

1
Identify the requirement to test policy impact without enforcement
Recognize that blocking actions directly in a live environment risks breaking operational workloads.
Organization Policies support dry-run specifications specifically for auditing potential policy violations prior to enforcement.
2
Evaluate Google Cloud Organization Policy capabilities
Dry-run specifications evaluate requests against proposed policy rules and write violation audit logs to Cloud Logging while allowing the API call to proceed.
This provides real-time visibility into non-compliant activity across folders or projects without breaking existing application pipelines.

Key Concept

Organization Policy Dry-Run Mode and Audit Logging
Rate this question