ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 176 - DVA-C02 discussion

Report
Export

A company runs an application on AWS The application uses an AWS Lambda function that is configured with an Amazon Simple Queue Service (Amazon SQS) queue called high priority queue as the event source A developer is updating the Lambda function with another SQS queue called low priority queue as the event source The Lambda function must always read up to 10 simultaneous messages from the high priority queue before processing messages from low priority queue. The Lambda function must be limited to 100 simultaneous invocations.

Which solution will meet these requirements'?

A.
Set the event source mapping batch size to 10 for the high priority queue and to 90 for the low priority queue
Answers
A.
Set the event source mapping batch size to 10 for the high priority queue and to 90 for the low priority queue
B.
Set the delivery delay to 0 seconds for the high priority queue and to 10 seconds for the low priority queue
Answers
B.
Set the delivery delay to 0 seconds for the high priority queue and to 10 seconds for the low priority queue
C.
Set the event source mapping maximum concurrency to 10 for the high priority queue and to 90 for the low priority queue
Answers
C.
Set the event source mapping maximum concurrency to 10 for the high priority queue and to 90 for the low priority queue
D.
Set the event source mapping batch window to 10 for the high priority queue and to 90 for the low priority queue
Answers
D.
Set the event source mapping batch window to 10 for the high priority queue and to 90 for the low priority queue
Suggested answer: C

Explanation:

Lambda Concurrency:The 'maximum concurrency' setting in event source mappings controls the maximum number of simultaneous invocations Lambda allows for that specific source.

Prioritizing Queues:Setting a lower maximum concurrency for the 'high priority queue' ensures it's processed first while allowing more concurrent invocations from the 'low priority queue'.

Batching:Batch size settings affect the number of messages Lambda retrieves from a queue per invocation, which is less relevant to the prioritization requirement.

Lambda Event Source Mappings:https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html

Lambda Concurrency:https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html

asked 16/09/2024
Ronald Zegwaard
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first