Bird
0
0

Why is it important to set both memory requests and limits in Kubernetes pods?

hard📝 Conceptual Q10 of 15
Kubernetes - Resource Management
Why is it important to set both memory requests and limits in Kubernetes pods?
ARequests increase CPU allocation; limits reduce network usage.
BRequests ensure scheduling and prevent eviction; limits prevent resource overuse.
CRequests and limits are optional and have no real effect.
DRequests limit pod restarts; limits guarantee pod uptime.
Step-by-Step Solution
Solution:
  1. Step 1: Understand role of memory requests

    Requests reserve resources so the pod can be scheduled and avoid eviction under pressure.
  2. Step 2: Understand role of memory limits

    Limits cap the maximum memory a pod can use to protect node stability.
  3. Final Answer:

    Requests ensure scheduling and prevent eviction; limits prevent resource overuse. -> Option B
  4. Quick Check:

    Requests = scheduling; Limits = usage cap [OK]
Quick Trick: Requests reserve; limits cap usage to protect nodes [OK]
Common Mistakes:
  • Confusing memory with CPU roles
  • Thinking requests and limits are optional
  • Misunderstanding eviction and restart causes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes