SAA-C03 Question 69
Single answerA company is running a high-traffic e-commerce website hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). The company wants to ensure that customer sessions are maintained seamlessly during their shopping experience. Which feature of the ALB should the company use to achieve this?
- A
Enable Sticky Sessions (Session Affinity) on the ALB
- B
Configure Cross-Zone Load Balancing on the ALB
- C
Enable Target Group Health Checks on the ALB
- D
Use AWS Global Accelerator with the ALB
Show answer and explanation
Correct answer: A
Explanation
The correct answer is 'Enable Sticky Sessions (Session Affinity) on the ALB' because this feature ensures that user requests are consistently routed to the same target during their session, providing seamless session handling for the e-commerce website. Other options, while useful for different purposes, do not address the need for maintaining user sessions.
- A. Correct.
Sticky Sessions (also known as Session Affinity) ensure that a user's requests are consistently sent to the same target (EC2 instance) during their session. This is crucial for maintaining session data in environments where instances do not share session state.
- B. Incorrect.
Cross-Zone Load Balancing ensures that traffic is distributed evenly across all targets in all enabled Availability Zones. While this improves load distribution, it does not help in maintaining user sessions.
- C. Incorrect.
Target Group Health Checks monitor the health of targets behind the ALB and ensure traffic is routed only to healthy instances. However, they are unrelated to maintaining user sessions.
- D. Incorrect.
AWS Global Accelerator improves performance for global users by routing traffic through AWS's global network but does not provide session stickiness for the ALB.