
Answer-first summary for fast verification
Answer: Configure batch size for event source mapping to 10 for 'high priority' and 90 for 'low priority'.
The correct answer is A. To ensure that the Lambda function processes messages from the high priority queue before the low priority queue, you need to configure the event source mapping batch size to prioritize the high priority queue. Setting the batch size to 10 for the high priority queue and to 90 for the low priority queue ensures that the system processes up to 10 messages from the high priority queue first before processing any messages from the low priority queue. This configuration aligns with the requirement of reading up to 10 simultaneous messages from the high priority queue and managing a total of 100 simultaneous invocations.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an AWS application, a Lambda function is initially set with an 'high priority queue' from Amazon SQS. The function is being updated to include a 'low priority queue', with a requirement to process up to 10 messages from the high priority queue simultaneously before any from the low priority queue. The function's invocation limit is set to 100. Identify the correct configuration:
A
Configure batch size for event source mapping to 10 for 'high priority' and 90 for 'low priority'.
B
Set delivery delay to 0 seconds for 'high priority' and 10 seconds for 'low priority'.
C
Set maximum concurrency for event source mapping to 10 for 'high priority' and 90 for 'low priority'.
D
Set batch window for event source mapping to 10 for 'high priority' and 90 for 'low priority'.
No comments yet.