An enterprise operations team requires access to inspect Cloud Logging logs and view Cloud Monitoring metrics for resources in a specific project without permission to modify infrastructure or view underlying application datasets. To adhere to Google Cloud best practices for least privilege, which TWO predefined IAM roles should you grant to the operations team members? (Select TWO.)
- Logs Viewer (`roles/logging.viewer`) granted at the project levelCevap
- Monitoring Viewer (`roles/monitoring.viewer`) granted at the project levelCevap
- CProject Viewer (`roles/viewer`) granted at the project level
- DCompute Viewer (`roles/compute.viewer`) granted at the Organization level to override project-level permissions
Cevap
To allow the operations team to view logs and monitoring metrics under the principle of least privilege, grant the Logs Viewer (`roles/logging.viewer`) and Monitoring Viewer (`roles/monitoring.viewer`) predefined roles at the project level.
Granting Logs Viewer (`roles/logging.viewer`) and Monitoring Viewer (`roles/monitoring.viewer`) enforces least privilege by restricting access specifically to log entries and monitoring metrics without granting broad access to underlying datasets or infrastructure configuration.
Adım Adım Çözüm
Anahtar Kavram
Selecting predefined IAM roles for Cloud Logging and Cloud Monitoring to enforce the principle of least privilege.