CompTIA Linux+ XK0-006 (V8) Practice Question

A Pod specification consumes the same ConfigMap in two different ways: the full ConfigMap is mounted at "/etc/app/conf" (no subPath), and several keys are also injected into the container by means of envFrom. After you apply an updated version of the ConfigMap, the files inside "/etc/app/conf" change within about a minute, yet the environment variables inside the still-running container keep their original values. Which statement best explains this behavior?

  • Any change to a ConfigMap automatically triggers the kube-controller-manager to recreate affected Pods, so both files and environment variables should have updated; the difference indicates a failed health probe.

  • ConfigMaps are treated as immutable while a Pod is running; neither volume mounts nor environment variables can update until the Pod is manually deleted.

  • The kubelet refreshes a ConfigMap that is mounted as a volume, but environment variables sourced from that ConfigMap are fixed at container start-up, so they remain unchanged until the Pod is restarted.

  • Environment variables sourced from a ConfigMap are refreshed every kubelet sync cycle, whereas files from the same ConfigMap stay static unless the Deployment is rolled.

CompTIA Linux+ XK0-006 (V8)
Automation, Orchestration, and Scripting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot