GCP Associate Cloud Engineer Practice Question 76: GKE Node Pool Surge Upgrade

Google Cloud Associate Cloud Engineer · Test 8 · question 6 of 10

Google Kubernetes Enginehard

A GKE node pool has 5 nodes and runs a latency sensitive service. You need to upgrade the node pool so that it always keeps at least 4 of the 5 nodes serving traffic during the upgrade, while also allowing new nodes to be created in advance so pods can migrate quickly. Which command achieves this?

Select one answer
Show answer and explanation

Answer:

  • B. gcloud container node-pools update pool-1 --cluster=cluster-1 --max-surge-upgrade=1 --max-unavailable-upgrade=0

max-surge-upgrade=1 tells GKE to create one extra surge node before draining an existing node, so new capacity exists ahead of time for pods to migrate onto, and max-unavailable-upgrade=0 ensures no existing node is taken offline until its replacement is ready, keeping all 5 original nodes serving traffic throughout, which satisfies the at least 4 of 5 requirement with margin.

Option A sets surge to 0, so GKE upgrades in place without creating extra nodes first, which means a node is drained and taken out of service before any replacement exists. Capacity stays at 4 of 5, but no new node is ready ahead of time, so the evicted pods have nowhere to migrate quickly. Option C sets both values to 0, which blocks the upgrade entirely since GKE cannot proceed without creating a surge node or making a node unavailable. Option D only turns on cluster auto upgrade for future scheduled maintenance and does not control how many nodes surge or become unavailable during a given upgrade operation.

Reference: Configure node upgrade strategies

Practice Test 8 ›

Study guides for Google Cloud Associate Cloud Engineer