SAA-C03 Question 131
Select 3A company hosts a web application that serves dynamic content to its users. The application is deployed across multiple Availability Zones for high availability. To improve the scalability and availability of the application, the company plans to use an Application Load Balancer (ALB). Which of the following configurations would be MOST appropriate for the ALB?
- A
Configure the ALB to route requests to targets based on the path of the URL.
- B
Associate the ALB with an Auto Scaling group to automatically adjust the number of targets.
- C
Enable sticky sessions on the ALB to ensure traffic is consistently routed to the same target.
- D
Use the ALB's WebSocket support to handle real-time communication between clients and servers.
- E
Configure Cross-Zone Load Balancing to ensure traffic is evenly distributed across targets in all Availability Zones.
Show answer and explanation
Correct answers: A, D, E
Explanation
The Application Load Balancer (ALB) supports features such as path-based routing, WebSocket connections, and Cross-Zone Load Balancing, which are essential for dynamic, highly available, and scalable applications. While sticky sessions and Auto Scaling group associations are valid configurations in some scenarios, they do not align with this specific use case's goals of improving scalability and availability.
- A. Correct.
Correct: ALBs support path-based routing, which allows the ALB to route requests based on the URL path, helping to serve content dynamically based on the application architecture.
- B. Incorrect.
Incorrect: Auto Scaling groups are not directly associated with an ALB. Instead, the targets in an Auto Scaling group register with a target group, which the ALB routes traffic to. This makes the statement misleading.
- C. Incorrect.
Incorrect: While sticky sessions can be enabled on an ALB, they are not required in this scenario as the goal is to improve scalability and availability. Sticky sessions could reduce scalability by routing traffic to a single target.
- D. Correct.
Correct: ALBs natively support WebSocket connections, which are crucial for real-time communication in applications. This feature is relevant for dynamic content applications requiring real-time updates.
- E. Correct.
Correct: Cross-Zone Load Balancing ensures that traffic is distributed evenly across targets in all available Availability Zones, improving the availability and resilience of the application.