Google Associate Cloud Engineer Question 45
Single answerGoogle Cloud PlatformAs a Google Cloud Associate Cloud Engineer, you have been tasked with ensuring that a new project you created is linked to the correct billing account. Which of the following steps should you take to link your Google Cloud project to a billing account?
- A
Navigate to the Google Cloud Console, go to 'Billing', and select 'Link a billing account'.
- B
Use the gcloud CLI command 'gcloud projects link-billing --account=<ACCOUNT_ID> --project=<PROJECT_ID>'.
- C
In the Google Cloud Console, access the 'IAM & Admin' section and assign the 'Billing Account User' role to the project.
- D
Go to the Google Cloud Console, select your project, navigate to 'Billing', and then choose the appropriate billing account.
Show answer and explanation
Correct answer: D
Explanation
Linking a Google Cloud project to a billing account is a task performed in the Google Cloud Console. You need to select the project you wish to link, navigate to the 'Billing' section, and then choose the appropriate billing account. This ensures that all services used within the project are billed correctly to the chosen billing account.
- A. Incorrect.
This option is incorrect because there is no direct 'Link a billing account' option under 'Billing'. Billing needs to be set within a project's settings.
- B. Incorrect.
This option is incorrect because there is no such gcloud CLI command. Linking billing accounts is done via the Console, not through a direct CLI command.
- C. Incorrect.
This option is incorrect as assigning roles does not directly link a billing account. It is for permissions management.
- D. Correct.
This option is correct because linking a billing account is done by selecting a project, navigating to 'Billing', and then choosing or changing the billing account associated with it.