A lead software engineer at a telehealth organization needs to migrate the billing for an existing project, `care-telehealth-prod`, by linking it to a newly established central corporate Cloud Billing Account. The engineer has already been granted the Billing Account User role (`roles/billing.user`) on the target corporate Cloud Billing Account. However, when trying to change the project's billing account in the Google Cloud Console, the action is denied. Following Google Cloud's principle of least privilege, which IAM role should be assigned to the engineer on the `care-telehealth-prod` project resource to allow this linking?
- Project Billing Manager (`roles/billing.projectManager`)Cevap
- BBilling Account Administrator (`roles/billing.admin`)
- CProject Owner (`roles/owner`)
- DOrganization Administrator (`roles/resourcemanager.organizationAdmin`)
Cevap
Project Billing Manager (`roles/billing.projectManager`) on the project
Linking an existing Google Cloud project to a Cloud Billing Account requires two distinct permissions: `roles/billing.user` on the billing account (which allows using the account) and `resourcemanager.projects.createBillingAssignment` on the project (which allows attaching billing to the project). The Project Billing Manager predefined role (`roles/billing.projectManager`) grants this exact project permission without conveying full project administration capabilities, adhering strictly to the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Two-sided permission model for linking Google Cloud Projects to Cloud Billing Accounts