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?
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
Q01What is the primary purpose of a Google Cloud project?EasyQ02Your development team needs to manage Compute Engine instances in a specific project. They need t...MediumQ03You are automating the setup of a new Google Cloud project using a bash script. You need to enabl...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...MediumQ05Your finance team wants to perform granular analysis of your Google Cloud spending using SQL. The...Hard
Expert