nerdexam
DockerDocker

DCA · Question #90

DCA Question #90: Real Exam Question with Answer & Explanation

The correct answer is B: No. While using a ConfigMap is the correct approach to provide configuration files, the .spec.containers.configMounts key is an incorrect and non-existent method for mounting them into a container.

Submitted by khalil_dz· Apr 18, 2026Container Orchestration

Question

You want to provide a configuration file to a container at runtime. Does this set of Kubernetes tools and steps accomplish this? Solution: Turn the configuration file into a configMap object and mount it directly into the appropriate pod and container using the .spec.containers.configMounts key.

Options

  • AYes
  • BNo

Explanation

While using a ConfigMap is the correct approach to provide configuration files, the .spec.containers.configMounts key is an incorrect and non-existent method for mounting them into a container.

Common mistakes.

  • A. The method for mounting ConfigMaps into containers is via volumes and volume mounts (.spec.volumes and .spec.containers.volumeMounts), not through a non-existent key like .spec.containers.configMounts.

Concept tested. Kubernetes ConfigMap mounting

Reference. https://kubernetes.io/docs/tasks/configure-pod-container/configure-a-pod-configmap/#add-configmap-data-to-a-volume

Topics

#Kubernetes#ConfigMap#Volume Mounts#Pod Configuration

Community Discussion

No community discussion yet for this question.

Full DCA PracticeBrowse All DCA Questions