Question 360
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: An existing workload dispatch-api in namespace fulfillment requires a ConfigMap dispatch-config containing the nonsecret setting MODE=uat. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Version nonsecret application settings and avoid putting credentials into ConfigMaps. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment create configmap dispatch-config --from-literal=MODE=uat after checking whether it already exists. The relevant mechanism is: ConfigMaps hold ordinary configuration data; their existence does not automatically inject values into running Pods.
Incorrect Answers
That safeguard is relevant to: Node selectors constrain scheduling to nodes whose labels match all specified key/value pairs; patching the Pod template triggers a rollout. The current failure instead follows from: ConfigMaps hold ordinary configuration data; their existence does not automatically inject values into running Pods. Its prevention measure is “Version nonsecret application settings and avoid putting credentials into ConfigMaps”.
This routine guards against another mechanism: Environment variables are copied into new container processes from ConfigMap values; existing running processes need replacement to pick up changes. The recurring exposure in the current case is: ConfigMaps hold ordinary configuration data; their existence does not automatically inject values into running Pods. The matching preventive check is “Version nonsecret application settings and avoid putting credentials into ConfigMaps”.
The suggested review tracks a different technical risk: A successful API mutation does not guarantee updated Pods are healthy and available; rollout status tracks controller progress. Here the sustained control must address: ConfigMaps hold ordinary configuration data; their existence does not automatically inject values into running Pods. Choose “Version nonsecret application settings and avoid putting credentials into ConfigMaps”.