Q: 13
A company is migrating a legacy application to AWS. The application runs on EC2 instances across
multiple Availability Zones behind an Application Load Balancer (ALB). The target group routing
algorithm is set to weighted random, and the application requires session affinity (sticky sessions).
After deployment, users report random application errors that were not present before migration,
even though target health checks are passing.
Which solution will meet this requirement?
Options
Discussion
Option A is the way to go. Weighted random doesn't work with sticky sessions, so users can get routed to different EC2s mid-session, causing errors. Least outstanding requests works better with session affinity. Pretty sure that's the fix-let me know if anyone's seen otherwise.
B
If the requirement was about handling unusual traffic spikes instead of session affinity, would option B make sense here? Weighted random is a common trap when sticky sessions are needed.
Be respectful. No spam.