DVA-C02 · Question #743
A developer wants to create an AWS Lambda function to handle a queue of tasks that write data to Amazon DynamoDB when the tasks are processed. The developer must implement a solution that uses…
The correct answer is A. Set the maximum concurrency of the Lambda function to 1 Subscribe the Lambda function to an. To process messages one at a time and in order, use an SQS FIFO queue with a single message group ID (ensures strict order). By setting the maximum concurrency of the Lambda function to 1, only one message is processed at a time, preserving order and avoiding parallel execution.
Question
A developer wants to create an AWS Lambda function to handle a queue of tasks that write data to Amazon DynamoDB when the tasks are processed. The developer must implement a solution that uses Amazon SQS to process the tasks one at a time and in order. Which solution will meet these requirements?
Options
- ASet the maximum concurrency of the Lambda function to 1 Subscribe the Lambda function to an
- BSet the maximum concurrency of the Lambda function to 1 Subscribe the Lambda function to an
- CSet the provisioned concurrency of the Lambda function to 1. Subscribe the Lambda function to
- DSet the maximum concurrency of the Lambda function to 1. Subscribe the Lambda function to an
How the community answered
(44 responses)- A77% (34)
- B7% (3)
- C11% (5)
- D5% (2)
Explanation
To process messages one at a time and in order, use an SQS FIFO queue with a single message group ID (ensures strict order). By setting the maximum concurrency of the Lambda function to 1, only one message is processed at a time, preserving order and avoiding parallel execution.
Community Discussion
No community discussion yet for this question.