Easy1 markMultiple Choice
GCP ACE · Question 22 · Domain 3.2: Deploying and implementing GKE resources
You need to deploy a new Google Kubernetes Engine (GKE) Standard cluster named 'my-cluster' with 3 nodes in the us-central1-a zone.
Which gcloud command should you use?
You need to deploy a new Google Kubernetes Engine (GKE) Standard cluster named 'my-cluster' with 3 nodes in the us-central1-a zone.
Which gcloud command should you use?
Answer options:
A.
gcloud compute clusters create my-cluster --nodes=3 --zone=us-central1-a
B.
gcloud container clusters create my-cluster --num-nodes=3 --zone=us-central1-a
C.
kubectl create cluster my-cluster --nodes=3 --zone=us-central1-a
D.
gcloud gke clusters create my-cluster --num-nodes=3 --zone=us-central1-a
How to approach this question
Remember that GKE commands in the gcloud CLI fall under the 'container' command group.
Full Answer
B.gcloud container clusters create my-cluster --num-nodes=3 --zone=us-central1-a✓ Correct
The correct command to create a GKE cluster is `gcloud container clusters create [CLUSTER_NAME]`. You use `--num-nodes` to specify the size of the default node pool and `--zone` to specify the location.
Common mistakes
Using `kubectl` to try and create the cluster, or using the wrong gcloud group like `compute`.
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