
Answer-first summary for fast verification
Answer: Use gcloud container clusters resize with the desired number of nodes.
The correct answer is **C** because the Kubernetes cluster can be resized using the `gcloud` command. Specifically, the command `gcloud container clusters resize [CLUSTER_NAME] –node-pool [POOL_NAME] –size [SIZE]` is used for this purpose. Option **B** is incorrect as the `kubectl` command cannot resize the cluster. Options **A** and **D** are also incorrect because manually editing the managed instance groups is not the recommended approach for resizing a Kubernetes cluster.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your Kubernetes cluster, currently with a single node-pool, is experiencing high traffic and requires expansion by adding a node. What is the correct approach to achieve this?
A
Edit the managed instance group of the cluster and enable autoscaling.
B
Use kubectl container clusters resize with the desired number of nodes.
C
Use gcloud container clusters resize with the desired number of nodes.
D
Edit the managed instance group of the cluster and increase the number of VMs by 1.
No comments yet.