Question 310
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: The Deployment dispatch-api in namespace fulfillment must run exactly 5 replicas during a planned demand change. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Scaling the Deployment changes desired replica count through its controller; editing an individual Pod would not preserve the desired state. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment scale deployment/dispatch-api --replicas=5. The direct acceptance evidence is: Run kubectl -n fulfillment rollout status deployment/dispatch-api and kubectl -n fulfillment get deployment dispatch-api to compare desired and ready counts.
Incorrect Answers
The offered statement is true for this other mechanism: Pod templates can reference Secret keys without copying literal secret values into the Deployment spec. It does not explain the facts described here, which follow from: Scaling the Deployment changes desired replica count through its controller; editing an individual Pod would not preserve the desired state.
This principle describes a separate cause: Requests inform scheduling and limits cap runtime consumption; the settings play different roles. The reported condition is governed by: Scaling the Deployment changes desired replica count through its controller; editing an individual Pod would not preserve the desired state. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: A Deployment tracks ReplicaSet revisions and rollout undo restores a recorded earlier Pod template. It does not explain the facts described here, which follow from: Scaling the Deployment changes desired replica count through its controller; editing an individual Pod would not preserve the desired state.