CertKeen

Certified Kubernetes Application Developer (CKAD) · Free practice question 12 of 12

Checking quota usage in a namespace

Pods at Truro Outfitters are rejected for exceeding quota. A developer wants to see, for each tracked resource in namespace `shop`, how much is used against the hard limit. Which command shows this?

  1. A.kubectl get limitrange -n shop -o wide
  2. B.kubectl top namespace shop
  3. C.kubectl auth can-i create pods -n shop --quota
  4. D.kubectl describe resourcequota -n shop
Show answer and explanation

Correct answer: D. kubectl describe resourcequota -n shop

Why: kubectl describe resourcequota lists each resource with its Used and Hard values, showing what remains. kubectl top does not report namespaces or quotas, a LimitRange holds per-object defaults and bounds rather than aggregate usage, and auth can-i checks RBAC and has no --quota flag.

More free Certified Kubernetes Application Developer (CKAD) questions