Question 370
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: An existing ConfigMap dispatch-config in namespace fulfillment must supply environment variables to Deployment dispatch-api. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Environment variables are copied into new container processes from ConfigMap values; existing running processes need replacement to pick up changes. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment set env deployment/dispatch-api --from=configmap/dispatch-config. The direct acceptance evidence is: Run kubectl -n fulfillment describe deployment dispatch-api and inspect the environment references on newly created Pods.
Incorrect Answers
The offered statement is true for this other mechanism: A successful API mutation does not guarantee updated Pods are healthy and available; rollout status tracks controller progress. It does not explain the facts described here, which follow from: Environment variables are copied into new container processes from ConfigMap values; existing running processes need replacement to pick up changes.
Pod templates can reference Secret keys without copying literal secret values into the Deployment spec. That explanation applies to a different technical failure. Here the controlling principle is: Environment variables are copied into new container processes from ConfigMap values; existing running processes need replacement to pick up changes.
The offered statement is true for this other mechanism: Node selectors constrain scheduling to nodes whose labels match all specified key/value pairs; patching the Pod template triggers a rollout. It does not explain the facts described here, which follow from: Environment variables are copied into new container processes from ConfigMap values; existing running processes need replacement to pick up changes.