Bird
0
0

Why does Kubernetes require that the default resource limit in a LimitRange be equal to or greater than the default resource request?

hard📝 Conceptual Q10 of 15
Kubernetes - Namespaces
Why does Kubernetes require that the default resource limit in a LimitRange be equal to or greater than the default resource request?
ATo allow pods to use unlimited resources if requests are higher than limits.
BTo ensure the container's resource limit is never less than its guaranteed request, preventing scheduling conflicts.
CBecause Kubernetes does not allow resource requests to be set without limits.
DBecause default requests are ignored if limits are lower.
Step-by-Step Solution
Solution:
  1. Step 1: Understand resource request and limit relationship

    Requests guarantee minimum resources; limits cap maximum usage.
  2. Step 2: Explain why limit >= request is required

    If limit were less than request, container could request more than allowed, causing scheduling and runtime conflicts.
  3. Final Answer:

    Limit must be >= request to prevent scheduling conflicts and resource misuse. -> Option B
  4. Quick Check:

    Limit >= Request ensures resource guarantees [OK]
Quick Trick: Limits must be >= requests to avoid conflicts [OK]
Common Mistakes:
  • Thinking requests can exceed limits
  • Assuming Kubernetes ignores invalid limits
  • Believing requests are optional if limits set

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes