A cloud administrator needs to grant an operations engineer the ability to create, update, and delete custom IAM roles within a specific Google Cloud project. The engineer must not be granted permissions to modify project IAM access policies or manage other project resources. To adhere to the principle of least privilege, which IAM role should be granted to the engineer?
- Role Administrator (roles/iam.roleAdmin)Answer
- BEditor (roles/editor)
- CSecurity Admin (roles/iam.securityAdmin)
- DOrganization Admin (roles/resourcemanager.organizationAdmin)
Answer
The Role Administrator role (roles/iam.roleAdmin) should be granted to the engineer.
The Role Administrator role (`roles/iam.roleAdmin`) grants permissions to create, update, and delete custom IAM roles (`iam.roles.create`, `iam.roles.update`, `iam.roles.delete`, `iam.roles.get`, `iam.roles.list`) without conferring permissions to modify resource IAM policies (`resourcemanager.projects.setIamPolicy`) or manage other service resources. This aligns strictly with Google Cloud best practices for least privilege access.
Step-by-Step Solution
Key Concept
Selecting predefined IAM roles based on least privilege for role management
Estimated Time:1m 30s