Easy1 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 want to authenticate your account, set up a default project, and set a default compute region.

Which single gcloud command will guide you through an interactive process to accomplish all of these tasks?

Answer options:

A.

gcloud auth login

B.

gcloud config set project

C.

gcloud setup

D.

gcloud init

How to approach this question

Identify the initialization command for the Cloud SDK.

Full Answer

D.gcloud init✓ Correct
The `gcloud init` command performs several common SDK setup tasks interactively. It authorizes the SDK tools to use your Google account credentials, sets up a default configuration, sets the current project, and can set the default Compute Engine region and zone.

Common mistakes

Choosing `gcloud auth login`, which only handles the authentication part but leaves the project and region unconfigured.

Practice the full GCP Associate Cloud Engineer Practice Exam 6

50 questions · hints · full answers · grading

More questions from this exam