An enterprise cloud architect needs to prevent developers from assigning external IP addresses to any new Compute Engine instances created within a specific organizational folder. Which Google Cloud solution should be implemented to enforce this restriction across all projects in the folder?
- Configure an Organization Policy with the `constraints/compute.vmExternalIpAccess` constraint applied at the folder level.Cevap
- BRemove primitive IAM roles (Owner, Editor, Viewer) from all developers working within the target projects.
- CDefine a VPC Service Controls perimeter around the projects to prevent data exfiltration over public endpoints.
- DRevoke the Service Account User role (`roles/iam.serviceAccountUser`) from developer accounts assigned to the compute instances.
Cevap
Configure an Organization Policy with the `constraints/compute.vmExternalIpAccess` constraint applied at the folder level.
Applying an Organization Policy with the `constraints/compute.vmExternalIpAccess` constraint at the folder level ensures that all current and future child projects inherit the restriction, preventing any VM instance from being provisioned with an external IP address.
Adım Adım Çözüm
Anahtar Kavram
Organization Policies provide centralized programmatic control over organizational resources by enforcing policy constraints across the GCP resource hierarchy.