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 organization is refining access controls to comply with the principle of least privilege across its development environments. The security team needs to grant an operational group the Compute Instance Admin role (roles/compute.instanceAdmin.v1) on a folder containing multiple projects.
The access policy must meet the following constraints:
environment: development Resource Manager tag (either directly attached or inherited).Which IAM condition expression should the security engineer attach to the role binding?
resource.matchTagId() isresource.matchTagId() is an IAM Conditions function that evaluates whether a target resource has a specific Resource Manager tag attached or inherited, referencing the tag key and tag value by their globally unique, immutable permanent resource IDs (e.g., tagKeys/123456789012 and tagValues/567890123456).
true exclusively for resources that have the specific tag key and tag value pair applied directly or inherited down the resource hierarchy.environment: development), the new entity receives a brand-new permanent ID. Consequently, the existing condition will not match the recreated tag, preventing unauthorized or unintended privilege grants.While using short names via resource.matchTag() is convenient for declarative scripting, it carries the inherent risk that recreated tags with the same name automatically inherit historical IAM grants. Using resource.matchTagId() provides the highest level of security assurance against inadvertent privilege assignment.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.