Soru

Zorluk: Çok zorManaging IAM Roles and Resource Access Permissions

An organization is establishing access controls for an automated infrastructure deployment pipeline and a finance audit team. A service account named `[email protected]` requires permissions to fully manage Compute Engine virtual machine instances only within the target project `prod-core`. Simultaneously, a compliance auditor needs read-only access to inspect spending trends and invoice data on the Billing Account associated with `prod-core`, without permission to modify billing configurations or manage project resources. Which IAM role configurations adhere to Google Cloud best practices and the principle of least privilege? (Select TWO.)

  1. Grant `roles/compute.instanceAdmin.v1` to `[email protected]` on the `prod-core` project resource.Cevap
  2. B
    Grant `roles/editor` to `[email protected]` on the `prod-core` project resource.
  3. Grant `roles/billing.viewer` to the compliance auditor user directly on the Billing Account resource.Cevap
  4. D
    Grant `roles/billing.admin` to the compliance auditor user on the `prod-core` project resource.

Cevap

Grant `roles/compute.instanceAdmin.v1` to the service account on the target project resource, and grant `roles/billing.viewer` to the compliance auditor directly on the Billing Account resource.
The correct options implement least-privilege security principles by granting targeted predefined roles at the appropriate levels of the GCP resource hierarchy. Assigning Compute Instance Admin (v1) at the project level gives the service account necessary permissions for instance management without project-wide Editor rights. Assigning Billing Account Viewer directly on the Billing Account resource provides the auditor with read-only cost visibility without administrative mutation permissions.

Adım Adım Çözüm

1
Evaluate service account requirements for compute instance management
Select `roles/compute.instanceAdmin.v1` applied at the project scope.
Google Cloud best practice requires using predefined roles targeted to specific services over primitive roles like Editor.
2
Evaluate auditor requirements for billing inspection
Select `roles/billing.viewer` applied directly on the Billing Account resource.
Billing access must be scoped to the Billing Account object, and viewing billing metrics requires only read-only Viewer permissions rather than Admin rights.

Anahtar Kavram

Applying least-privilege predefined roles at correct resource hierarchy nodes (Project vs Billing Account).
Bu soruyu puanla