VMware Digital Workspace Fundamentals — Question 2
Which are three valid ways to specify a Namespace when creating an object in Kubernetes? (Choose three.)
Answer options
- A. Specifying the Namespace in a ConfigMap
- B. Specifying the Namespace in the container image for the object provided to “kubectl apply”
- C. Specifying the Namespace in the context of the kubectl configuration file
- D. Specifying the Namespace as an environment variable
- E. Specifying the Namespace in the manifest file for the object provided to “kubectl apply”
- F. Using the “--namespace” option when issuing a kubectl command
Correct answer: B, C, F
Explanation
The correct methods for specifying a Namespace include using the context in the kubectl configuration file, applying the '--namespace' option during a kubectl command, and defining it in the container image. The options involving ConfigMaps and environment variables do not accurately define a Namespace for Kubernetes objects.