AWS Certified Developer – Associate (DVA-C02) — Question 507

A developer published a change to a new version of an AWS Lambda function. To test the change, the developer must route 50% of the traffic to the new version and 60% of the traffic to the current version.

What is the MOST operationally efficient way to meet this requirement?

Answer options

Correct answer: C

Explanation

AWS Lambda natively supports traffic shifting through the use of function aliases, allowing you to easily distribute traffic between two different versions by assigning weights. Pointing the event source mappings to this alias ensures that the traffic is automatically split according to the defined weights with minimal operational effort. Other options either introduce unnecessary infrastructure overhead, like Amazon Route 53 or API Gateway, or attempt to configure weights on event source mappings directly, which is not supported.