Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise organization is establishing perimeter security and API governance across its Google Cloud resource hierarchy. A security engineer must implement controls to meet the following requirements:
Development folder from activating or consuming any unapproved Google Cloud APIs, ensuring only an explicit allowlist of authorized services (such as Compute Engine and Cloud Storage) can be used.Which combination of controls should the security engineer implement to satisfy these requirements?
Configure a VPC Service Controls perimeter enclosing the Development folder projects with unrestricted service access, and configure API keys using Android application fingerprint restrictions.
Create an IAM Deny policy on the Development folder blocking the serviceusage.services.enable permission, and configure API keys with HTTP referrer restrictions without API target restrictions.
Apply the Restrict Service Usage (constraints/gcp.restrictServiceUsage) list constraint at the Development folder level with an allowlist of approved service identifiers, and configure API key restrictions with IP address application restrictions and specific API target restrictions.
Define Cloud Armor security policies to filter project API enablement endpoints, and configure API keys with OAuth 2.0 client IDs restricted to specific service accounts.
Configure a VPC Service Controls perimeter enclosing the Development folder projects with unrestricted service access, and configure API keys using Android application fingerprint restrictions.
Create an IAM Deny policy on the Development folder blocking the serviceusage.services.enable permission, and configure API keys with HTTP referrer restrictions without API target restrictions.
Apply the Restrict Service Usage (constraints/gcp.restrictServiceUsage) list constraint at the Development folder level with an allowlist of approved service identifiers, and configure API key restrictions with IP address application restrictions and specific API target restrictions.
The Restrict Service Usage constraint (constraints/gcp.restrictServiceUsage) is a predefined Google Cloud Organization Policy list constraint that controls which Google Cloud services and APIs can be enabled and used within a specific resource hierarchy container (Organization, Folder, or Project). In parallel, API Key Restrictions provide granular defense-in-depth controls for credentials by restricting requests based on client context (such as IP addresses, HTTP referrers, or mobile app fingerprints) and restricting target API invocation scope.
constraints/gcp.restrictServiceUsage at the Development folder with spec.rules.allow.values containing authorized service names (e.g., compute.googleapis.com, storage.googleapis.com) establishes an inheritance guardrail. Project owners within this folder cannot enable or make API calls to unapproved Google Cloud services, even if they possess project-level roles/serviceusage.serviceUsageAdmin privileges.Development folder automatically cascades down to all current and future projects in that folder.This approach uses native Google Cloud resource hierarchy guardrails for service enablement and follows security best practices for API credential scoping without requiring custom infrastructure proxies.
Define Cloud Armor security policies to filter project API enablement endpoints, and configure API keys with OAuth 2.0 client IDs restricted to specific service accounts.