Q18 — AWS SAA-C03 Ch.6
Question 18 of 65 | ← Chapter 6
Q383. A company is building a new furniture inventory application. The company has deployed the application on a fleet of Amazon EC2 instances across multiple Availability Zones. The EC2 instances run behind an Application Load Balancer(ALB) in their VPC.A solutions architect has observed that incoming traffic seems to favor one EC2 instance, resulting in latency for some requests.What should the solutions architect do to resolve this issue?
- A. Disable session affinity (sticky sessions) on the ALE ✓
- B. Replace the ALB with a Network Load Balancer
- C. Increase the number of EC2 instances in each Availability Zone
- D. Adjust the frequency of the health checks on the ALB's target group
Correct Answer: A. Disable session affinity (sticky sessions) on the ALE
Explanation
Enabling session affinity (sticky sessions) on an ALB directs requests from a particular client to the same EC2 instance. This can lead to uneven distribution of traffic among the instances, causing increased latency for some requests.By disabling session affinity, the ALB will distribute incoming traffic evenly across all available EC2 instances, improving load balancing and reducing latency.Options B, C, and D are not directly related to resolving the issue of traffic favoring one EC2 instance. Option B suggests replacing the ALB with a Network Load Balancer, which may have its own benefits but does not address the specific problem at hand. Option C suggests increasing the number of EC2 instances in each Availability Zone, which may help with scalability but does not guarantee even distribution of traffic. Option D suggests adjusting the frequency of health checks on the ALB's target group, which is unrelated to the issue of traffic distribution.