Bird
0
0

In Kubernetes, what happens if a container uses more memory than its memory limit?

easy📝 Conceptual Q1 of 15
Kubernetes - Resource Management
In Kubernetes, what happens if a container uses more memory than its memory limit?
AKubernetes automatically increases the memory limit.
BThe container continues running without any restrictions.
CThe container's CPU usage is throttled.
DThe container is terminated and may be restarted by Kubernetes.
Step-by-Step Solution
Solution:
  1. Step 1: Understand memory limit behavior

    The memory limit is the maximum memory a container can use before Kubernetes intervenes.
  2. Step 2: Identify the consequence of exceeding the limit

    If the container exceeds its memory limit, the system kills it to protect node stability.
  3. Final Answer:

    The container is terminated and may be restarted by Kubernetes. -> Option D
  4. Quick Check:

    Memory limit breach = Container termination [OK]
Quick Trick: Memory limit breach kills container, requests do not [OK]
Common Mistakes:
  • Confusing memory requests with limits
  • Thinking CPU is throttled on memory breach
  • Assuming Kubernetes auto-increases limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes