
Answer-first summary for fast verification
Answer: Enable autoscaling on Kubernetes Engine.
Enabling autoscaling on Kubernetes Engine is the correct choice because GKE’s cluster autoscaler automatically adjusts the number of nodes in a node pool based on workload demands. This ensures that as traffic increases, additional nodes are added to the cluster, and DaemonSets automatically deploy pods to these new nodes, adhering to the one-Pod-per-node model. Other options like Horizontal Pod Autoscaling are not suitable for Daemon Sets due to their one-Pod-per-node constraint, and creating another cluster or upgrading machine types does not meet the requirement for automatic scaling. References: [GKE Cluster Autoscaler](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler), [DaemonSets](https://cloud.google.com/kubernetes-engine/docs/concepts/daemonset), [Machine Types](https://cloud.google.com/compute/docs/machine-types).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your application, deployed in a GKE Cluster using Daemon Sets, is experiencing high traffic and needs to automatically scale. What is the best approach to ensure your cluster can handle the increased demand by scaling up and down automatically?
A
Create another identical Kubernetes workload and distribute traffic between the two workloads.
B
Enable Horizontal Pod Autoscaling for the Kubernetes deployment.
C
Perform a rolling update to upgrade the machine type from n1-standard-2 to n1-standard-4.
D
Enable autoscaling on Kubernetes Engine.
No comments yet.