
Answer-first summary for fast verification
Answer: Use a single API Gateway with multiple stages for each environment and a single Lambda function with aliases for different versions.
The correct answer is C. By creating one API Gateway with multiple stages, each corresponding to a different environment (development, test, production), and using a single Lambda function with multiple aliases, you minimize the number of resources to manage. Each alias can point to a specific version of your Lambda function for each environment. This setup allows for clear separation of environments while simplifying deployment and management. It also provides an easy way to promote changes from one environment to another without changing the Lambda function's ARN in your API Gateway.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can a developer minimize resource management when deploying a REST API using Amazon API Gateway and AWS Lambda across development, test, and production environments?
A
Deploy separate API Gateways and Lambda functions for each environment within the same Region.
B
Deploy API Gateway and Lambda in different Regions for each environment.
C
Use a single API Gateway with multiple stages for each environment and a single Lambda function with aliases for different versions.
D
Utilize a single API Gateway and Lambda function, identifying environments through a REST parameter.