Bird
0
0

Why is it important to use the -- separator before the command in kubectl exec?

hard📝 Conceptual Q10 of 15
Kubernetes - kubectl Essential Commands
Why is it important to use the -- separator before the command in kubectl exec?
ATo separate kubectl flags from the command and its arguments
BTo indicate the end of the command
CTo specify the container name
DTo start an interactive session
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of -- separator

    The -- tells kubectl that what follows is the command to run inside the container, not kubectl flags.
  2. Step 2: Eliminate other options

    It does not specify container name or start interactive session; it separates flags from command.
  3. Final Answer:

    To separate kubectl flags from the command and its arguments -> Option A
  4. Quick Check:

    -- separates kubectl flags from container command [OK]
Quick Trick: Use -- to separate kubectl flags from container command [OK]
Common Mistakes:
  • Thinking -- ends the command
  • Confusing -- with container name flag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes