A financial technology company is establishing central security guardrails for a specific Google Cloud folder containing sensitive payment processing workloads. The enterprise security policy dictates that no Compute Engine virtual machine instances created within this folder should have external IP addresses attached, preventing direct internet accessibility. To avoid disrupting existing production services, the security team needs to audit non-compliant resources first before enforcing strict blocking across all projects in the folder. Which architectural approach meets these governance requirements?
- Apply the compute.vmExternalIpAccess organization policy constraint at the target folder level in dry-run mode, monitor violations using Cloud Audit Logs, and then transition the constraint to enforced mode.Answer
- BConfigure a VPC Service Controls perimeter encompassing the payment processing projects and define an egress policy restricting public IP allocation for Compute Engine instances.
- CRemove the primitive roles/owner and roles/editor IAM roles from project members across the folder and replace them with custom IAM roles that explicitly omit Compute Engine network management permissions.
- DRevoke the roles/iam.serviceAccountUser role from developers and service accounts associated with Compute Engine workloads inside the payment processing projects.
Answer
Apply the compute.vmExternalIpAccess organization policy constraint at the target folder level in dry-run mode, monitor violations using Cloud Audit Logs, and then transition the constraint to enforced mode.
Organization Policies provide centralized, programmatic control over organization resources. The boolean constraint compute.vmExternalIpAccess specifically controls whether Compute Engine VM instances within the resource hierarchy can be configured with external IP addresses. Applying this constraint at the folder level ensures all projects within that folder inherit the guardrail. Setting the constraint to dry-run mode generates audit log events for non-compliant resources without disrupting existing infrastructure or blocking deployment pipelines during evaluation.
Step-by-Step Solution
Key Concept
Organization Policy Constraints and Dry-Run Enforcement