Google Cloud Professional Cloud Architect — Question 244
Your company uses Google Kubernetes Engine (GKE) as a platform for all workloads. Your company has a single large GKE cluster that contains batch, stateful, and stateless workloads. The GKE cluster is configured with a single node pool with 200 nodes. Your company needs to reduce the cost of this cluster but does not want to compromise availability. What should you do?
Answer options
- A. Create a second GKE cluster for the batch workloads only. Allocate the 200 original nodes across both clusters.
- B. Configure CPU and memory limits on the namespaces in the cluster. Configure all Pods to have a CPU and memory limits.
- C. Configure a HorizontalPodAutoscaler for all stateless workloads and for all compatible stateful workloads. Configure the cluster to use node auto scaling.
- D. Change the node pool to use preemptible VMs.
Correct answer: C
Explanation
The correct answer is C because configuring a HorizontalPodAutoscaler allows for dynamic scaling of workloads based on demand, which helps optimize resource usage and reduce costs. Options A and B may not effectively reduce costs while preserving availability, and option D, while potentially cheaper, introduces the risk of node unavailability due to the transient nature of preemptible VMs.