Bird
0
0

You want to ensure a pod can burst CPU usage up to 2 CPUs but is guaranteed at least 1 CPU. How should you set the CPU requests and limits?

hard📝 Workflow Q8 of 15
Kubernetes - Resource Management
You want to ensure a pod can burst CPU usage up to 2 CPUs but is guaranteed at least 1 CPU. How should you set the CPU requests and limits?
Arequests: cpu: "2" and limits: cpu: "1"
Brequests: cpu: "0.5" and limits: cpu: "1"
Crequests: cpu: "1" and limits: cpu: "2"
Drequests: cpu: "2" and limits: cpu: "2"
Step-by-Step Solution
Solution:
  1. Step 1: Define CPU request and limit roles

    Request is minimum guaranteed CPU, limit is max allowed CPU usage.
  2. Step 2: Match requirements to values

    To guarantee 1 CPU and allow bursting to 2 CPUs, set request to "1" and limit to "2".
  3. Final Answer:

    requests: cpu: "1" and limits: cpu: "2" -> Option C
  4. Quick Check:

    Request = guaranteed, Limit = max burst [OK]
Quick Trick: Request ≤ guaranteed CPU, Limit ≥ max burst CPU [OK]
Common Mistakes:
  • Swapping request and limit values
  • Setting limit lower than request
  • Using fractional values incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes