Question

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

A healthcare analytics platform organizes its workload projects under a dedicated `Clinical-Analytics` folder within the Google Cloud resource hierarchy. The security team needs to grant a centralized monitoring team read-only access to inspect Cloud Logging logs for all current and future projects within this folder. The solution must strictly adhere to the principle of least privilege without exposing underlying dataset contents in Cloud Storage or BigQuery. Which IAM configuration strategy should the architect recommend to meet these requirements with minimal administrative overhead?

  1. Grant the predefined `roles/logging.viewer` role to the monitoring team's Google Group at the `Clinical-Analytics` folder level.Answer
  2. B
    Grant the primitive `roles/viewer` role to the monitoring team's Google Group at the `Clinical-Analytics` folder level.
  3. C
    Grant the `roles/iam.serviceAccountAdmin` role to the monitoring team's Google Group on all project-level service accounts.
  4. D
    Configure VPC Service Controls perimeter rules around the folder to grant log access while blocking data egress to external locations.

Answer

Granting the predefined `roles/logging.viewer` role to the monitoring team's Google Group at the `Clinical-Analytics` folder level fulfills the requirement using least privilege and resource hierarchy inheritance.
Granting the predefined `roles/logging.viewer` role at the folder level leverages Google Cloud resource hierarchy inheritance. All child projects under the `Clinical-Analytics` folder automatically inherit this access without granting read access to underlying storage buckets or database tables.

Step-by-Step Solution

1
Identify the specific permission requirement.
The team requires read-only access strictly to Cloud Logging logs across all projects under a folder.
Least privilege mandates choosing a fine-grained predefined role like `roles/logging.viewer` over broad primitive roles.
2
Determine the optimal resource hierarchy scope.
Binding the role at the parent `Clinical-Analytics` folder level.
Permissions bound at a folder level inherit down to all existing and future child projects, eliminating manual project-by-project maintenance.

Key Concept

GCP IAM Resource Hierarchy Inheritance and Predefined Roles
Rate this question