Bird
0
0

You observe this event in a pod's logs:

medium📝 Command Output Q4 of 15
Kubernetes - Troubleshooting
You observe this event in a pod's logs:
Warning  OOMKilled  kubelet  Container "web" was terminated due to exceeding memory limit
What is the most probable cause of the pod restarting?
AThe container crashed due to an application error
BThe container exceeded its configured memory limit and was killed by the system
CThe pod was deleted manually by an administrator
DThe container image failed to download
Step-by-Step Solution
Solution:
  1. Step 1: Analyze event message

    The event clearly states the container was terminated due to memory limit exceeded.
  2. Step 2: Understand restart cause

    When a container is OOMKilled, Kubernetes restarts it automatically unless configured otherwise.
  3. Final Answer:

    The container exceeded its configured memory limit and was killed by the system -> Option B
  4. Quick Check:

    OOMKilled event means memory limit breach [OK]
Quick Trick: OOMKilled event means memory limit exceeded [OK]
Common Mistakes:
  • Assuming restart due to application crash
  • Thinking pod was manually deleted
  • Confusing with image pull failures

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes