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?
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
Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ03You have created a new Google Cloud project. You need to allow a specific group of developers to ...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ05Your company wants to be notified immediately in their Slack channel whenever their monthly Googl...Medium
Expert