ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 131 - 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 sam local start-api subcommand allows you to run your serverless application locally for quick development and testing1.It creates a local HTTP server that acts as a proxy for API Gateway and invokes your Lambda functions based on the AWS SAM template1.You can use the sam local start-api subcommand to test your REST API locally by sending HTTP requests to the local endpoint1.

asked 16/09/2024
Sai Janani Ravishankar
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first