Q59 — AWS DVA-C02 Ch.1
Question 59 of 100 | ← Chapter 1
A company runs a software-as-a-service (SaaS) application in its on-premises data center. The application architecture uses a front-end Apache web server to support multiple customer-specific websites. The Apache web server routes traffic to different backend services based on the domain name specified in the Host header of the initial request. The company plans to migrate this architecture to AWS. Developers are moving customer-specific backend services to Amazon EC2 instances. Developers must configure EC2 instances for each customer in Auto Scaling groups and register them in separate target groups. Developers also want to replace the front-end Apache web server with an Elastic Load Balancing (ELB) load balancer and route queries for specific domains to the appropriate target group. Which AWS configuration satisfies these requirements?
- A. Use a Network Load Balancer with host-based routing to respective backend target groups.
- B. Use a Network Load Balancer with path-based routing to respective backend target groups.
- C. Use an Application Load Balancer with host-based routing to respective backend target groups. ✓
- D. Use an Application Load Balancer with path-based routing to respective backend target groups.
Correct Answer: C. Use an Application Load Balancer with host-based routing to respective backend target groups.
Explanation
Given: - Traffic must be routed to different sets of servers based on 'domain name' - Queries for specific 'domains' must be forwarded. Host-based routing: You can create Application Load Balancer rules that route incoming traffic based on the domain name specified in the Host header. For example, requests to 'api.example.com' can be sent to one target group, requests to 'mobile.example.com' to another, and all others (via default rule) to a third.