CK.V · CKAD practice question
Which command temporarily forwards local port 9090 on your workstation to port 8080 on Pod metrics-0 in namespace monitoring?
Check answer and explanation
Correct answer: kubectl port-forward pod/metrics-0 9090:8080 -n monitoring
Explanation
kubectl port-forward pod/ : -n forwards local traffic to the target Pod port.
Common trap
kubectl port-forward pod/ : -n forwards local traffic to the target Pod port.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.