Bird
0
0

Which of the following is the correct syntax to create a namespace named test-ns using kubectl?

easy📝 Configuration Q3 of 15
Kubernetes - Namespaces
Which of the following is the correct syntax to create a namespace named test-ns using kubectl?
Akubectl create namespace test-ns
Bkubectl new namespace test-ns
Ckubectl make ns test-ns
Dkubectl add namespace test-ns
Step-by-Step Solution
Solution:
  1. Step 1: Recall kubectl command for namespaces

    The correct command to create a namespace is 'kubectl create namespace <name>'.
  2. Step 2: Verify syntax correctness

    Options A, C, and D use invalid kubectl verbs.
  3. Final Answer:

    kubectl create namespace test-ns -> Option A
  4. Quick Check:

    Create namespace command = B [OK]
Quick Trick: Use 'kubectl create namespace ' to create namespaces [OK]
Common Mistakes:
  • Using 'new' or 'make' instead of 'create'
  • Trying 'add' which is not a kubectl verb
  • Misspelling 'namespace'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes