Q78 — AWS DVA-C02 Ch.1
Question 78 of 100 | ← Chapter 1
A developer plans to build a REST API using Amazon API Gateway and AWS Lambda. The developer needs to manage multiple environments: development, testing, and production. How should the application be deployed to minimize the number of managed resources?
- A. Create separate API Gateways and separate Lambda functions for each environment in the same Region.
- B. Assign a separate Region to each environment and deploy API Gateway and Lambda to each Region.
- C. Create one API Gateway with multiple stages and one Lambda function with multiple aliases. ✓
- D. Create one API Gateway and one Lambda function, and use a single REST parameter to identify the environment.
Correct Answer: C. Create one API Gateway with multiple stages and one Lambda function with multiple aliases.
Explanation
https://aws.amazon.com/blogs/compute/using-api-gateway-stage-variables-to-manage-lambda-functions/