Question 400
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Deployment invoice-api in ledger needs each named container's CPU request set to 250m and memory limit set to 256Mi. 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
Review resource sizing against actual usage and avoid scheduling on unsupported limits alone. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger set resources deployment/invoice-api --requests=cpu=250m --limits=memory=256Mi after verifying the Deployment's container selection. The relevant mechanism is: Requests inform scheduling and limits cap runtime consumption; the settings play different roles.
Incorrect Answers
That safeguard is relevant to: Rollout restart annotates the Pod template so the Deployment controller replaces Pods according to its rollout strategy. The current failure instead follows from: Requests inform scheduling and limits cap runtime consumption; the settings play different roles. Its prevention measure is “Review resource sizing against actual usage and avoid scheduling on unsupported limits alone”.
This routine guards against another mechanism: Node selectors constrain scheduling to nodes whose labels match all specified key/value pairs; patching the Pod template triggers a rollout. The recurring exposure in the current case is: Requests inform scheduling and limits cap runtime consumption; the settings play different roles. The matching preventive check is “Review resource sizing against actual usage and avoid scheduling on unsupported limits alone”.
That safeguard is relevant to: A successful API mutation does not guarantee updated Pods are healthy and available; rollout status tracks controller progress. The current failure instead follows from: Requests inform scheduling and limits cap runtime consumption; the settings play different roles. Its prevention measure is “Review resource sizing against actual usage and avoid scheduling on unsupported limits alone”.