AWS Certified Solutions Architect Associate SAA-C03 Practice Question
An organization requires a mechanism to distribute web traffic across multiple EC2 instances to ensure high availability and fault tolerance for their online shopping platform. The web application needs to support WebSocket protocol and maintain a sticky session to provide a seamless user experience. Which AWS service should be used to meet these specific requirements?
An Application Load Balancer (ALB) is the correct service to use in this case because it supports layer 7 load balancing, which allows it to handle HTTP and HTTPS traffic and includes support for WebSocket protocol and sticky sessions. Sticky sessions enable the load balancer to bind a user's session to a specific server, thereby enabling a seamless user experience. The WebSocket protocol is used for interactive communication sessions between a user's browser and a server, and ALB natively supports WebSockets. Other services like Network Load Balancer (NLB) and Classic Load Balancer (CLB) do not provide support for WebSocket or may not fully support application-level sticky sessions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is sticky session in the context of load balancing?
Open an interactive chat with Bash
How does the Application Load Balancer support the WebSocket protocol?
Open an interactive chat with Bash
What is the difference between Application Load Balancer and Network Load Balancer?