nerdexam
Docker

DCA · Question #91

You want to provide a configuration file to a container at runtime. Does this set of Kubernetes tools and steps accomplish this? Solution: Mount the configuration file directly into the appropriate po

The correct answer is B. No. This method of mounting a configuration file directly using a .spec.containers.configMounts key is incorrect in Kubernetes.

Submitted by satoshi_tk· Apr 18, 2026Storage and Volumes

Question

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

Options

  • AYes
  • BNo

How the community answered

(22 responses)
  • A
    14% (3)
  • B
    86% (19)

Why each option

This method of mounting a configuration file directly using a `.spec.containers.configMounts` key is incorrect in Kubernetes.

AYes

The `.spec.containers.configMounts` key does not exist in the Kubernetes API for mounting configuration files directly into containers.

BNoCorrect

Kubernetes does not have a `.spec.containers.configMounts` key for directly mounting configuration files. Configuration files are typically provided to containers via ConfigMaps or Secrets, which are then mounted as volumes into the pod and container.

Concept tested: Kubernetes ConfigMap usage

Source: https://kubernetes.io/docs/concepts/configuration/configmap/

Topics

#Kubernetes#Configuration#ConfigMaps#Volume Mounts

Community Discussion

No community discussion yet for this question.

Full DCA Practice