Question

Difficulty: MediumOrganization Policies and Constraints

A global media streaming platform is configuring central security guardrails across its Google Cloud resource hierarchy. The security team has defined two mandatory policy enforcement rules: preventing developers from generating service account keys across all projects within the Media-Services folder, and restricting the creation of resources so that compute and storage services can only be deployed in designated European locations (europe-west1 and europe-west3). Which TWO configuration actions should the cloud architect take using Organization Policies to satisfy these guardrails?

  1. Enforce the boolean constraint constraints/iam.disableServiceAccountKeyCreation on the Media-Services folder.Answer
  2. Apply the list constraint constraints/gcp.resourceLocations on the target hierarchy node, setting an allowed values list containing in:europe-west1-locations and in:europe-west3-locations.Answer
  3. C
    Grant the primitive Owner role to project leads to allow them to self-police regional resource deployment and key creation.
  4. D
    Configure a VPC Service Controls security perimeter around the projects to prevent API requests from executing outside European IP ranges.

Answer

The cloud architect should enforce the boolean constraint `constraints/iam.disableServiceAccountKeyCreation` on the target folder and apply the list constraint `constraints/gcp.resourceLocations` with allowed European location values.
Enforcing `constraints/iam.disableServiceAccountKeyCreation` at the folder level prevents key creation across all nested projects. Applying `constraints/gcp.resourceLocations` with allowed European region values restricts GCP resource deployment strictly to specified geographical regions.

Step-by-Step Solution

1
Identify the constraint type for blocking service account key creation.
Recognize that `constraints/iam.disableServiceAccountKeyCreation` is a boolean constraint designed specifically to stop users from creating service account keys.
Organization policies provide policy-based guardrails across the resource hierarchy, and boolean constraints evaluate to true (enforced) or false.
2
Identify the constraint type for restricting resource deployment locations.
Select `constraints/gcp.resourceLocations` as a list constraint with explicit allowed location values (`in:europe-west1-locations` and `in:europe-west3-locations`).
List constraints specify allowed or denied values for supported Google Cloud configuration parameters.

Key Concept

Organization Policies supply centralized governance by enforcing boolean and list constraints on resource creation and configuration across the GCP resource hierarchy.
Rate this question