A cloud engineer is tasked with configuring billing for a newly provisioned Google Cloud project (`staging-microservices-prod`). The project must be linked to an existing corporate billing account (`01A2B3-4C5D6E-7F8901`). Adhering strictly to Google Cloud least-privilege security principles, which TWO IAM roles must be granted to the cloud engineer to perform this linking operation? (Select TWO.)
- Billing Account User (`roles/billing.user`) on the target Cloud Billing accountAnswer
- Project Billing Manager (`roles/resourcemanager.projectBillingManager`) on the target projectAnswer
- CProject Owner (`roles/owner`) on the target project
- DBilling Account Administrator (`roles/billing.admin`) on the target Cloud Billing account
- EOrganization Administrator (`roles/resourcemanager.organizationAdmin`) at the organization level
Answer
To associate a Google Cloud project with a Cloud Billing account under least privilege, the user requires two specific predefined roles: Billing Account User (`roles/billing.user`) assigned on the Cloud Billing account, and Project Billing Manager (`roles/resourcemanager.projectBillingManager`) assigned on the target project.
Linking a project to a Cloud Billing account requires permissions on both target entities. On the billing account level, Billing Account User (`roles/billing.user`) authorizes spending and linking. On the project level, Project Billing Manager (`roles/resourcemanager.projectBillingManager`) authorizes attaching the billing account. Together, these two predefined roles provide the exact set of minimum permissions needed.
Step-by-Step Solution
Key Concept
Least-privilege permission matrix for linking Google Cloud projects to Cloud Billing accounts
Estimated Time:2m 0s