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 'prod-cluster' in the 'us-central1-a' zone with 3 nodes.
Which gcloud command should you use?
You need to deploy a new Google Kubernetes Engine (GKE) standard cluster named 'prod-cluster' in the 'us-central1-a' zone with 3 nodes.
Which gcloud command should you use?
Answer options:
A.
gcloud compute clusters create prod-cluster --zone=us-central1-a --nodes=3
B.
gcloud container clusters create prod-cluster --zone=us-central1-a --num-nodes=3
C.
gcloud kubernetes clusters create prod-cluster --zone=us-central1-a --num-nodes=3
D.
kubectl create cluster prod-cluster --zone=us-central1-a --nodes=3
How to approach this question
Recall the gcloud command group for GKE.
Full Answer
B.gcloud container clusters create prod-cluster --zone=us-central1-a --num-nodes=3✓ Correct
To provision GKE infrastructure, you use the `gcloud container clusters create` command. The `--num-nodes` flag specifies the initial number of nodes per zone.
Common mistakes
Using `kubectl` to try and create the cluster, or using `gcloud kubernetes`.
Practice the full GCP Associate Cloud Engineer Practice Exam 4
50 questions · hints · full answers · grading
More questions from this exam
Q01You have recently joined a new team and need to set up a new Google Cloud project for a developme...EasyQ02Your company uses Google Workspace. You need to grant a new developer, Alice, the ability to view...MediumQ03You have created a new GCP project and want to deploy a Compute Engine instance. However, when yo...MediumQ04Your startup has a strict monthly cloud budget of $500. You want to be notified via email when yo...EasyQ05Your finance team wants to analyze Google Cloud costs using standard SQL and build custom dashboa...Medium
Expert