AWS Certified Developer – Associate — Question 101

A developer wants to reduce risk when deploying a new version of an existing AWS Lambda function. To test the Lambda function, the developer needs to split the traffic between the existing version and the new version of the Lambda function.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because creating a function alias allows for traffic splitting between different versions of a Lambda function, enabling controlled testing. Option A is incorrect as Route 53 does not directly manage Lambda versions; option C is not suitable since ALB does not support Lambda version traffic splitting; option D is incorrect because Lambda layers are not designed for version traffic splitting.