Medium1 markMultiple Choice

GCP ACE · Question 06 · Domain 1.3: Installing and configuring the CLI

You have just installed the Google Cloud SDK on your local workstation. You need to authenticate your user account, set up a default project, and configure a default compute zone.

Which single command should you run to accomplish all of these tasks interactively?

Answer options:

A.

gcloud auth login

B.

gcloud config set

C.

gcloud init

D.

gcloud setup

How to approach this question

Identify the command designed for first-time setup that handles authentication, project selection, and region/zone configuration in one interactive flow.

Full Answer

C.gcloud init✓ Correct
`gcloud init` is the standard command to initialize the Cloud SDK. It performs several setup tasks interactively: it authorizes the SDK to access GCP using your user account, sets up a default configuration, sets the default project, and optionally sets the default Compute Engine zone and region.

Common mistakes

Choosing `gcloud auth login`, which only handles the authentication part of the requirement.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam