Google Cloud Associate Cloud Engineer — Question 315
Your company has developed a new application that consists of multiple microservices. You want to deploy the application to Google Kubernetes Engine (GKE), and you want to ensure that the cluster can scale as more applications are deployed in the future. You want to avoid manual intervention when each new application is deployed. What should you do?
Answer options
- 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.
Correct answer: C
Explanation
The correct answer is C because enabling autoscaling on the node pool allows the cluster to automatically adjust the number of nodes based on the demand from the applications, ensuring efficiency and scalability. Options A and B focus on pod-level scaling rather than node scaling, which does not address the need for future application deployments. Option D is inefficient as it involves creating separate node pools for each application, which complicates management and resource allocation.