A platform team lead needs to grant a Site Reliability Engineering (SRE) team member permission to view standard Admin Activity audit logs in Cloud Logging for a GCP project. The team member must not be allowed to view Data Access audit logs containing sensitive information, nor should they be able to create log sinks or modify logging configurations. Following Google Cloud's principle of least privilege, which IAM role should be assigned to the team member?
- Logs Viewer (roles/logging.viewer)Cevap
- BViewer (roles/viewer)
- CPrivate Logs Viewer (roles/logging.privateLogViewer)
- DLogging Admin (roles/logging.admin)
Cevap
Logs Viewer (roles/logging.viewer)
The Logs Viewer role (roles/logging.viewer) provides read-only permissions to view standard logs, including Admin Activity audit logs, but does not grant access to private logs (Data Access audit logs) or administrative permissions to modify log routing sinks.
Adım Adım Çözüm
Anahtar Kavram
IAM Roles for Viewing Cloud Audit Logs under Least Privilege
Tahmini Süre:1m 30s