Practice Test 1 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
A GKE cluster was created with 4 nodes initially and after looking at the few months of monitoring report you realized that cluster is underutilized. You plan to reduce the number of nodes to 3 to save the cost. Which gcloud command will help you to do that?
A. gcloud container clusters whizlabs-cluster –new-size 3
B. gcloud container clusters resize whizlabs-cluster –num-nodes=3
C. gcloud container cluster resize whizlabs-cluster –size 3
D. gcloud container cluster update whizlabs-cluster –size 3
Explanation:
Correct Answer – B
The right way to update the number of nodes within a GKE cluster is via gcloud container clusters resize whizlabs-cluster –num-nodes=3. Hence, B is the correct answer.
Options A, C, and D are incorrect because these are invalid commands to update cluster size.
Reference:
https://cloud.google.com/sdk/gcloud/reference/container/clusters/resize
Comments are closed, but trackbacks and pingbacks are open.