Soru

Zorluk: OrtaManaging IAM Roles and Resource Access Permissions

A cloud security administrator needs to grant an external auditing team access to view the configuration and metadata of Compute Engine virtual machine instances within a specific Google Cloud project. The auditors must not be able to start, stop, modify, or delete any instances, nor should they have access to view resources in other Google Cloud services within the project. Following Google's recommended best practice of applying the principle of least privilege, which IAM role should be assigned to the auditing team on the project?

  1. Compute Viewer (roles/compute.viewer)Cevap
  2. B
    Viewer (roles/viewer)
  3. C
    Compute Instance Admin (v1) (roles/compute.instanceAdmin.v1)
  4. D
    Editor (roles/editor) at the project level combined with an IAM Deny Policy on Compute Engine

Cevap

Assign the Compute Viewer (roles/compute.viewer) role to the auditing team at the project level.
The Compute Viewer (roles/compute.viewer) role is a predefined role that grants read-only access to Compute Engine resources. It allows users to view virtual machine instance configurations, metadata, and status without permitting actions that modify instances (such as starting, stopping, or deleting) and without granting access to view resources in other GCP services within the project.

Adım Adım Çözüm

1
Analyze the access requirements
The user needs read-only access restricted strictly to Compute Engine resources.
The scenario explicitly limits permissions to viewing virtual machine instance configurations while prohibiting modifications and access to other project services.
2
Evaluate Google Cloud IAM role types
Predefined roles should be chosen over Primitive roles (Owner, Editor, Viewer).
Primitive roles like Viewer apply project-wide across all services, violating least privilege.
3
Select the specific predefined role
Compute Viewer (roles/compute.viewer) provides read-only permissions for Compute Engine resources only.
This role grants necessary permissions for viewing Compute Engine instance details while restricting modification capabilities and access to other Google Cloud services.

Anahtar Kavram

Selecting predefined IAM roles over primitive roles to adhere to the principle of least privilege.
Tahmini Süre:1m 15s
Bu soruyu puanla