Medium1 markMultiple Choice

GCP ACE · Question 34 · Domain 4.2: Managing GKE resources

Your GKE cluster is running out of capacity. You need to permanently increase the number of nodes in an existing node pool named 'pool-1' from 3 to 5.

Which TWO methods can you use to achieve this? (Select TWO)

Answer options:

A.

Use the Cloud Console to edit the node pool and change the size to 5.

B.

Run the command: kubectl scale node-pool pool-1 --replicas=5

C.

Run the command: gcloud container clusters resize [CLUSTER_NAME] --node-pool pool-1 --num-nodes 5

D.

Create a new node pool with 5 nodes and delete the old one.

E.

Run the command: gcloud compute instance-groups managed resize pool-1 --size 5

How to approach this question

Identify the correct tools (Console and gcloud container) for managing GKE infrastructure.

Full Answer

Use the Cloud Console to edit the node pool and change the size to 5., Run the command: gcloud container clusters resize [CLUSTER_NAME] --node-pool pool-1 --num-nodes 5
Node pools are managed by GCP, not by Kubernetes itself. Therefore, you must use GCP tools (Cloud Console or `gcloud container clusters resize`) to change the number of nodes. Using `kubectl` will not work, and modifying the underlying Compute Engine MIG directly can break the cluster.

Common mistakes

Trying to use `kubectl` to scale nodes, or trying to modify the underlying Compute Engine MIG directly.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam