Google Associate Cloud Engineer Question 118
Select 3Google Cloud PlatformYou are tasked with deploying a Google Kubernetes Engine (GKE) cluster that needs to support both CPU-intensive and memory-intensive workloads. Which configurations should you consider to efficiently manage resources and optimize performance?
- A
Use node pools with different machine types for CPU-intensive and memory-intensive workloads.
- B
Configure vertical pod autoscaling to adjust resources based on workload demand.
- C
Disable horizontal pod autoscaling to maintain a consistent number of replicas.
- D
Implement a single node pool with a balanced machine type for all workloads.
- E
Set up taints and tolerations to ensure workload scheduling on appropriate nodes.
Show answer and explanation
Correct answers: A, B, E
Explanation
To efficiently manage resources and optimize performance in a GKE cluster with mixed workload types, it's important to use node pools with appropriate machine types, enable vertical pod autoscaling for dynamic resource allocation, and leverage taints and tolerations for workload scheduling. These configurations ensure that each workload runs in an optimized environment, improving resource utilization and application performance.
- A. Correct.
Using node pools with different machine types allows you to tailor the resources of each pool to the specific needs of CPU-intensive and memory-intensive workloads, optimizing resource allocation and performance.
- B. Correct.
Vertical pod autoscaling adjusts the CPU and memory requests for pods based on observed usage, ensuring that workloads have the resources they need without manual intervention.
- C. Incorrect.
Disabling horizontal pod autoscaling is not recommended as it helps in maintaining application performance by automatically adjusting the number of pod replicas based on traffic demand.
- D. Incorrect.
A single node pool with a balanced machine type may not efficiently serve both CPU-intensive and memory-intensive workloads, leading to suboptimal resource utilization.
- E. Correct.
Taints and tolerations allow you to control which workloads run on which nodes, ensuring that specific workloads are scheduled on nodes best suited for their resource requirements.