A cloud administrator needs to delegate authority to a junior engineer to link an unlinked Google Cloud project to an organization's Cloud Billing Account using least-privilege IAM roles. Arrange the steps in the correct chronological order required to grant permissions and complete the linking process.
- 1Identify the target Google Cloud Project ID and the Cloud Billing Account ID.
- 2Grant the engineer the Billing Account User (`roles/billing.user`) role on the Cloud Billing Account.
- 3Grant the engineer the Project Billing Manager (`roles/resourcemanager.projectBillingManager`) role on the target project.
- 4Have the engineer execute `gcloud billing projects link PROJECT_ID --billing-account=BILLING_ACCOUNT_ID`.
Answer
The correct sequence begins by identifying the Project ID and Billing Account ID, granting the Billing Account User role on the billing account, granting the Project Billing Manager role on the project, and executing the gcloud billing projects link command.
Linking a project to a billing account requires permissions on two distinct levels in the GCP resource hierarchy: `roles/billing.user` on the Cloud Billing Account and `roles/resourcemanager.projectBillingManager` on the target Project. The workflow proceeds chronologically from identifying resource parameters to granting necessary IAM roles on both scopes, concluding with the CLI invocation to link the project.
Step-by-Step Solution
Key Concept
Least privilege IAM delegation for project billing link configuration