Bird
0
0

A pod spec has the following memory resources:

medium📝 Troubleshoot Q7 of 15
Kubernetes - Resource Management
A pod spec has the following memory resources:
resources:
  requests:
    memory: "512Mi"
  limits:
    memory: "256Mi"
Why will Kubernetes reject this pod?
ABecause the pod is missing CPU resource specifications.
BBecause the memory limit is too high for the node.
CBecause the memory request is too low for the container to start.
DBecause the memory request is greater than the memory limit, which is invalid.
Step-by-Step Solution
Solution:
  1. Step 1: Compare request and limit

    Memory request must not exceed memory limit.
  2. Step 2: Given values

    Request is 512Mi, limit is 256Mi, which violates the rule.
  3. Step 3: Kubernetes validation

    Kubernetes rejects pods where request > limit.
  4. Final Answer:

    Because the memory request is greater than the memory limit, which is invalid. -> Option D
  5. Quick Check:

    Request ≤ Limit is mandatory [OK]
Quick Trick: Memory request cannot exceed memory limit [OK]
Common Mistakes:
  • Setting request higher than limit
  • Ignoring validation errors
  • Assuming CPU specs cause rejection

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes