Topic 1 Question 199
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?
Sam local invoke
Sam local generate-event
Sam local start-lambda
Sam local start-api
ユーザの投票
コメント(3)
- 正解だと思う選択肢: 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.
👍 5Digo30sp2023/10/06 DDDDDDDDDDD
👍 3fordiscussionstwo2023/10/05- 正解だと思う選択肢: D
D is correct
👍 2dilleman2023/10/11
シャッフルモード