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 separation of duties for an automated compliance bot. The bot must continuously audit and remediate Identity and Access Management (IAM) allow policies across multiple Google Cloud projects.
The solution must satisfy the following security constraints:
Which IAM role configuration should the security team grant to the bot?
Create and grant a custom IAM role containing the resourcemanager.projects.get and resourcemanager.projects.update permissions.
Grant the predefined Project IAM Admin role (roles/resourcemanager.projectIamAdmin) on the target projects.
Grant the basic Owner role (roles/owner) on the target projects.
Grant the basic Editor role (roles/editor) combined with the Security Reviewer role (roles/iam.securityReviewer).
Create and grant a custom IAM role containing the resourcemanager.projects.get and resourcemanager.projects.update permissions.
Grant the predefined Project IAM Admin role (roles/resourcemanager.projectIamAdmin) on the target projects.
The Project IAM Admin role (roles/resourcemanager.projectIamAdmin) is a specialized predefined IAM role designed for administrative control over identity and access policies at the project level. It provides the essential permissions—such as resourcemanager.projects.getIamPolicy and resourcemanager.projects.setIamPolicy—required to inspect, update, and manage allow policy bindings without bundling broad infrastructure access.
roles/resourcemanager.projectIamAdmin decouples policy administration from resource administration. It does not include data plane access permissions or privileges to create, mutate, or delete workload infrastructure (such as Compute Engine VMs or Cloud Storage objects).Owner or Editor, the bot is restricted purely to authorization management, eliminating unnecessary privilege escalation paths.Granting roles/resourcemanager.projectIamAdmin directly meets all operational and security specifications without requiring the ongoing maintenance of custom roles, while strictly honoring the principle of least privilege.
Grant the basic Owner role (roles/owner) on the target projects.
Grant the basic Editor role (roles/editor) combined with the Security Reviewer role (roles/iam.securityReviewer).