Soru

Zorluk: OrtaOrganization Policies and Constraints

A enterprise architecture team is implementing centralized governance guardrails across their Google Cloud resource hierarchy. They must ensure that development teams cannot allocate external IP addresses to virtual machine instances within the Development folder. Additionally, they must restrict API access within the Analytics folder so that projects can only enable approved Google Cloud services (such as Cloud Storage and BigQuery). Which TWO configuration steps should the cloud architect execute using Organization Policies to achieve these requirements? (Select TWO)

  1. Apply the `constraints/compute.vmExternalIpAccess` boolean constraint on the Development folder to deny public IP assignment to compute instances.Cevap
  2. B
    Assign primitive Viewer roles to developers at the Development folder level to revoke their permission to create external IP addresses.
  3. Configure the `constraints/gcp.restrictServiceUsage` list constraint on the Analytics folder with an `allowed_values` list containing only the approved service identifiers.Cevap
  4. D
    Define a VPC Service Controls perimeter around the Analytics folder projects with egress rules blocking unauthorized API access.

Cevap

Enforce the `constraints/compute.vmExternalIpAccess` constraint on the Development folder to block external IP creation, and apply the `constraints/gcp.restrictServiceUsage` list constraint on the Analytics folder specifying the allowed service APIs.
Organization Policies provide centralized governance controls across Google Cloud folders and organizations. The `compute.vmExternalIpAccess` constraint explicitly restricts external IP assignment on Compute Engine VMs, while `gcp.restrictServiceUsage` specifies an allowlist of service APIs that projects under the folder can enable.

Adım Adım Çözüm

1
Identify the appropriate constraint type for restricting external IP addresses on Compute Engine instances.
Selected `constraints/compute.vmExternalIpAccess` enforced at the Development folder level.
Organization Policies evaluate resource attributes hierarchically, preventing VM instances from acquiring public IPs regardless of user IAM permissions.
2
Identify the appropriate constraint type for restricting which Google Cloud APIs can be enabled within a folder.
Selected `constraints/gcp.restrictServiceUsage` with allowed service list applied to the Analytics folder.
This list constraint restricts service enablement across all underlying projects to only explicitly approved service APIs.

Anahtar Kavram

Organization Policies enforce central programmatic guardrails over resource configurations and API usage across the Google Cloud resource hierarchy.
Bu soruyu puanla