
Answer-first summary for fast verification
Answer: Set up a GKE cluster and activate autoscaling on Kubernetes Engine., Activate Horizontal Pod Autoscaling for the Kubernetes deployment.
**Correct Answers:** - **A:** Activating autoscaling on Kubernetes Engine for a GKE cluster allows the cluster autoscaler to adjust the number of nodes in a node pool based on workload demands, automating node addition or removal within specified limits. - **E:** Horizontal Pod Autoscaling adjusts the number of Pods in a Kubernetes deployment in response to CPU or memory usage, or custom metrics, ensuring efficient resource utilization. **Incorrect Options:** - **C:** Enabling autoscaling on the instance group of the cluster is incorrect because GKE's cluster autoscaler operates independently of Compute Engine autoscaling for managed instance groups. - **D:** Manually adding Compute Engine instances to an unmanaged instance group and relying on a load balancer for autoscaling is not feasible with GKE, as unmanaged instance groups do not support autoscaling and GKE manages node pools with specific configurations. - **B:** Installing Kubernetes manually on Compute Engine instances and expecting Kubernetes to manage additional instances is incorrect because GKE manages the master node lifecycle and node pools, not manually created instances. For more details, refer to the [GKE documentation on cluster autoscaler](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler) and [Horizontal Pod Autoscaler](https://cloud.google.com/kubernetes-engine/docs/concepts/horizontalpodautoscaler).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You've been tasked with setting up a new Kubernetes Cluster on Google Kubernetes Engine (GKE) that supports autoscaling for both worker nodes and pods. Which two actions should you take?
A
Set up a GKE cluster and activate autoscaling on Kubernetes Engine.
B
Manually create Compute Engine instances for workers and the master, install Kubernetes, and expect Kubernetes to automatically generate additional Compute Engine instances as required.
C
Establish a GKE cluster and enable autoscaling on the cluster's instance group.
D
Designate a Compute Engine instance as a worker, incorporate it into an unmanaged instance group, attach a load balancer, and depend on the load balancer to spawn additional Compute Engine instances when necessary.
E
Activate Horizontal Pod Autoscaling for the Kubernetes deployment.