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?
- A.kubectl get limitrange -n shop -o wide
- B.kubectl top namespace shop
- C.kubectl auth can-i create pods -n shop --quota
- 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
- Generating a Pod manifest skeleton
- Downward API Pod IP as env
- fsGroup for shared volume ownership
- Indexed Job completion index
- Pulling and unpacking a chart locally
- Kustomize namePrefix and references
- Watching Pod status changes live
- tcpSocket probe for a non-HTTP server
- ExternalName Service for an outside host
- StatefulSet per-Pod DNS name
- Ways to consume a Secret in a container