An enterprise security administrator needs to ensure that virtual machines created inside a specific environment folder cannot be configured with public IP addresses. Which GCP mechanism should be configured at the folder level to enforce this restriction?
- Configure an Organization Policy constraint that restricts external IP access for virtual machines.Answer
- BRevoke primitive IAM Owner and Editor roles from project users and assign fine-grained predefined roles.
- CDefine a VPC Service Controls perimeter around all the projects within the target folder.
- DAssign the Service Account User role to compute service accounts instead of Service Account Admin.
Answer
Configure an Organization Policy constraint that restricts external IP access for virtual machines.
Applying an Organization Policy with a constraint to restrict external IP access at the folder level enforces a centralized guardrail across all descendant projects. Organization Policies govern resource configuration properties independent of user IAM permissions.
Step-by-Step Solution
Key Concept
Organization Policies and Constraints