CK.II · CKAD practice question
Which kubectl command updates the image of container web in deployment/frontend to nginx:1.27-alpine in namespace web?
Check answer and explanation
Correct answer: kubectl set image deployment/frontend web=nginx:1.27-alpine -n web
Explanation
kubectl set image / = triggers a rolling update on the target workload.
Common trap
kubectl set image / = triggers a rolling update on the target workload.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.