Soru

Zorluk: OrtaManaging IAM Roles and Permissions

A DevOps team is setting up access controls for a company's cloud infrastructure. An internal compliance auditing group needs to inspect security configurations and IAM policies across all projects contained within a dedicated folder named `financial-services`. Additionally, an automated deployment pipeline service account requires permissions to create and manage Compute Engine instances exclusively inside a single project named `staging-workloads`. Which of the following IAM role assignments adhere to the principle of least privilege and proper resource hierarchy scoping? (Select TWO correct answers.)

  1. Grant the Security Reviewer role (roles/iam.securityReviewer) to the compliance auditing group at the folder level for `financial-services`.Cevap
  2. Grant the Compute Admin role (roles/compute.admin) to the deployment pipeline service account at the project level for `staging-workloads`.Cevap
  3. C
    Grant the primitive Viewer role (roles/viewer) to the compliance auditing group at the Organization level.
  4. D
    Grant the primitive Editor role (roles/editor) to the deployment pipeline service account at the folder level for `financial-services`.

Cevap

The correct role assignments are granting the Security Reviewer role to the compliance auditing group at the folder level, and granting the Compute Admin role to the deployment pipeline service account at the specific project level.
Google Cloud IAM security best practices mandate using predefined roles over primitive roles to adhere to the principle of least privilege. Assigning the Security Reviewer role at the folder level grants the compliance team precise read-only security visibility for all projects in that folder. Assigning the Compute Admin role at the project level ensures the deployment pipeline can manage Compute Engine resources exclusively within the designated staging project.

Adım Adım Çözüm

1
Analyze compliance group access requirements.
Read-only access to security and IAM policies across all projects in the `financial-services` folder.
Assigning the predefined Security Reviewer role at the folder level provides exact read visibility for all child projects within that folder without granting unnecessary administrative permissions.
2
Analyze deployment pipeline service account requirements.
Full management permissions for Compute Engine instances strictly limited to `staging-workloads`.
Assigning the predefined Compute Admin role at the project level grants full compute capabilities within the single project while preventing permission inheritance to neighboring projects.

Anahtar Kavram

Applying least-privilege access using predefined IAM roles at appropriate levels of the Google Cloud resource hierarchy.
Bu soruyu puanla