nerdexam
AmazonAmazon

DVA-C02 · Question #214

DVA-C02 Question #214: Real Exam Question with Answer & Explanation

The correct answer is D: Sam local start-api. 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

Submitted by ahmad_uae· Mar 5, 2026Development with AWS Services

Question

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?

Options

  • ASam local invoke
  • BSam local generate-event
  • CSam local start-lambda
  • DSam local start-api

Explanation

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

Community Discussion

No community discussion yet for this question.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions