Google Cloud Professional Cloud Developer — Question 319
You have an application running on a GKE cluster. Your application has a stateless web frontend, and has a high-availability requirement. Your cluster is set to automatically upgrade, and some of your nodes need to be drained. You need to ensure that the application has a serving capacity of 10% of the Pods prior to the drain. What should you do?
Answer options
- A. Configure a Vertical Pod Autoscaler (VPA) to increase the memory and CPU by 10% and set the updateMode to Auto.
- B. Configure the Pod replica count to be 10% more than the current replica count.
- C. Configure a Pod Disruption Budget (PDB) value to have a minAvailable value of 10%.
- D. Configure the Horizontal Pod Autoscaler (HPA) maxReplicas value to 10% more than the current replica count.
Correct answer: B
Explanation
The correct answer is B because increasing the Pod replica count ensures that there are enough Pods available to meet the 10% requirement during the node drain. Option A does not address the number of Pods available, while C focuses on minimum availability without guaranteeing the required serving capacity. Option D pertains to scaling but does not ensure that the specific number of Pods remains available before draining.