Question

Difficulty: MediumIdentity and Access Management (IAM) Roles and Resource Hierarchy

A financial technology enterprise structures its Google Cloud resource hierarchy using dedicated environment folders, including a parent folder named 'Payments-Prod'. The security auditing team requires read-only access to examine Cloud Logging log entries across all current and future projects located beneath the 'Payments-Prod' folder tree. Which IAM configuration adheres to Google Cloud recommended best practices for enforcing least privilege while minimizing administrative overhead?

  1. Grant the Logs Viewer role (roles/logging.viewer) to the auditing team's Google Group at the 'Payments-Prod' folder level.Answer
  2. B
    Grant the Viewer primitive role (roles/viewer) to the auditing team's Google Group at the 'Payments-Prod' folder level.
  3. C
    Grant the Service Account Admin role (roles/iam.serviceAccountAdmin) to the auditing team at the organization level to allow service account impersonation.
  4. D
    Configure a VPC Service Controls perimeter encompassing the 'Payments-Prod' folder without altering project IAM roles.

Answer

Grant the Logs Viewer role (roles/logging.viewer) to the auditing team's Google Group at the 'Payments-Prod' folder level.
Granting the predefined Logs Viewer role at the folder level leverages IAM policy inheritance across the resource hierarchy. All current and future projects in the 'Payments-Prod' folder inherit this access automatically, satisfying least privilege without requiring primitive roles or operational overhead.

Step-by-Step Solution

1
Identify the administrative scope requirement
Access must apply to all present and future projects under the 'Payments-Prod' folder.
Applying the role at the folder level leverages resource hierarchy IAM policy inheritance, avoiding per-project manual configuration.
2
Select the appropriate role matching least privilege
The Logs Viewer role (roles/logging.viewer) provides narrow read access specifically for Cloud Logging log entries.
Predefined roles restrict permissions to only the necessary service features, unlike primitive roles which grant broad resource access.

Key Concept

Resource Hierarchy IAM Policy Inheritance and Predefined Roles
Rate this question