Easy1 markMultiple Choice
GCP ACE · Question 22 · Domain 3.2: Deploying and implementing GKE resources
You need to create a new Google Kubernetes Engine (GKE) cluster named 'web-cluster' in the us-central1-a zone using the Cloud SDK.
Which command should you use?
You need to create a new Google Kubernetes Engine (GKE) cluster named 'web-cluster' in the us-central1-a zone using the Cloud SDK.
Which command should you use?
Answer options:
A.
gcloud compute clusters create web-cluster --zone us-central1-a
B.
gcloud container clusters create web-cluster --zone us-central1-a
C.
kubectl create cluster web-cluster --zone us-central1-a
D.
gcloud gke clusters create web-cluster --zone us-central1-a
How to approach this question
Remember the gcloud command group for GKE.
Full Answer
B.gcloud container clusters create web-cluster --zone us-central1-a✓ Correct
gcloud container clusters create web-cluster --zone us-central1-a
In the Google Cloud SDK, commands related to Google Kubernetes Engine (GKE) are located under the `gcloud container` group. The command to create a cluster is `gcloud container clusters create [CLUSTER_NAME]`.
Common mistakes
Choosing `kubectl create cluster`. `kubectl` interacts with the Kubernetes API server *after* the cluster exists. `gcloud` interacts with the GCP API to provision the infrastructure.
Practice the full GCP Associate Cloud Engineer Practice Exam 7
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 Cloud S...EasyQ02Your company is migrating to Google Cloud and wants to manage user identities centrally. They cur...MediumQ03You have just created a new Google Cloud project and want to deploy a containerized application u...MediumQ04Your finance team wants to perform complex SQL queries on your Google Cloud billing data to analy...MediumQ05You are managing a development project in Google Cloud. You want to ensure that you are notified ...Easy
Expert