CK.IV · CKAD practice question
Which command creates a ConfigMap named app-config from a file named config.properties in namespace billing?
Check answer and explanation
Correct answer: kubectl create configmap app-config --from-file=config.properties -n billing
Explanation
kubectl create configmap --from-file= creates a ConfigMap entry keyed by the filename (or key=path) containing the file's contents.
Common trap
kubectl create configmap --from-file= creates a ConfigMap entry keyed by the filename (or key=path) containing the file's contents.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.