DVA-C02 · Question #658
A developer is creating a serverless application that performs video encoding. The encoding process run as background jobs and takes several minutes to encode each video. The process must not send…
The correct answer is B. Create a REST API with the default endpoint type. Create an AWS Lambda function to handle the. A REST API (not an HTTP API) supports API keys, usage plans, request validation, and “Test” invocations in the console. By configuring the Lambda integration to use the Event invocation type, API Gateway will enqueue the encoding job and immediately return a 202 response…
Question
A developer is creating a serverless application that performs video encoding. The encoding process run as background jobs and takes several minutes to encode each video. The process must not send an immediate result to users. The developer is using Amazon API Gateway to manage an API for the application. The developer needs to run test invocations and request validations. The developer must distribute API keys to control access to the API. Which solution will meet these requirements?
Options
- ACreate an HTTP API. Create an AWS Lambda function to handle the encoding jobs. Integrate the
- BCreate a REST API with the default endpoint type. Create an AWS Lambda function to handle the
- CCreate an HTTP API. Create an AWS Lambda function to handle the encoding jobs. Integrate the
- DCreate a REST API with the default endpoint type. Create an AWS Lambda function to handle the
How the community answered
(46 responses)- A11% (5)
- B78% (36)
- C7% (3)
- D4% (2)
Explanation
A REST API (not an HTTP API) supports API keys, usage plans, request validation, and “Test” invocations in the console. By configuring the Lambda integration to use the Event invocation type, API Gateway will enqueue the encoding job and immediately return a 202 response, letting your background process run without blocking the client.
Community Discussion
No community discussion yet for this question.