SOA-C03 · Question #81
A company is migrating a legacy application to AWS. The company manually installs and configures the legacy application on Amazon EC2 instances across multiple Availability Zones. The company sets up
The correct answer is A. Set the routing algorithm of the target group to least outstanding requests.. A legacy application requiring session affinity experiences random errors when using the weighted random routing algorithm, which does not inherently support sticky sessions properly.
Question
A company is migrating a legacy application to AWS. The company manually installs and configures the legacy application on Amazon EC2 instances across multiple Availability Zones. The company sets up an Application Load Balancer (ALB) for the application. The company sets the target group routing algorithm to weighted random. The application requires session affinity. After the company deploys the application, users report random application errors that were not present in the legacy version of the application. The target group health checks do not show any failures. The company must resolve the application errors. Which solution will meet this requirement?
Options
- ASet the routing algorithm of the target group to least outstanding requests.
- BTurn on anomaly mitigation for the target group.
- CTurn off the cross-zone load balancing attribute of the target group.
- DIncrease the deregistration delay attribute of the target group.
How the community answered
(46 responses)- A76% (35)
- B2% (1)
- C15% (7)
- D7% (3)
Why each option
A legacy application requiring session affinity experiences random errors when using the weighted random routing algorithm, which does not inherently support sticky sessions properly.
The weighted random routing algorithm with automatic target weights (ATW) is incompatible with application-based sticky sessions on ALB. When session affinity (sticky sessions) is required, the target group should use a routing algorithm that properly supports it. The least outstanding requests algorithm is compatible with sticky sessions and ensures that requests from the same session are consistently routed to the same target, resolving the random application errors caused by sessions being split across different instances.
Anomaly mitigation is a feature used with weighted random routing to route traffic away from unhealthy targets, but it does not resolve the fundamental incompatibility between weighted random routing and sticky session requirements.
Disabling cross-zone load balancing would restrict traffic distribution to targets within the same Availability Zone but would not fix the session affinity issue caused by the weighted random routing algorithm distributing session requests to different targets.
Increasing the deregistration delay extends the time a deregistering target continues to receive existing connections, but this does not address the core issue of the weighted random algorithm not properly maintaining session affinity across active targets.
Concept tested: ALB target group routing algorithm compatibility with sticky sessions
Source: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#modify-routing-algorithm
Topics
Community Discussion
No community discussion yet for this question.