Hard1 markMultiple Choice
GCP ACE · Question 09 · Domain 1.3: Installing and configuring the CLI
You have installed the default Google Cloud SDK on your local machine. You now need to manage a Google Kubernetes Engine (GKE) cluster, but you realize the 'kubectl' command-line tool is not installed.
Which command should you run to install kubectl using the Cloud SDK?
You have installed the default Google Cloud SDK on your local machine. You now need to manage a Google Kubernetes Engine (GKE) cluster, but you realize the 'kubectl' command-line tool is not installed.
Which command should you run to install kubectl using the Cloud SDK?
Answer options:
A.
gcloud services enable kubectl
B.
gcloud install kubectl
C.
gcloud components install kubectl
D.
apt-get install google-kubectl
How to approach this question
Remember that the Cloud SDK manages its own tools and plugins via the 'components' command group.
Full Answer
C.gcloud components install kubectl✓ Correct
The Cloud SDK includes a component manager. To install additional tools that are not included in the core installation (like `kubectl` for GKE management), you use the `gcloud components install [COMPONENT_ID]` command.
Common mistakes
Confusing API enablement (`gcloud services enable`) with local tool installation.
Practice the full GCP Associate Cloud Engineer Practice Exam 3
50 questions · hints · full answers · grading
More questions from this exam
Q01You are starting a new project in Google Cloud and need to create a new GCP project and enable th...EasyQ02A new team member has joined your operations team. They need to be able to view all Compute Engin...MediumQ03Your company is migrating to Google Cloud. You currently manage all employee identities in an on-...MediumQ04Your development team is experimenting with new GCP services in a sandbox project. The finance te...MediumQ05Your company wants to perform complex, custom SQL analysis on their Google Cloud billing data to ...Easy
Expert