CK.III · CKAD practice question

A distroless container image has no shell (/bin/sh) or debugging utilities installed, and you need to inspect live processes and network connections inside a running Pod named checkout-api in namespace shop. Which command attaches an interactive troubleshooting container?

Choose one answer
Check answer and explanation

Correct answer: kubectl debug -it checkout-api -n shop --image=nicolaka/netshoot --target=checkout-api

Explanation

kubectl debug creates an ephemeral container inside the Pod using a debug image (such as netshoot), and --target shares the target container's process namespace.

Common trap

kubectl debug creates an ephemeral container inside the Pod using a debug image (such as netshoot), and --target shares the target container's process namespace.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question