
Answer-first summary for fast verification
Answer: Modify the API Gateway to use a hotfix alias for the Lambda function, deploy to a new 'hotfix' stage, and conduct backend tests., After code correction, publish a new Lambda version, create a 'hotfix' alias for this version, and ensure it's tested.
The correct answers are B and D. Option B suggests updating the Lambda function in the API Gateway integration request to use the hotfix alias, and deploying the API Gateway to a new stage named 'hotfix' for testing, which ensures a separate testing environment without affecting the production setup. Option D involves modifying and testing the Lambda function, then publishing it as a new version, creating an alias 'hotfix' that points to this version, which ensures that the changes are not overwritten and provides a controlled environment for testing. Option C is incorrect because you can't use an unqualified ARN ($LATEST) to create an alias, emphasizing the necessity for a new version.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can a developer create a development environment with minimal effort to test code changes in a web application using AWS API Gateway and Lambda, ensuring the production environment remains unaffected and changes are not overwritten?
A
Introduce a new resource and method in the existing stage with Lambda proxy integration, assign the hotfix alias, redeploy, and validate.
B
Modify the API Gateway to use a hotfix alias for the Lambda function, deploy to a new 'hotfix' stage, and conduct backend tests.
C
Adjust the Lambda function, establish an alias 'hotfix' pointing to the $LATEST version, and perform function tests.
D
After code correction, publish a new Lambda version, create a 'hotfix' alias for this version, and ensure it's tested.
E
For development, establish a new API Gateway with a dedicated stage incorporating the Lambda function and 'hotfix' alias, then test.