A developer is planning to use an Amazon API Gateway and AWS Lambda to provide a REST API. The developer will have three distinct environments to manage: development, test, and production.
How should the application be deployed while minimizing the number of resources to manage?
A . Create a separate API Gateway and separate Lambda function for each environment in the same Region.
B . Assign a Region for each environment and deploy API Gateway and Lambda to each Region.
C . Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
D . Create one API Gateway and one Lambda function, and use a REST parameter to identify the environment.
Answer: C
Explanation:
Reference: https://aws.amazon.com/blogs/compute/using-api-gateway-stage-variables-to-managelambda-functions/
Leave a Reply