exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 229 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
SerialiDr
Highly Voted 9 months ago
Selected Answer: C
This approach involves creating a single API Gateway and a single Lambda function. Within the API Gateway, you can create multiple stages, each corresponding to a different environment (development, test, production). Similarly, for the Lambda function, you can create multiple aliases, each pointing to a different version of the Lambda function that corresponds to each environment. This setup allows for clear separation of environments within the same set of resources. It simplifies deployment and management by reducing the number of resources and also provides an easy way to promote changes from one environment to another.
upvoted 6 times
...
65703c1
Most Recent 5 months ago
Selected Answer: C
C is the correct answer.
upvoted 2 times
...
TanTran04
10 months, 2 weeks ago
Selected Answer: C
API Gateway A stage in API Gateway represents a deployment of your API. You can have separate stages for development, test, and production. Each stage can have its own settings, such as stage variables, custom domains, and caching configurations. Lambda function Each alias can point to a specific version of your Lambda function. This allows you to promote versions through different environments without changing the function's Amazon Resource Name (ARN) in your API Gateway.
upvoted 3 times
...
bhanupriya07
11 months, 1 week ago
Selected Answer: C
C. Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
upvoted 4 times
...
Claire_KMT
12 months ago
C. Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago