Google Associate Cloud Engineer Question 192
Single answerGoogle Cloud PlatformAs a Google Certified Associate Cloud Engineer, you need to view the current running Google Kubernetes Engine (GKE) clusters in your project. Which of the following commands would provide you with the list of running GKE clusters in your current Google Cloud project?
- A
gcloud container clusters list
- B
kubectl get clusters
- C
gcloud compute instances list
- D
gcloud projects describe
Show answer and explanation
Correct answer: A
Explanation
To view the current running GKE clusters in a Google Cloud project, the 'gcloud container clusters list' command is used. This command provides a list of all clusters in the specified project, showing details such as cluster names, locations, and status. It is specific to managing GKE resources.
- A. Correct.
This command lists all the running GKE clusters in your Google Cloud project. It is the correct choice for viewing the GKE cluster inventory.
- B. Incorrect.
This command is incorrect as 'kubectl' is used for managing Kubernetes resources, not listing clusters.
- C. Incorrect.
This command lists Compute Engine instances, not GKE clusters.
- D. Incorrect.
This command provides information about Google Cloud projects, not specific cluster details.