Question

Difficulty: MediumOrganization Policies and Constraints

A enterprise security team wants to restrict the attach capability of cross-project service accounts across all cloud workloads by applying the `constraints/iam.disableCrossProjectServiceAccountUsage` constraint. However, before strictly enforcing this policy, they need to identify existing pipelines and services that rely on cross-project service accounts to prevent operational disruption. Which configuration strategy should the architecture team implement to evaluate potential impact without interrupting active workloads?

  1. Configure the organization policy constraint in dry-run mode at the organization level, and monitor Cloud Audit Logs for policy violation log entries.Answer
  2. B
    Assign the primitive Viewer role to all deployment service accounts across the resource hierarchy to bypass governance constraints during inspection.
  3. C
    Define a VPC Service Controls perimeter around all production projects to restrict unauthorized data movements initiated by service accounts.
  4. D
    Grant the Service Account User role to security analysts at the root organization node to override policy violations dynamically.

Answer

Configure the organization policy constraint in dry-run mode at the organization level, and monitor Cloud Audit Logs for policy violation log entries.
Applying Organization Policy constraints in dry-run mode allows organizations to test policy guardrails across the resource hierarchy. In dry-run mode, resource operations that violate the constraint are allowed to proceed, but violation details are emitted to Cloud Audit Logs. This enables security teams to identify non-compliant workloads and update service dependencies before enforcing the policy strictly.

Step-by-Step Solution

1
Identify governance evaluation requirements
Recognize the requirement to test restriction policies without breaking existing production pipelines.
Dry-run policy evaluation allows monitoring violations safely before enforcing constraints.
2
Apply Organization Policy dry-run configuration
Set `constraints/iam.disableCrossProjectServiceAccountUsage` in dry-run configuration mode at the target hierarchy node.
Dry-run mode writes violation events to Cloud Audit Logs while permitting resource requests to complete.
3
Audit violation events
Query Cloud Audit Logs for policy violation entries to remediate dependencies prior to enforcing the policy.
Analyzing log metrics identifies impacted service account usages for remediation.

Key Concept

Organization Policy Dry-Run Mode and Governance Testing
Rate this question