ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 321 - SOA-C02 discussion

Report
Export

A company hosts an internet web application on Amazon EC2 instances. The company is replacing the application with a new AWS Lambda function. During a transition period, the company must route some traffic to the legacy application and some traffic to the new Lambda function. The company needs to use the URL path of request to determine the routing.

Which solution will meet these requirements?

A.
Configure a Gateway Load Balancer to use the URL path to direct traffic to the legacy application and the new Lambda function.
Answers
A.
Configure a Gateway Load Balancer to use the URL path to direct traffic to the legacy application and the new Lambda function.
B.
Configure a Network Load Balancer to use the URL path to direct traffic to the legacy application and the new Lambda function.
Answers
B.
Configure a Network Load Balancer to use the URL path to direct traffic to the legacy application and the new Lambda function.
C.
Configure a Network Load Balancer to use a regular expression to match the URL path to direct traffic to the new Lambda function.
Answers
C.
Configure a Network Load Balancer to use a regular expression to match the URL path to direct traffic to the new Lambda function.
D.
Configure an Application Load Balancer to use the URL path to direct traffic to the legacy application and the new Lambda function.
Answers
D.
Configure an Application Load Balancer to use the URL path to direct traffic to the legacy application and the new Lambda function.
Suggested answer: D

Explanation:

To route traffic based on the URL path during a transition period where both an EC2-based legacy application and a new AWS Lambda function are in use:

Use of Application Load Balancer (ALB): ALBs support advanced request routing based on the URL path, among other criteria. This capability allows the ALB to evaluate the URL path of incoming requests and route them appropriately to either the legacy EC2 instances or the Lambda function.

Path-Based Routing Rules: Configure the ALB with rules that specify which URL paths should be directed to the EC2 instances and which should be routed to the Lambda function. For example, requests to /legacy/* might go to the EC2 instances, while /new/* could be directed to the Lambda function.

Integration with Lambda: ALBs can directly invoke Lambda functions in response to HTTP requests, making them ideal for scenarios where both server-based and serverless components are used in tandem.

This setup not only facilitates a smooth transition by enabling simultaneous operation of both components but also leverages the native capabilities of ALBs to manage traffic based on application requirements effectively.

asked 16/09/2024
Yan Wei
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first