AWS Certified SysOps Administrator – Associate (SOA-C03) — Question 6
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?
Answer options
- A. Set the routing algorithm of the target group to least outstanding requests.
- B. Turn on anomaly mitigation for the target group.
- C. Turn off the cross-zone load balancing attribute of the target group.
- D. Increase the deregistration delay attribute of the target group.
Correct answer: A
Explanation
The correct answer is A because switching to the least outstanding requests algorithm can help maintain session affinity by directing traffic more effectively to instances with fewer active requests, reducing errors. Options B and C do not directly address session affinity issues, and option D, while potentially useful, doesn't resolve the root cause of the random errors as effectively as option A.