CKA Troubleshooting Practice Question
A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?
⚠ Common exam trap
Many exam-takers confuse CPU and memory resource management, incorrectly assuming that increasing CPU requests (option B) will resolve memory exhaustion, or they may opt for a superficial fix like recreating the pod (option C) without addressing the underlying resource limit.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Increase the memory limit in the pod's container resource specification
The 'OOMKilled' status indicates the container was terminated because it exceeded its memory limit. The most appropriate action is to increase the memory limit in the pod's container resource specification, allowing the container to use more memory without being killed by the Out-of-Memory (OOM) killer. This directly addresses the root cause of the CrashLoopBackOff state.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Delete the namespace and redeploy all workloads
Why it's wrong here
Deleting the entire namespace is an extremely destructive action that would eradicate all deployed resources within it, including other potentially healthy applications, services, and configurations. This drastic measure would cause significant downtime and data loss across the entire namespace, which is entirely disproportionate and inappropriate for resolving a memory issue affecting a single pod.
- ✗
Increase the CPU request for the container
Why it's wrong here
The `OOMKilled` status explicitly indicates an Out-Of-Memory event, meaning the container exhausted its allocated RAM. CPU requests and limits govern the allocation of processor time, which is a distinct resource from memory. Increasing the CPU request will not provide the container with more memory and therefore will have no effect on preventing termination due to memory exhaustion.
- ✗
Delete and recreate the pod to clear the crash loop
Why it's wrong here
Simply deleting and recreating the pod will cause Kubernetes to reschedule it using the exact same problematic configuration, including the insufficient memory limits. The container will inevitably encounter the same `OOMKilled` error upon startup or during operation, leading it right back into a `CrashLoopBackOff` state without addressing the underlying resource constraint.
- ✓
Increase the memory limit in the pod's container resource specification
Why this is correct
An `OOMKilled` event signifies that the container exceeded its configured memory limit, prompting the Linux kernel's Out-Of-Memory killer to terminate the process. By increasing the `memory.limits` within the pod's container resource specification, we provide the application with a larger memory ceiling. This directly addresses the root cause, allowing the container to consume the necessary RAM without being terminated, thereby resolving the `CrashLoopBackOff`.
Visual reference
Go deeper
Related to this question
Learn chapter
Troubleshooting Cluster and Node Issues
Key term
Pod Failure Troubleshooting
Pod failure troubleshooting is the process of identifying and resolving issues that cause Kubernetes pods to crash, restart, or become unavailable.
Key term
kubectl Command Reference
kubectl is the command-line tool used to interact with and manage Kubernetes clusters by sending commands to the Kubernetes API.
About these practice questions
One of 302 original CKA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CKA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKA exam.