A cloud administrator at an online gaming company needs to enable a lead external game developer to link a newly provisioned Google Cloud project, `game-telemetry-prod`, to the organization's central Google Cloud Billing Account. The developer already possesses the Project Owner role (`roles/owner`) on `game-telemetry-prod`. Following the principle of least privilege, which IAM role should the administrator grant to the developer, and on which resource?
- Grant the Billing Account User role (`roles/billing.user`) on the central Billing Account.Cevap
- BGrant the Billing Account Administrator role (`roles/billing.admin`) on the central Billing Account.
- CGrant the Project Billing Manager role (`roles/resourcemanager.projectBillingManager`) on the Organization resource.
- DGrant the Billing Account Viewer role (`roles/billing.viewer`) on the central Billing Account.
Cevap
Grant the Billing Account User role (`roles/billing.user`) on the central Billing Account.
Linking a Google Cloud project to a billing account requires two separate authorization rights: permission to manage billing on the project (`resourcemanager.projects.createBillingAssignment`) and permission to associate projects with the billing account (`billing.resourceAssociations.create`). Because the user already holds Project Owner permissions on the project, granting the Billing Account User role (`roles/billing.user`) on the central Billing Account supplies the missing billing account association permission with minimum necessary privilege.
Adım Adım Çözüm
Anahtar Kavram
Configuring Billing Accounts and Linking Projects