A finance specialist in your organization must be given the capability to link newly provisioned Google Cloud projects to the organization's central Billing Account and monitor project cost metrics. Following Google recommended security practices of least privilege, the specialist must not have administrative authority to alter billing account policies or permissions to modify cloud infrastructure resources within the projects. Which pair of IAM role assignments correctly fulfills these requirements?
- Grant the user the Billing Account User role (roles/billing.user) on the Billing Account, and the Project Billing Manager role (roles/resourcemanager.projectBillingManager) on the target projects.Cevap
- BGrant the user the Billing Account Administrator role (roles/billing.admin) on the Billing Account, and the Editor role (roles/editor) on the target projects.
- CGrant the user the Billing Account Viewer role (roles/billing.viewer) on the Billing Account, and rely on the Project IAM Admin role (roles/resourcemanager.projectIamAdmin) inherited from the Organization level to link billing.
- DGrant the user the Billing Account User role (roles/billing.user) on the parent Folder containing the projects, and the Billing Account Viewer role (roles/billing.viewer) on the Billing Account.
Cevap
To associate a project with a billing account under least privilege principles, assign the Billing Account User role (roles/billing.user) on the Billing Account resource and the Project Billing Manager role (roles/resourcemanager.projectBillingManager) on the target projects.
Linking a Google Cloud project to a Billing Account requires explicit IAM permissions on both distinct resources. On the Billing Account, the user needs the 'roles/billing.user' role to use the billing account. On the target project, the user needs the 'roles/resourcemanager.projectBillingManager' role to modify the project's billing configuration. This combination satisfies least privilege without granting compute modification or billing administration capabilities.
Adım Adım Çözüm
Anahtar Kavram
Dual-Resource Authorization for GCP Billing Account Project Linking