Kubernetes CKA sample exam question 83 with answer

Question Create a ConfigMap by name test-cm with following data. Please use imperative commands for this task:

Key			Value
env			dev
log_path		/var/log
Answer
Using imperative commands to create resources is recommended way especially in CKA exam:
kubectl create cm test-cm --from-literal=env=dev --from-literal=log_path=/var/log