Kubernetes and Cloud Native Associate (KCNA) — Question 103
Which of the following sentences is true about namespaces in Kubernetes?
Answer options
- A. You can create a namespace within another namespace in Kubernetes.
- B. You can create two resources of the same kind and name in a namespace.
- C. The default namespace exists when a new cluster is created.
- D. All the objects in the cluster are namespaced by default.
Correct answer: C
Explanation
The correct answer is C because a default namespace is indeed created automatically when a new Kubernetes cluster is set up. Option A is incorrect as Kubernetes does not support nesting namespaces. Option B is wrong because resource names must be unique within a namespace, and option D is misleading since not all objects are namespaced; some are in the default namespace.