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 241 discussion

A company is creating a REST service using an Amazon API Gateway with AWS Lambda integration. The service must run different versions for testing purposes.

What would be the BEST way to accomplish this?

  • A. Use an X-Version header to denote which version is being called and pass that header to the Lambda function(s).
  • B. Create an API Gateway Lambda authorizer to route API clients to the correct API version.
  • C. Create an API Gateway resource policy to isolate versions and provide context to the Lambda function(s).
  • D. Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
TanTran04
Highly Voted 10 months, 2 weeks ago
Selected Answer: D
Creating unique stages for different versions is a common practice for managing and deploying different versions of REST APIs. => D
upvoted 6 times
...
65703c1
Most Recent 5 months ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
KarBiswa
7 months, 3 weeks ago
Selected Answer: D
https://docs.aws.amazon.com/apigateway/latest/developerguide/stage-variables.html#:~:text=With%20deployment%20stages%20in%20API%20Gateway%2C%20you%20can%20manage%20multiple%20release%20stages%20for%20each%20API%2C%20such%20as%20alpha%2C%20beta%2C%20and%20production.%20Using%20stage%20variables%20you%20can%20configure%20an%20API%20deployment%20stage%20to%20interact%20with%20different%20backend%20endpoints.
upvoted 2 times
...
SerialiDr
9 months ago
Selected Answer: D
API Gateway allows you to create different stages for your API, each with its own configuration. These stages can represent different versions of your API (like development, test, and production). You can deploy your API to these stages and have different configurations for each stage, such as different Lambda functions, stage variables, or settings. This approach is straightforward and aligns with best practices for managing different environments in API Gateway.
upvoted 3 times
...
Claire_KMT
12 months ago
D. Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context.
upvoted 4 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