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

A developer is creating a new REST API by using Amazon API Gateway and AWS Lambda. The development team tests the API and validates responses for the known use cases before deploying the API to the production environment.

The developer wants to make the REST API available for testing by using API Gateway locally.

Which AWS Serverless Application Model Command Line Interface (AWS SAM CLI) subcommand will meet these requirements?

  • A. Sam local invoke
  • B. Sam local generate-event
  • C. Sam local start-lambda
  • D. Sam local start-api
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
Digo30sp
Highly Voted 1 year ago
Selected Answer: D
The correct answer is (D). The AWS SAM CLI sam local start-api subcommand is used to start a local API Gateway instance. This allows you to test your REST API locally before deploying it to the production environment. The other subcommands will not meet the developer's requirements: Local invocation of Sam is used to invoke a Lambda function locally. Sam's local event generation is used to generate a local event file to be used to invoke a Lambda function locally. Sam local start-lambda is used to start a local instance of a Lambda function.
upvoted 9 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/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-start-api.html
upvoted 1 times
...
dilleman
1 year ago
Selected Answer: D
D is correct
upvoted 3 times
...
DDDDDDDDDDD
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