Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
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 LATESTLambdaversion,updatetheAPIGatewayendpointtothisalias,publishtheoptimizedcode,configureacanaryreleasewithtrafficdistributionontheproductionstage,andusetheLATEST Lambda version, update the API Gateway endpoint to this alias, publish the optimized code, configure a canary release with traffic distribution on the production stage, and use the LATESTLambdaversion,updatetheAPIGatewayendpointtothisalias,publishtheoptimizedcode,configureacanaryreleasewithtrafficdistributionontheproductionstage,andusetheLATEST 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.