A software architect needs to enable an environment engineer to link a newly provisioned Google Cloud project to the organization's central Cloud Billing Account. Following the principle of least privilege, which combination of IAM roles must be granted to the engineer?
- Project Billing Manager (roles/billing.projectManager) on the target project, and Billing Account User (roles/billing.user) on the Cloud Billing AccountCevap
- BBilling Account Administrator (roles/billing.admin) on the Cloud Billing Account, and Project Owner (roles/owner) on the target project
- CBilling Account Creator (roles/billing.creator) at the organization level, and Project Editor (roles/editor) on the target project
- DBilling Account User (roles/billing.user) on the Cloud Billing Account, and Project Viewer (roles/viewer) on the target project
Cevap
The correct role combination is Project Billing Manager on the target project and Billing Account User on the Cloud Billing Account.
Linking a project to a Cloud Billing Account requires permissions on both resources: Project Billing Manager (roles/billing.projectManager) grants resourcemanager.projects.createBillingAssignment on the project, while Billing Account User (roles/billing.user) grants billing.resourceAssociations.create on the billing account. This fulfills least-privilege security requirements.
Adım Adım Çözüm
Anahtar Kavram
Linking Google Cloud projects to a billing account requires dual permissions: Project Billing Manager on the project and Billing Account User on the billing account.