CK.I · CKAD practice question
Which imperative kubectl command generates a Pod YAML manifest named cache-pod using image redis:7.4 without creating the Pod in the cluster?
Check answer and explanation
Correct answer: kubectl run cache-pod --image=redis:7.4 --dry-run=client -o yaml
Explanation
kubectl run with --image, --dry-run=client, and -o yaml outputs a client-validated Pod manifest to stdout without persisting it.
Common trap
kubectl run with --image, --dry-run=client, and -o yaml outputs a client-validated Pod manifest to stdout without persisting it.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.