Question 400
A distributed service needs stable routing under rolling deployments. The team confirms that sticky session routing hides failure by keeping users on one bad instance. Which approach most directly resolves this gap?
Explanation
Correct Answer
The scenario identifies this requirement: Sticky session routing hides failure by keeping users on one bad instance. Select Externalize state and reduce dependence on target stickiness as the specified technical mechanism. Stateless design improves replacement resilience. This response addresses the problem described rather than a different design goal.
Incorrect Answers
Use ALB host-based routing to separate target groups would help if two services require distinct hostnames on the same public listener. Host-header rules map hostnames to backends. That is not the symptom described here: sticky session routing hides failure by keeping users on one bad instance. The matching response is Externalize state and reduce dependence on target stickiness, because stateless design improves replacement resilience.
For the alternative failure a newly launched target is marked healthy before dependencies are ready, the control Use meaningful health checks and readiness validation is relevant: healthy routing should wait for service readiness. Here the evidence instead is sticky session routing hides failure by keeping users on one bad instance. The selected technical mechanism is Externalize state and reduce dependence on target stickiness: stateless design improves replacement resilience.
Configure target deregistration delay and graceful shutdown solves a different operational problem where deployments replace instances while ALB is still sending in-flight requests. Connection draining allows in-flight requests to finish. It does not directly address sticky session routing hides failure by keeping users on one bad instance. The case calls for Externalize state and reduce dependence on target stickiness, since stateless design improves replacement resilience.