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.
An enterprise security team is establishing authorization guardrails across Google Cloud resource hierarchies. The team needs to enforce the following access requirements on a folder named Production-Workloads:
developers@example.com from creating and deleting service account keys across all current and future projects in the folder, even if they hold broad project-level Owner or Editor IAM roles.breakglass-ops@example.com (whose members are also in developers@example.com) to retain full permissions to create and delete service account keys within these projects.Which configuration should the security team implement to satisfy these requirements?
IAM deny policies allow administrators to define explicit, non-negotiable security boundaries that prevent specific principals from exercising designated permissions, regardless of the allow policies or IAM roles granted to them.
Production-Workloads folder (cloudresourcemanager.googleapis.com/folders/FOLDER_ID) ensures the deny rules are automatically inherited by all current and future child projects in the folder hierarchy.iam.googleapis.com/serviceAccountKeys.create and iam.googleapis.com/serviceAccountKeys.delete in deniedPermissions restricts the precise API operations associated with service account key generation and destruction.principalSet://goog/group/developers@example.com under deniedPrincipals targets the developer population, while specifying principalSet://goog/group/breakglass-ops@example.com under exceptionPrincipals exempts emergency response operators. During IAM policy evaluation, deny policies are evaluated before allow policies, and principals listed in exceptionPrincipals are completely exempt from the deny rule, allowing their existing allow grants to function normally.roles/owner or roles/editor).v2 policy structure with fully qualified permission identifiers.This solution enforces uniform security guardrails across the entire folder hierarchy while explicitly handling group overlap via exceptionPrincipals. It eliminates the operational overhead of managing individual project-level allow policies and ensures strict enforcement through IAM's built-in evaluation order.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.