A company is migrating an internet web application from EC2 instances to an AWS Lambda function. During the cutover period, some requests must go to the legacy EC2 application and others to the Lambda function based on the URL path. Which solution satisfies this routing requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Use an Application Load Balancer and create path‑based routing rules to send requests either to the EC2 application or the Lambda function..
Why this is the answer
An Application Load Balancer (ALB) operates at Layer 7 (the application layer) and supports content-based routing, including path-based routing. This allows you to define rules that inspect the URL path of incoming requests and forward them to different target groups. You can create one target group for your legacy EC2 application and another for your Lambda function, then configure rules to direct traffic based on the URL path. Gateway Load Balancers (GLB) are used for deploying, scaling, and managing third-party virtual appliances. Network Load Balancers (NLB) operate at Layer 4 (the transport layer) and do not support content-based routing like URL paths; they route based on IP address and port.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed