Bird
0
0

In a Kubernetes pod spec, you set:

medium📝 Troubleshoot Q6 of 15
Kubernetes - Resource Management
In a Kubernetes pod spec, you set:
resources:
  requests:
    cpu: "300m"
  limits:
    cpu: "200m"

What issue will this cause?
AThe pod will be scheduled with 200m CPU guaranteed.
BThe CPU request is higher than the CPU limit, which is invalid.
CThe pod can use up to 300m CPU without restrictions.
DThis configuration is valid and will work as expected.
Step-by-Step Solution
Solution:
  1. Step 1: Understand CPU requests and limits

    CPU requests specify the guaranteed CPU, while limits specify the maximum CPU allowed.
  2. Step 2: Analyze the given values

    The request is 300m, but the limit is 200m, which means the guaranteed CPU is higher than the maximum allowed.
  3. Final Answer:

    The CPU request cannot be higher than the CPU limit. -> Option B
  4. Quick Check:

    Request ≤ Limit? No -> [OK]
Quick Trick: CPU request must never exceed CPU limit [OK]
Common Mistakes:
  • Setting CPU limit lower than CPU request
  • Assuming request and limit can be any values independently
  • Confusing CPU requests with CPU limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes