Question 480
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Deployment dispatch-api in fulfillment requires maxUnavailable=0 and maxSurge=1 for a RollingUpdate rollout in the lab. 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
Assess capacity for surge Pods and measure availability during upgrades. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment patch deployment dispatch-api --type=merge -p '{"spec":{"strategy":{"type":"RollingUpdate","rollingUpdate":{"maxUnavailable":0,"maxSurge":1}}}}'. The relevant mechanism is: Deployment rolling-update parameters govern how many old Pods may be unavailable and extra Pods may be created during replacement.
Incorrect Answers
The suggested review tracks a different technical risk: Scaling the Deployment changes desired replica count through its controller; editing an individual Pod would not preserve the desired state. Here the sustained control must address: Deployment rolling-update parameters govern how many old Pods may be unavailable and extra Pods may be created during replacement. Choose “Assess capacity for surge Pods and measure availability during upgrades”.
That safeguard is relevant to: Requests inform scheduling and limits cap runtime consumption; the settings play different roles. The current failure instead follows from: Deployment rolling-update parameters govern how many old Pods may be unavailable and extra Pods may be created during replacement. Its prevention measure is “Assess capacity for surge Pods and measure availability during upgrades”.
The suggested review tracks a different technical risk: ConfigMaps hold ordinary configuration data; their existence does not automatically inject values into running Pods. Here the sustained control must address: Deployment rolling-update parameters govern how many old Pods may be unavailable and extra Pods may be created during replacement. Choose “Assess capacity for surge Pods and measure availability during upgrades”.