ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 146 - DVA-C02 discussion

Report
Export

A developer is creating a new REST API by using Amazon API Gateway and AWS Lambd

a. 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
Answers
A.
Sam local invoke
B.
Sam local generate-event
Answers
B.
Sam local generate-event
C.
Sam local start-lambda
Answers
C.
Sam local start-lambda
D.
Sam local start-api
Answers
D.
Sam local start-api
Suggested answer: D

Explanation:

The AWS Serverless Application Model Command Line Interface (AWS SAM CLI) is a command-line tool for local development and testing of Serverless applications2.Thesam local start-apisubcommand of AWS SAM CLI is used to simulate a REST API by starting a new local endpoint3. Therefore, option D is correct.

asked 16/09/2024
Danish Vohra
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first