A junior security administrator needs permission to view standard Admin Activity audit logs within a specific Google Cloud project to investigate resource deletion events. To comply with security requirements, the administrator must not be able to view sensitive Data Access audit logs or modify Cloud Logging configurations. Following Google Cloud best practices for least privilege, which IAM role should be assigned to the administrator?
- Logs Viewer (roles/logging.viewer)Answer
- BViewer (roles/viewer)
- CPrivate Logs Viewer (roles/logging.privateLogViewer)
- DLogging Admin (roles/logging.admin)
Answer
Assign the Logs Viewer (roles/logging.viewer) predefined role to the administrator.
The correct answer recommendation is the Logs Viewer (roles/logging.viewer) role. It allows users to view standard Admin Activity, System Event, and Access Transparency logs in Cloud Logging. It explicitly does not grant access to view sensitive Data Access logs (which require roles/logging.privateLogViewer) nor does it grant permission to alter log sinks or settings.
Step-by-Step Solution
Key Concept
IAM permission granularity for Cloud Audit Logs