Google ACE Practice Question: Ensuring Successful Operation of a Cloud Solution
Your GKE cluster has a node pool that you want to enable autoscaling on. The initial node count is 3, and you want the cluster to scale between 1 and 10 nodes. Which command should you use?
⚠ Common exam trap
ACE often tests the exact gcloud command syntax for node pool autoscaling, and candidates might confuse cluster-level and node-pool-level commands or use incorrect flag names.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
gcloud container node-pools update my-pool --cluster=my-cluster --enable-autoscaling --min-nodes 1 --max-nodes 10 --region us-central1
The correct command to enable autoscaling on an existing node pool is 'gcloud container node-pools update my-pool --cluster=my-cluster --enable-autoscaling --min-nodes 1 --max-nodes 10 --region us-central1'. This command targets the node pool specifically and uses the correct flags for minimum and maximum node counts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
gcloud container clusters update my-cluster --enable-autoscaling --min-nodes 1 --max-nodes 10 --region us-central1
Why it's wrong here
This command targets the cluster object itself with `gcloud container clusters update`, but GKE Cluster Autoscaler is configured per node pool, not at the cluster level. Even if the flags `--min-nodes` and `--max-nodes` were valid for cluster updates, they are only recognized on the `node-pools update` subcommand, so this command would fail and would not enable scaling on your existing pool.
- ✗
gcloud container clusters update my-cluster --enable-autoscaling --min-size 1 --max-size 10 --region us-central1
Why it's wrong here
This attempt also incorrectly addresses the cluster rather than the node pool, and it uses `--min-size`/`--max-size` which are not valid gcloud flags for any container operation. The correct flags are `--min-nodes` and `--max-nodes`, and they must be supplied to `gcloud container node-pools update`, not to `gcloud container clusters update`, so this command cannot enable autoscaling.
- ✓
gcloud container node-pools update my-pool --cluster=my-cluster --enable-autoscaling --min-nodes 1 --max-nodes 10 --region us-central1
Why this is correct
This is the correct command because autoscaling is a node-pool-level feature. It uses `gcloud container node-pools update`, points at the specific pool with `--cluster=my-cluster`, and enables the Cluster Autoscaler with the valid `--enable-autoscaling` flag. The `--min-nodes 1 --max-nodes 10` range constrains the pool size, and `--region us-central1` correctly specifies the regional control plane where the cluster lives.
- ✗
gcloud container node-pools update my-pool --cluster=my-cluster --autoscaling --min 1 --max 10 --region us-central1
Why it's wrong here
Although this command correctly targets the node pool with `node-pools update` and specifies the cluster, it uses the wrong boolean flag `--autoscaling`. The gcloud CLI expects the explicit `--enable-autoscaling` flag to turn on autoscaling. Additionally, `--min` and `--max` are not recognized; the proper parameters are `--min-nodes` and `--max-nodes`, so this command would be rejected and leave the pool unmodified.
Go deeper
Related to this question
Learn chapter
Artifact Registry and Container Management
Key term
Container
A container is a lightweight, standalone software package that includes everything needed to run an application, such as code, runtime, system tools, and libraries.
Key term
Node pool
A node pool is a group of virtual machines (nodes) within a container orchestration cluster that share the same configuration, such as machine size, operating system, and scaling settings, allowing you to manage them as a single unit.
About these practice questions
One of 775 original ACE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.