
Answer-first summary for fast verification
Answer: Create a version from the current production Lambda function, update the API Gateway to point to this version, publish the optimized code, set a canary release on the production stage with traffic percentage, and use the $LATEST version for the endpoint, publishing to the canary.
Option A is the correct answer because it involves defining a function version for the existing production Lambda function, updating the API Gateway to reference this version, and then publishing the optimized code. A canary release is set up on the production API Gateway stage to direct a specified percentage of traffic to the canary release, allowing the changes to be tested in production without changing the API Gateway URL. This step-by-step process ensures controlled traffic distribution and thorough testing of the optimized code.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer test optimized AWS Lambda function code in production affecting a small percentage of traffic, without altering the API Gateway URL?
A
Create a version from the current production Lambda function, update the API Gateway to point to this version, publish the optimized code, set a canary release on the production stage with traffic percentage, and use the $LATEST version for the endpoint, publishing to the canary.
B
Create a version from the current production Lambda function, update the API Gateway to point to this version, publish the optimized code, and use the $LATEST version while deploying a new API Gateway stage.
C
Set an alias for the LATEST version for the endpoint, publishing to the canary.
D
Create a version from the current production Lambda function, update the API Gateway to point to this version, publish the optimized code, and use the $LATEST version for the endpoint in the production API Gateway stage deployment.
No comments yet.