A compliance auditor needs to inspect all Cloud Audit Logs for a target Google Cloud project, including sensitive Data Access logs containing personally identifiable information (PII). Following the principle of least privilege, the auditor must be granted read access to these logs without being given access to inspect resource data or perform administrative changes. Which IAM role should be assigned to the auditor?
- Private Logs Viewer (roles/logging.privateLogViewer)Answer
- BLogs Viewer (roles/logging.viewer)
- CProject Viewer (roles/viewer)
- DOrganization Viewer (roles/viewer) at the organization level
Answer
Granting the Private Logs Viewer (roles/logging.privateLogViewer) role provides read access to all log entries, including restricted Data Access logs, without granting unnecessary permissions.
The Private Logs Viewer role (roles/logging.privateLogViewer) is explicitly designed to allow users to view all log entries in Cloud Logging, including restricted Data Access logs that contain sensitive or PII information, fulfilling security and compliance auditing needs under least privilege.
Step-by-Step Solution
Key Concept
Cloud Audit Logs access control requires Private Logs Viewer (roles/logging.privateLogViewer) to view Data Access logs containing sensitive information.
Estimated Time:1m 15s