Soru

Zorluk: OrtaOrganization Policies and Constraints

An enterprise organization enforces strict data residency rules across its Google Cloud environment. The lead cloud architect applies an Organization Policy list constraint (`constraints/gcp.resourceLocations`) at the Production Folder level, restricting resource creation strictly to `us-central1` and `us-east1`. A project team managing an isolated application inside this Production Folder requires deploying Compute Engine instances in `europe-west1` to satisfy European regulatory requirements. How should the architect configure Google Cloud governance to permit `europe-west1` deployment for this specific project while maintaining the folder-level policy for all other projects?

  1. Set an Organization Policy override on the specific Project resource node that modifies the allowed values list to include `europe-west1`.Cevap
  2. B
    Assign the IAM Owner role to the application project service account so it can bypass Organization Policy constraint evaluation during instance creation.
  3. C
    Define a VPC Service Controls perimeter around the Project and configure an egress rule permitting API requests directed to the `europe-west1` region.
  4. D
    Grant the `roles/iam.serviceAccountUser` role to the application deployment team at the project level to bypass resource location constraint validation.

Cevap

Set an Organization Policy override directly at the Project level that updates the allowed locations list to include `europe-west1`.
The correct option correctly leverages Google Cloud's resource hierarchy inheritance rules. Organization Policies inherit down from Organization to Folder to Project. When a specific project requires an exception to a parent folder's list constraint, defining a local policy override on that project node allows specifying custom allowed values (`europe-west1`) for that project while leaving the rest of the folder protected by the original rule.

Adım Adım Çözüm

1
Analyze resource hierarchy inheritance
Organization Policies defined at parent nodes (Folder) inherit down to child nodes (Projects) by default.
Understanding hierarchy evaluation is essential for determining where policy adjustments take effect.
2
Evaluate mechanisms for policy exceptions
Lower-level nodes in the hierarchy can override inherited policies by defining explicit policy rules at that specific level.
Setting an override at the Project level replaces or merges the inherited policy for that project specifically without altering the policy inherited by sibling projects.

Anahtar Kavram

Organization Policy Resource Hierarchy Inheritance and Overrides
Bu soruyu puanla