Bird
0
0

You want a Lambda function to process messages from multiple SQS queues. What is the best way to configure triggers?

hard📝 Application Q8 of 15
AWS - Lambda
You want a Lambda function to process messages from multiple SQS queues. What is the best way to configure triggers?
AUse SNS to fan out messages to Lambda from all queues
BCombine all queues into one and trigger Lambda once
CCreate separate event source mappings for each SQS queue to the same Lambda
DConfigure one event source mapping with multiple queue ARNs
Step-by-Step Solution
Solution:
  1. Step 1: Understand event source mapping for SQS

    Each SQS queue requires its own event source mapping to trigger Lambda.
  2. Step 2: Evaluate other options

    Combining queues is not straightforward; SNS fans out messages from topics, not queues; one mapping cannot have multiple ARNs.
  3. Final Answer:

    Create separate event source mappings for each SQS queue to the same Lambda -> Option C
  4. Quick Check:

    One event source mapping per SQS queue [OK]
Quick Trick: Use one event source mapping per SQS queue for Lambda triggers [OK]
Common Mistakes:
  • Trying to use one mapping for multiple queues
  • Confusing SNS topics with SQS queues
  • Attempting to merge queues instead of mapping

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes