nerdexam
Google

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.

Submitted by femi9· Apr 18, 2026Applying site reliability engineering principles to a service

Question

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 principle of least privilege and Google-recommended practices. What should you do?

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)
  • A
    8% (4)
  • B
    19% (10)
  • C
    4% (2)
  • D
    70% (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.

AAssign the roles/logging.viewer role to each member of the security team.

`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.

BAssign the roles/logging.viewer role to a group with all the security team members.

`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.

CAssign the roles/logging.privateLogViewer role to each member of the security team.

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.

DAssign the roles/logging.privateLogViewer role to a group with all the security team members.Correct

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

#IAM Roles#Cloud Logging#Audit Logs#Least Privilege

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice