Bird
0
0

You wrote this resource spec but the pod fails to start:

medium📝 Troubleshoot Q6 of 15
Kubernetes - Resource Management
You wrote this resource spec but the pod fails to start:
resources:
  requests:
    memory: 256
  limits:
    memory: 512Mi
What is the problem?
AMemory values must be integers without quotes.
BMemory request value lacks units and should be a string with units.
CRequests and limits keys are swapped.
DMemory limit value is invalid because it uses Mi units.
Step-by-Step Solution
Solution:
  1. Step 1: Check memory request format

    Memory values must include units like Mi and be strings.
  2. Step 2: Identify error in request value

    Request value '256' lacks units and quotes, causing parsing failure.
  3. Final Answer:

    Memory request value lacks units and should be a string with units. -> Option B
  4. Quick Check:

    Memory values need units and quotes [OK]
Quick Trick: Always specify memory with units and quotes [OK]
Common Mistakes:
  • Omitting units for memory values
  • Using integers without quotes
  • Swapping requests and limits keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes