
Answer-first summary for fast verification
Answer: Create a GKE cluster with autoscaling enabled on the node pool. Set a minimum and maximum for the size of the node pool.
The correct answer is C. The key point is to ensure that the CLUSTER can scale as more applications are deployed. Option A, HorizontalPodAutoscaler, ensures that the number of pods can scale based on pod-level metrics such as CPU usage. While this is useful for handling the workload within the pods, it does not address the need to scale the underlying infrastructure if it reaches capacity. Option C, creating a GKE cluster with autoscaling enabled on the node pool, allows the number of nodes in the cluster to adjust automatically based on overall cluster demands. This provides the necessary infrastructure scalability as more applications are deployed, ensuring that the cluster can handle the increased load without requiring manual intervention.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company has developed a new application that consists of multiple microservices. You are planning to deploy this application on Google Kubernetes Engine (GKE) and need a solution that can automatically scale the cluster as new applications are added in the future. The goal is to minimize manual intervention each time a new application is deployed. What steps should you take to achieve this?
A
Deploy the application on GKE, and add a HorizontalPodAutoscaler to the deployment.
B
Deploy the application on GKE, and add a VerticalPodAutoscaler to the deployment.
C
Create a GKE cluster with autoscaling enabled on the node pool. Set a minimum and maximum for the size of the node pool.
D
Create a separate node pool for each application, and deploy each application to its dedicated node pool.
No comments yet.