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

CKA study material · question 368 of 1000

When may the -c flag be omitted from kubectl logs or kubectl exec?

  1. When the Pod is a static Pod
  2. When the Pod holds only one container
  3. Never; it is always required
  4. When the Pod has an ephemeral container
Show the answer

Answer: B. When the Pod holds only one container

The -c flag picks a container in a multi-container Pod and can be omitted for a single-container Pod.

Source: Debug Running Pods (Kubernetes) — Debugging with container exec

Challenge yourself on this topic → Study as cards