An internal compliance auditor requires read-only access to inspect IAM policy bindings and view the list of enabled Cloud APIs within a Google Cloud project. The auditor must not be permitted to modify permissions, enable or disable APIs, or view underlying data stored in project resources. Which TWO predefined IAM roles should you grant to the auditor to adhere to the principle of least privilege?
- Security Reviewer (roles/iam.securityReviewer)Answer
- BProject Editor (roles/editor)
- Service Usage Viewer (roles/serviceusage.serviceUsageViewer)Answer
- DProject IAM Admin (roles/resourcemanager.projectIamAdmin)
Answer
To meet the compliance auditing requirements with minimal privilege, grant Security Reviewer (roles/iam.securityReviewer) to allow inspecting IAM policies and Service Usage Viewer (roles/serviceusage.serviceUsageViewer) to allow listing enabled Cloud APIs.
Security Reviewer grants read-only access to inspect security settings and IAM policies, while Service Usage Viewer provides read-only access to inspect enabled services and APIs. Combining these two predefined roles satisfies the auditor's read-only requirements without granting unnecessary administrative or write permissions.
Step-by-Step Solution
Key Concept
Granting Least-Privilege Predefined Roles for Security Auditing and API Inspection