Bird
0
0

You want to limit both CPU and memory usage per namespace and also restrict the number of persistent volume claims (PVCs). Which ResourceQuota spec snippet correctly enforces this?

hard📝 Workflow Q8 of 15
Kubernetes - Namespaces
You want to limit both CPU and memory usage per namespace and also restrict the number of persistent volume claims (PVCs). Which ResourceQuota spec snippet correctly enforces this?
Ahard: cpuLimit: "8" memLimit: "16Gi" persistentVolumeClaims: "5"
Bhard: cpu: "8" memory: 16Gi persistentvolumeclaims: "5"
Chard: cpu: "8" memory: 16Gi pvcCount: "5"
Dhard: cpu: 8 memory: 16GB pvc: 5
Step-by-Step Solution
Solution:
  1. Step 1: Use correct keys and value formats

    Keys must be 'cpu', 'memory', and 'persistentvolumeclaims' with quoted string values.
  2. Step 2: Validate other options

    Options A, B, C use incorrect keys or units (e.g., '16GB' invalid, 'pvcCount' invalid).
  3. Final Answer:

    hard: cpu: "8" memory: 16Gi persistentvolumeclaims: "5" -> Option B
  4. Quick Check:

    Correct keys and quoted values = D [OK]
Quick Trick: Use exact keys and quote resource quantities in ResourceQuota [OK]
Common Mistakes:
  • Using wrong keys like pvcCount or cpuLimit
  • Not quoting numeric values
  • Using invalid memory units like GB

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes