SAA-C03 Question 331
Single answerYou are tasked with designing a highly available web application on AWS. The application requires routing traffic to different backend services based on the URL path in the request (e.g., '/api/' should route to one service, while '/static/' should route to another). Which type of load balancer is most appropriate for this use case?
- A
Application Load Balancer
- B
Network Load Balancer
- C
Classic Load Balancer
- D
Gateway Load Balancer
Show answer and explanation
Correct answer: A
Explanation
The Application Load Balancer is specifically designed for HTTP/HTTPS traffic and supports advanced routing features, such as routing requests based on URL paths or host headers. This makes it the ideal choice for the use case described, where traffic is routed to different backend services based on specific URL paths.
- A. Correct.
Application Load Balancer supports advanced routing features like routing based on URL paths, which makes it the best fit for this use case.
- B. Incorrect.
Network Load Balancer is optimized for handling high-throughput and low-latency TCP or UDP traffic but does not support routing based on URL paths.
- C. Incorrect.
Classic Load Balancer is a legacy option and does not support advanced routing features like URL-based routing.
- D. Incorrect.
Gateway Load Balancer is designed for integrating third-party virtual appliances and does not handle application-layer routing.