Home › Forums › AWS › AWS Certified Solutions Architect Associate › IMHO the answer is incorrect for this ALB question › Reply To: IMHO the answer is incorrect for this ALB question
-
Hello Dimaz,
Thank you for messaging us. Let me clarify why option 1 is the correct answer.
The most effective solution to the problem described in the question is Option 1: Turn off sticky sessions on the ALB. Sticky sessions, when enabled, direct traffic from the same client to the same EC2 instance for the duration of the session. This can cause one EC2 instance to receive a disproportionate amount of traffic, leading to performance issues and increased latency, as described in the question. Since the problem is that traffic is favoring a single EC2 instance, sticky sessions are likely the cause. Disabling sticky sessions will allow the ALB to distribute traffic more evenly across all healthy EC2 instances, improving load balancing and ensuring that no single instance is overloaded.
On the other hand, Option 4: Modify the interval for health checks would not directly address the issue of traffic imbalance. Health checks ensure that only healthy instances receive traffic, but the question doesn’t indicate that instances are being marked as unhealthy. The core problem here seems to be that traffic is being routed unevenly to one instance, and modifying health check intervals would not solve that. If the cases are healthy, adjusting the health check timing won’t change the traffic distribution behavior. Therefore, Option 1 is the more appropriate solution as it directly tackles the cause of the traffic imbalance, ensuring better load balancing across all instances.
Hope this helps clarify your confusion. Please message us if you have further questions.
Regards,
Nikee @ Tutorials Dojo