exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 46 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 46
Topic #: 1
[All AWS Certified Developer Associate Questions]

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
JaneJ
Highly Voted 3 years, 6 months ago
C. Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
upvoted 26 times
...
RicardoD
Highly Voted 3 years, 6 months ago
C is the answer
upvoted 8 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: C
C) Correct - API Gateway allows you to create multiple stages (e.g., dev, test, prod) within a single API Gateway. You can use a single Lambda function and deploy multiple versions of it using aliases. An alias in AWS Lambda allows you to point to specific versions of the Lambda function. For instance, you can have dev, test, and prod aliases. With this approach, you only need to manage one API Gateway and one Lambda function, and the environment configurations are handled by stages (in API Gateway) and aliases (in Lambda).
upvoted 1 times
...
tuongthuy
1 year, 9 months ago
Selected Answer: C
Correct answer is C
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: C
Indeed with all of you, C is the correct one. First of all we need a lambda function with different versions. Then we have to create a lambda alias for each enviroment (dev, test, live for example) and make sure that each alias has the correct version associated. API Gateway side, we can create one stage for each environment as well and use a variable in order to solve at runtime the right environment
upvoted 2 times
...
Althani
2 years, 3 months ago
I dont really understand, why it is supposed to be C. Multiple stages for the api gateway ok. But a lambda with multiple aliases does not make sense go me. This would be the same lambda just with different names. But for Prod, dev and staging you would need different lambdas with different code, because it does not make any sense to have different stages if the code is the same?
upvoted 1 times
rlnd2000
2 years, 2 months ago
I think this imply that the alias are for different versions of Lambdas. Latest version is for Dev usually, version 1 for STG and the oldest is the one in Prod.
upvoted 1 times
QueTeddyJR
2 years, 2 months ago
The APIGateway has multiple stages and the lambda has multiple aliases and it look like this: dev-lambda-create-user -> for dev stage test-lambda-create-user -> for test stage prod-lambda-create-user -> for prod stage
upvoted 1 times
...
...
...
gpit
2 years, 5 months ago
Selected Answer: C
C. D is doable but is not the easiest way, as you have to if else based on @PathVariable
upvoted 1 times
captainpike
2 years, 1 month ago
I think the key is "minimizing the number of resources to manage"
upvoted 1 times
...
...
netk
3 years, 2 months ago
Selected Answer: C
Answer: C
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: C
ANS: C
upvoted 1 times
...
faramawi
3 years, 6 months ago
Answer: C
upvoted 1 times
...
eudiego
3 years, 6 months ago
Answer is C
upvoted 1 times
...
Chinta
3 years, 6 months ago
C is correct
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