PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #197
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #197: Real Exam Question with Answer & Explanation
The correct answer is D: Increase the memory resource limit of the microservice.. The OOMKilled (Out of Memory Killed) status indicates that the microservice is exceeding its allocated memory limit, causing the Kubernetes scheduler to terminate the Pods. Increasing the memory resource limit allows the Pods to consume more memory, preventing them from being kil
Question
You manage a retail website for your company. The website consists of several microservices running in a GKE Standard node pool with node autoscaling enabled. Each microservice has resource limits and a Horizontal Pod Autoscaler configured. During a busy period, you receive alerts for one of the microservices. When you check the Pods, half of them have the status OOMKilled, and the number of Pods is at the minimum autoscaling limit. You need to resolve the issue. What should you do?
Options
- AUpdate the node pool to use a machine type with more memory.
- BIncrease the maximum number of nodes in the node pool.
- CIncrease the maximum replica limit of the Horizontal Pod Autoscaler.
- DIncrease the memory resource limit of the microservice.
Explanation
The OOMKilled (Out of Memory Killed) status indicates that the microservice is exceeding its allocated memory limit, causing the Kubernetes scheduler to terminate the Pods. Increasing the memory resource limit allows the Pods to consume more memory, preventing them from being killed. Since the Horizontal Pod Autoscaler is at the minimum replica limit, scaling up replicas or increasing node resources will not address the root cause. Adjusting memory limits ensures the application remains stable during high-demand periods.
Topics
Community Discussion
No community discussion yet for this question.