Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
A Cloud Engineer has created a new Google Cloud project named corp-analytics-prod and needs to attach it to an active Cloud Billing account with the ID 01A2B3-45C6D7-89E0F1. The organization requires provisioning tasks to be scripted using the Google Cloud CLI (gcloud).
Which command should the engineer execute to enable billing on the project?
gcloud billing accounts doesThe gcloud billing accounts command group is designed to manage Cloud Billing account entities directly, such as listing accounts (gcloud billing accounts list), viewing details (describe), or managing IAM policies on the billing account.
gcloud billing accounts group does not provide a link subcommand for binding projects. Instead, project linkages are managed under the gcloud billing projects subgroup.gcloud billing projects link --billing-account=).gcloud billing accounts commands operate on the billing account object itself (e.g., getting metadata, modifying billing account administrators).gcloud billing projects.Google Cloud CLI modeled the relationship by modifying the billing account container to add projects as child arguments rather than updating the project's billing link.
Remember the command structure hierarchy: use gcloud billing projects link to link projects, gcloud billing projects unlink to disable billing, and gcloud billing projects list --billing-account to view all projects tied to an account.
gcloud services enable isThe gcloud services enable command is part of the Service Usage toolset, used to enable specific Google Cloud APIs and services (such as compute.googleapis.com or cloudbuild.googleapis.com) for a target project.
services enable; it is an account-level financial association.gcloud services enable command does not support passing a --account flag to specify a Cloud Billing ID.gcloud services enable manages API enablement states in the Service Usage registry.Service Usage Admin role (roles/serviceusage.serviceUsageAdmin).The objective was to enable a specific Google Cloud API (such as cloudbilling.googleapis.com) to allow programmatic API management within the project.
While gcloud services enable activates service endpoints, project charges cannot be settled without an active billing account link established via gcloud billing projects link.
gcloud billing projects link isThe gcloud billing projects link command is the standard Google Cloud CLI utility used to associate a Google Cloud project with a specified Cloud Billing account. Linking a project to a valid, active Cloud Billing account is a mandatory prerequisite for enabling paid APIs, consuming billable infrastructure services (such as Compute Engine or Cloud SQL), and managing financial accountability.
corp-analytics-prod) as a positional argument.--billing-account flag to specify the target billing account identifier (01A2B3-45C6D7-89E0F1).corp-analytics-prod and 01A2B3-45C6D7-89E0F1, enabling billing on the project so that resources can be provisioned immediately.Billing Account User (roles/billing.user) role on the billing account and Project Billing Manager (roles/resourcemanager.projectBillingManager) on the project.This command uses the exact syntax defined in Google Cloud CLI conventions for billing management. It directly binds the project to the billing account without intermediate configuration steps or external API calls.
This option attempts to modify project attributes by using a hypothetical set-billing subcommand under the gcloud projects command group.
gcloud projects command group manages project metadata, IAM policies, and lifecycle actions (such as create, delete, describe, and list), but it does not contain a set-billing subcommand.gcloud billing top-level group.--account flag in gcloud specifies the user or service account identity for authentication, not a billing account ID.gcloud billing projects.gcloud projects command group cannot directly attach, modify, or unlink billing accounts.Google Cloud CLI structured billing associations under general project configuration subcommands rather than dedicated billing groups.
A common beginner mistake is assuming that because a project is being modified, the command must start with gcloud projects.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated