Professional Cloud DevOps 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.
A DevOps team is managing access across a multi-tier Google Cloud resource hierarchy. A developer reports that they are unable to delete objects from a specific Cloud Storage bucket in a production project, despite having the Storage Object Admin (roles/storage.objectAdmin) role directly granted to their identity on that bucket.
During your investigation of the resource hierarchy, you identify the following IAM configurations:
storage.objects.delete to all members of the developer group.roles/storage.objectViewer) role.roles/storage.objectAdmin) role.How does Google Cloud IAM evaluate these cumulative policies to determine the developer's effective permissions on the bucket?
In Google Cloud Identity and Access Management (IAM), access evaluation follows a strict hierarchical evaluation order where IAM deny policies always take precedence over IAM allow policies, regardless of where the policies are attached in the resource hierarchy.
When the developer attempts to execute an action that requires storage.objects.delete on the Cloud Storage bucket, IAM resolves the request using the following evaluation sequence:
storage.objects.delete to the principal's group, the denial is absolute.roles/storage.objectAdmin) role—which contains the storage.objects.delete permission—this grant cannot supersede the ancestor deny rule.This evaluation model ensures that central governance and compliance guardrails set by organization security administrators cannot be inadvertently bypassed or overridden by project owners or resource-level administrators. Tools like Policy Troubleshooter and gcloud beta projects get-ancestors-iam-policy --include-deny can be used to quickly inspect these interacting layers.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.