CK.III · CKAD practice question
You need to print all Pods in namespace payments sorted by creation timestamp with custom columns showing NAME and STATUS. Which command works?
Check answer and explanation
Correct answer: kubectl get pods -n payments --sort-by=.metadata.creationTimestamp -o custom-columns=NAME:.metadata.name,STATUS:.status.phase
Explanation
kubectl get supports --sort-by with JSONPath expressions and -o custom-columns to format exact output columns.
Common trap
kubectl get supports --sort-by with JSONPath expressions and -o custom-columns to format exact output columns.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.