ANS-C01 Question 216
Single answerYour company is deploying a web application that serves dynamic content and needs advanced application-layer routing features. The application requires SSL termination and inspection, as well as the ability to route traffic based on HTTP headers and paths. Which AWS service or configuration is best suited for this requirement?
- A
Use Network Load Balancer (NLB) with TCP listeners for routing traffic.
- B
Use Application Load Balancer (ALB) with HTTPS listeners and configure path-based and host-based routing rules.
- C
Use Classic Load Balancer with SSL termination and configure HTTP listeners.
- D
Use Amazon Route 53 with weighted routing policies and health checks.
Show answer and explanation
Correct answer: B
Explanation
The Application Load Balancer (ALB) is specifically designed for HTTP/HTTPS workloads and operates at Layer 7. It supports advanced features like SSL termination, path-based routing, host-based routing, and inspection of HTTP headers, making it the ideal solution for web applications requiring dynamic content delivery and application-layer routing. Other options like Network Load Balancer, Classic Load Balancer, and Route 53 lack the necessary Layer 7 capabilities needed in this scenario.
- A. Incorrect.
Network Load Balancer (NLB) operates at Layer 4 (transport layer) and can handle TCP/UDP traffic but does not support advanced application-layer features like path-based or host-based routing. This option is incorrect because it cannot meet the application's requirements for HTTP header and path inspection.
- B. Correct.
Application Load Balancer (ALB) operates at Layer 7 (application layer) and supports features such as SSL termination, HTTP header/path-based routing, and advanced routing rules. This is the correct choice as it meets all the application's requirements for dynamic content and routing.
- C. Incorrect.
Classic Load Balancer (CLB) supports basic layer 7 features and SSL termination, but it lacks advanced routing features such as path-based or host-based routing. It is less flexible compared to an ALB and therefore not the best choice for this scenario.
- D. Incorrect.
Amazon Route 53 is a DNS service that provides routing based on DNS queries and health checks. While it supports weighted routing, it does not provide SSL termination or application-layer routing features like HTTP path or header-based routing. This option is incorrect as it cannot fulfill the application's requirements.