Google Associate Cloud EngineerSetting up a cloud solution environmentMedium
A data analytics team requires a new project in Google Cloud. They want to ensure that billing for this project is charged to a specific departmental billing account, separate from the company's main billing account. Which of the following is the correct sequence of steps to associate a newly created project with a specific, existing billing account?
- AFirst, navigate to the desired billing account, then click 'Add Project' and select the new project.
- BCreate the project, then in the project's 'Billing' section, select 'Link a billing account' and choose the departmental account.
- CCreate the project, then use 'gcloud alpha billing projects link [PROJECT_ID] --billing-account [BILLING_ACCOUNT_ID]'.
- DIn the 'IAM & Admin' section of the organization, assign the 'Billing Account User' role to the project, then create the project.
Show answer & explanationAnswer & explanation
Correct answer: B. Create the project, then in the project's 'Billing' section, select 'Link a billing account' and choose the departmental account.
The most common and straightforward method in the Google Cloud Console is to create the project first, and then within the project's billing settings, explicitly link it to the desired billing account.
Why the other options are wrong
- A. While billing accounts can show associated projects, initiating the link from the project's billing section is the primary method.
- C. This `gcloud alpha` command exists, but option A describes the more common console-based approach and the question doesn't specify CLI.
- D. Assigning a role doesn't link the billing account; it only grants permissions to manage billing.
Linking Project to Billing Account
To associate a Google Cloud project with a specific billing account, you navigate to the project's billing settings and select an existing billing account to link.
- A project must have an active billing account to use paid services.
- Only users with 'Billing Account User' or 'Billing Account Administrator' can link.
- Can be done via Console or gcloud CLI.
Memory trick: Create your project, then connect its wallet.