
Answer-first summary for fast verification
Answer: Enable node auto-provisioning on the GKE cluster.
The correct answer is A: Enable node auto-provisioning on the GKE cluster. Node auto-provisioning allows for the creation and deletion of node pools based on the current workload requirements. This helps in minimizing costs as it only provisions resources when needed. While option D also allows autoscaling, it will maintain a minimum of one instance at all times, which could result in higher costs because it doesn't scale down to zero when not in use. Options B and C are not suitable because VerticalPodAutoscaler optimizes for Pods and preemptible VMs are not ideal for long-running, non-restartable jobs due to their potential for interruption.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your team of data scientists occasionally needs access to a Google Kubernetes Engine (GKE) cluster under your management. They require GPU resources to execute certain lengthy, non-restartable tasks. To manage this while minimizing costs, what approach should you take?
A
Enable node auto-provisioning on the GKE cluster.
B
Create a VerticalPodAutoscaler for those workloads.
C
Create a node pool with preemptible VMs and GPUs attached to those VMs.
D
Create a node pool of instances with GPUs, and enable autoscaling on this node pool with a minimum size of 1.