A cloud security administrator at a biotechnology firm needs to grant a lead bio-informatician the required privileges to link a newly provisioned Google Cloud project, `genomics-pipeline-prod`, to the enterprise Cloud Billing Account. The administrator must strictly adhere to the principle of least privilege, ensuring the bio-informatician cannot manage payment details or alter billing account permissions. Which IAM role combination should be granted to the bio-informatician?
- Billing Account User (roles/billing.user) on the Cloud Billing Account and Project Billing Manager (roles/resourcemanager.projectBillingManager) on the target projectCevap
- BBilling Account Administrator (roles/billing.admin) on the Cloud Billing Account and Owner (roles/owner) on the target project
- CBilling Account User (roles/billing.user) on the Cloud Billing Account only
- DProject Billing Manager (roles/resourcemanager.projectBillingManager) on the target project only
Cevap
Grant Billing Account User (roles/billing.user) on the Cloud Billing Account and Project Billing Manager (roles/resourcemanager.projectBillingManager) on the target project.
Linking a Google Cloud project to a Cloud Billing Account requires permissions on both entities. The predefined role Billing Account User (`roles/billing.user`) gives the permission `billing.resourceAssociations.create` on the billing account. The predefined role Project Billing Manager (`roles/resourcemanager.projectBillingManager`) gives the permission `resourcemanager.projects.createBillingAssignment` on the project. This combination grants the exact rights required without over-privileging the user.
Adım Adım Çözüm
Anahtar Kavram
Dual-sided IAM requirements for linking Google Cloud Projects to Cloud Billing Accounts