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

A company has a serverless application that uses an Amazon API Gateway API to invoke an AWS Lambda function. A developer creates a fix for a defect in the Lambda function code. The developer wants to deploy this fix to the production environment.

To test the changes, the developer needs to send 10% of the live production traffic to the updated Lambda function version.

Which combination of steps will meet these requirements? (Choose two.)

Answer options

Correct answer: A, C

Explanation

To perform canary testing at the Lambda level, a developer must first publish a new Lambda function version containing the updated code. Next, by creating a Lambda alias and configuring its routing configuration, traffic can be split by assigning a 10% weight to the new version and 90% to the stable version. Using Network Load Balancer or Route 53 is incorrect because the traffic is already being managed via API Gateway, which natively supports routing to a Lambda alias.