Courseiva
mediumMultiple Choice

Google ACE Practice Question: A team needs a GKE cluster named 'prod-cluster'…

A team needs a GKE cluster named 'prod-cluster' in the us-central1 region with cluster autoscaling enabled, scaling between 3 and 10 nodes. Which command achieves this?

⚠ Common exam trap

Google Cloud often tests the distinction between `gcloud container clusters` (correct for GKE) and `gcloud kubernetes clusters` (invalid), as well as the requirement to use `--enable-autoscaling` with separate `--min-nodes` and `--max-nodes` flags instead of shorthand syntax like `--autoscale=3:10`.

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 clusters create prod-cluster --region=us-central1 --num-nodes=3 --enable-autoscaling --min-nodes=3 --max-nodes=10

It uses the `gcloud container clusters create` command with the `--enable-autoscaling` flag, which enables cluster autoscaler for the GKE cluster. The `--min-nodes=3` and `--max-nodes=10` flags define the scaling range, while `--num-nodes=3` sets the initial node count, ensuring the cluster starts with 3 nodes and can scale up to 10 as needed. The `--region=us-central1` specifies a regional cluster, which is appropriate for production workloads requiring high availability across zones.

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 create prod-cluster --region=us-central1 --num-nodes=3 --enable-autoscaling --min-nodes=3 --max-nodes=10

    Why this is correct

    This is the correct command. `--region=us-central1` creates a regional GKE cluster that spans multiple zones within the region for high availability, while `--num-nodes=3` sets the initial node count. The `--enable-autoscaling` flag activates the node autoscaler, and `--min-nodes=3` / `--max-nodes=10` define the scaling boundaries, allowing the cluster to grow up to 10 nodes and shrink back to 3 based on workload demand.

  • ✗

    gcloud kubernetes clusters create prod-cluster --location=us-central1 --autoscale=3:10

    Why it's wrong here

    The command group `gcloud kubernetes` does not exist; GKE clusters are managed under `gcloud container`. Additionally, `--autoscale=3:10` is not a valid flag; the correct syntax uses `--enable-autoscaling` along with `--min-nodes` and `--max-nodes`. The `--location` flag is also not recognized for this command—you must specify either `--region` or `--zone`.

  • ✗

    gcloud container cluster create prod-cluster --zone=us-central1 --scaling=3-10

    Why it's wrong here

    This command fails because the verb is singular (`cluster create`) instead of the required `clusters create`. It also incorrectly uses `--zone=us-central1`—`us-central1` is a region, not a zone; a valid zone would look like `us-central1-a`. Furthermore, `--scaling=3-10` is not a supported flag; autoscaling is configured with `--enable-autoscaling`, `--min-nodes`, and `--max-nodes`.

  • ✗

    kubectl create cluster prod-cluster --region=us-central1 --autoscale --min=3 --max=10

    Why it's wrong here

    `kubectl` is a client tool for managing resources inside an already-created Kubernetes cluster (e.g., Deployments, Services, Pods); it cannot create or manage GKE cluster infrastructure. To provision a GKE cluster, you must use `gcloud container clusters create`. Additionally, flags like `--autoscale`, `--min`, and `--max` are not valid `kubectl` flags for cluster creation—they belong to the `gcloud` command.

About these practice questions

Courseiva writes every ACE question from scratch — 775 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.