Study. uk . com
  1. Home
  2. All questions
  3. Question 863

CKA study material · question 863 of 1000

Which two situations call for an ephemeral debug container rather than kubectl exec? Choose two.

  1. The container has already crashed
  2. The Pod has more than one container
  3. The image is distroless and has no shell
  4. The Pod is in a different namespace
Show the answer

Answer: A. The container has already crashed
C. The image is distroless and has no shell

Ephemeral containers exist for exactly the cases exec cannot handle: a crashed container, or an image with no debugging utilities. Multiple containers and other namespaces are handled with flags.

Source: Debug Running Pods (Kubernetes) — Debugging with an ephemeral debug container

Challenge yourself on this topic → Study as cards