Bird
0
0

Given this ResourceQuota YAML applied to namespace 'test':

medium📝 Command Output Q4 of 15
Kubernetes - Namespaces
Given this ResourceQuota YAML applied to namespace 'test':
apiVersion: v1
kind: ResourceQuota
metadata:
  name: test-quota
  namespace: test
spec:
  hard:
    cpu: "4"
    memory: 8Gi
    pods: "10"
What happens if a pod requesting 5 CPUs is created in 'test' namespace?
APod creation fails due to exceeding CPU quota
BPod is created successfully, CPU quota ignored
CPod is created but CPU usage is throttled
DPod creation fails due to exceeding memory quota
Step-by-Step Solution
Solution:
  1. Step 1: Analyze ResourceQuota limits

    The quota limits CPU to 4 cores total in the namespace.
  2. Step 2: Check pod CPU request against quota

    A pod requesting 5 CPUs exceeds the 4 CPU limit, so creation is denied.
  3. Final Answer:

    Pod creation fails due to exceeding CPU quota -> Option A
  4. Quick Check:

    Pod CPU request > quota = creation fails = A [OK]
Quick Trick: Pod CPU request must not exceed namespace CPU quota [OK]
Common Mistakes:
  • Assuming pod is created but throttled
  • Ignoring CPU quota and assuming success
  • Confusing CPU quota with memory quota

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes