
Answer-first summary for fast verification
Answer: Increase the memory resource limit of the microservice.
The issue described involves Pods being OOMKilled, which means they are being terminated because they exceeded their memory limits. This is a clear indication that the current memory resource limits for the microservice are insufficient for its workload during peak times. Increasing the memory resource limit (Option D) would directly address this issue by allowing the Pods to use more memory before being terminated. While options A, B, and C might indirectly help by providing more resources or allowing more Pods to run, they do not directly address the root cause of the OOMKilled status, which is the insufficient memory limit for the microservice. Therefore, the most effective solution is to increase the memory resource limit of the microservice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You oversee a retail website composed of multiple microservices deployed in a GKE Standard node pool with node autoscaling enabled. Each microservice has defined resource limits and a Horizontal Pod Autoscaler (HPA) configured. During peak traffic, alerts trigger for one microservice. Upon investigation, half of its Pods show an OOMKilled status, and the Pod count remains at the minimum HPA limit. How should you address this issue?
A
Update the node pool to use a machine type with more memory.
B
Increase the maximum number of nodes in the node pool.
C
Increase the maximum replica limit of the Horizontal Pod Autoscaler.
D
Increase the memory resource limit of the microservice.
No comments yet.