An engineer needs to enable autoscaling on an existing node pool in a GKE cluster. Which command should they use?
This is the correct command because GKE exposes node-pool-level autoscaling through the container API. Running `gcloud container node-pools update NODE_POOL --cluster=CLUSTER --enable-autoscaling --min-nodes=MIN --max-nodes=MAX` turns on the cluster autoscaler for that specific node pool, allowing GKE to add or remove nodes within the configured limits based on resource demand. The command can also be used later to adjust min/max limits or disable autoscaling on existing node pools.
Why this answer
'gcloud container node-pools update' with '--enable-autoscaling' enables autoscaling. 'gcloud container clusters update' updates cluster-level settings, not node pools. 'kubectl autoscale' is for workloads, not node pools. 'gcloud compute instance-groups' is not used for GKE node pools.