Your organization maintains a Google Cloud environment where projects are grouped under a dedicated folder named Production. A third-party security analyst must review IAM policy bindings, resource configurations, and custom roles across all projects within the Production folder. The analyst must NOT be allowed to view underlying resource data (such as reading Cloud Storage object contents or database records) nor make any configuration changes. Which IAM role assignment fulfills this requirement while adhering strictly to the principle of least privilege?
- Grant the Security Reviewer role (roles/iam.securityReviewer) on the Production folder.Cevap
- BGrant the Viewer primitive role (roles/viewer) on the Production folder.
- CGrant the Security Reviewer role (roles/iam.securityReviewer) on each project individually and apply an explicit deny binding on the Production folder to prevent permission inheritance.
- DGrant the Billing Account Viewer role (roles/billing.viewer) on the billing account linked to the projects.
Cevap
Granting the Security Reviewer role (roles/iam.securityReviewer) at the Production folder level grants the analyst read-only access to inspect IAM policies and configurations for all child projects via resource hierarchy inheritance, without exposing underlying application data or granting edit rights.
Assigning the Security Reviewer role (roles/iam.securityReviewer) at the Production folder level provides read-only access to IAM policies, roles, and project configurations across all child projects via resource hierarchy inheritance, while explicitly withholding access to view sensitive underlying data.
Adım Adım Çözüm
Anahtar Kavram
Selecting predefined IAM roles over primitive roles and leveraging folder-level resource hierarchy inheritance for security auditing.