PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #129
Your company's security team needs to have read-only access to Data Access audit logs in the _Required bucket. You want to provide your security team with the necessary permissions following the princ
The correct answer is D. Assign the roles/logging.privateLogViewer role to a group with all the security team members.. To grant security team members read-only access to Data Access audit logs in the _Required bucket with least privilege, assign the roles/logging.privateLogViewer role to a Google Group containing those members.
Question
Options
- AAssign the roles/logging.viewer role to each member of the security team.
- BAssign the roles/logging.viewer role to a group with all the security team members.
- CAssign the roles/logging.privateLogViewer role to each member of the security team.
- DAssign the roles/logging.privateLogViewer role to a group with all the security team members.
How the community answered
(53 responses)- A8% (4)
- B19% (10)
- C4% (2)
- D70% (37)
Why each option
To grant security team members read-only access to Data Access audit logs in the _Required bucket with least privilege, assign the `roles/logging.privateLogViewer` role to a Google Group containing those members.
`roles/logging.viewer` grants access to all logs except Data Access logs, so it would not fulfill the requirement, and assigning to individual members is less manageable.
`roles/logging.viewer` grants access to all logs except Data Access logs, so it would not fulfill the requirement, even if assigned to a group.
While `roles/logging.privateLogViewer` is the correct role, assigning it to each member individually is not the Google-recommended best practice for managing permissions; using a Google Group is preferred for scalability and easier auditing.
The `roles/logging.privateLogViewer` role is specifically designed to provide read-only access to Data Access logs, adhering to the principle of least privilege. Assigning it to a Google Group simplifies management, as you can add or remove members from the group without directly modifying IAM policies, which is a Google-recommended best practice for managing permissions.
Concept tested: IAM for Cloud Logging (Data Access Logs) & Group Management
Source: https://cloud.google.com/logging/docs/audit/audit-log-roles; https://cloud.google.com/iam/docs/manage-groups
Topics
Community Discussion
No community discussion yet for this question.