Hard1 markMultiple Choice
Domain 1.3: Installing and configuring the CLIDomain 1.3gcloudkubectlComponents

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?

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