SAA-C03 Question 536
Select 2An e-commerce company is hosting its web application on a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB). The application has both HTTP and WebSocket traffic. The company wants to route requests to different target groups based on the incoming HTTP URL path and ensure that WebSocket connections are supported. Which features of the Application Load Balancer will allow them to achieve this?
- A
Path-based routing
- B
Sticky sessions
- C
WebSocket support
- D
Cross-zone load balancing
- E
Host-based routing
Show answer and explanation
Correct answers: A, C
Explanation
The Application Load Balancer provides advanced routing features, including path-based routing, which allows the company to route requests to different target groups based on the HTTP URL path. Additionally, ALBs natively support WebSocket connections, which are required for the described scenario. Sticky sessions and host-based routing are not relevant to this scenario, and cross-zone load balancing addresses traffic distribution across Availability Zones but does not provide the specified functionality.
- A. Correct.
Path-based routing is correct because it allows the ALB to route requests to different target groups based on the incoming HTTP URL path.
- B. Incorrect.
Sticky sessions are incorrect because they are used to bind a user's session to a specific target, which is not relevant to the scenario described.
- C. Correct.
WebSocket support is correct because the ALB supports WebSocket connections, which are required for the described application.
- D. Incorrect.
Cross-zone load balancing is incorrect because it ensures even distribution of traffic across Availability Zones but does not help with routing or WebSocket support.
- E. Incorrect.
Host-based routing is incorrect because the question refers to routing requests based on the URL path, not the host.