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.
Your team is preparing a new Google Cloud project for an application backend. Before configuring your deployment pipelines, you need to use the Google Cloud CLI (gcloud) to find the exact service identifier for a required API and then activate it for the project.
Which sequence of gcloud commands should you run?
gcloud services list --available to find the service identifier, and then run gcloud services enable [SERVICE_NAME].gcloud services Command Group IsThe gcloud services command group in the Google Cloud CLI interacts with the Service Usage API to list, enable, and disable Google Cloud services and APIs within your project.
gcloud services list --available queries the catalog of all APIs available for activation in Google Cloud. Filtering this output (e.g., using grep or --filter) allows administrators and developers to retrieve the exact service identifier (such as servicecontrol.googleapis.com or dialogflow.googleapis.com).gcloud services enable [SERVICE_NAME] command activates the specified API on the active or target project, granting workloads and users the ability to call that service interface.--enabled) and all services that can be activated (--available)..googleapis.com.roles/serviceusage.serviceUsageAdmin role or the serviceusage.services.enable permission, ensuring secure access control.Using gcloud services list --available and gcloud services enable is standard Google Cloud practice for command-line service management. It uses valid gcloud syntax and directly satisfies both requirements of service discovery and programmatic activation.
gcloud services list --enabled to find the service identifier, and then run gcloud services add [SERVICE_NAME].Running gcloud services list --enabled displays only the APIs and services that are already activated in the target project. The sub-command add is not a valid verb under gcloud services.
gcloud services list --enabled will omit it entirely from the output, making discovery impossible.gcloud services group uses enable to activate services rather than add. Executing gcloud services add returns a syntax error.gcloud services list --enabled is the default behavior when running gcloud services list without flags.You needed to audit or verify APIs that were already active in the project rather than discover and activate a new service.
gcloud components list to find the service identifier, and then run gcloud components install [SERVICE_NAME].gcloud components DoesThe gcloud components command group manages the local installation of the Google Cloud SDK itself, including additional CLI tools, emulators, and language-specific extensions (such as kubectl, bq, anthos-auth, or beta commands).
gcloud components controls client-side binaries installed on your workstation or Cloud Shell environment; it does not discover or enable server-side Google Cloud project APIs.gcloud components update and gcloud components install [COMPONENT_ID].serviceusage.services.enable permissions because it modifies only local disk files.You needed to install optional command-line tools or plugins locally on your administrative machine rather than enabling cloud APIs within a Google Cloud project.
gcloud apis discover to find the service identifier, and then run gcloud apis activate [SERVICE_NAME].This option uses fictional command syntax (gcloud apis discover and gcloud apis activate) that does not exist in the Google Cloud CLI.
gcloud apis command group for enabling cloud services on a project.gcloud.gcloud services command group.enable, while API deactivation uses the verb disable.The Google Cloud CLI used apis as the primary command group alias and activate as the action verb, but Google Cloud standardizes on gcloud services enable.
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