Bird
0
0

Given this Lambda trigger configuration snippet:

medium📝 Predict Output Q13 of 15
AWS - Lambda
Given this Lambda trigger configuration snippet:
{
  "EventSourceArn": "arn:aws:sqs:us-east-1:123456789012:MyQueue",
  "FunctionName": "ProcessQueueMessages",
  "Enabled": true
}

What happens when a new message arrives in the SQS queue?
AThe Lambda function ProcessQueueMessages is invoked automatically
BThe message is deleted from the queue without processing
CThe Lambda function is not triggered until manually invoked
DAn error occurs because the configuration is incomplete
Step-by-Step Solution
Solution:
  1. Step 1: Understand event source mapping

    The snippet shows an event source mapping linking an SQS queue to a Lambda function.
  2. Step 2: Effect of Enabled=true

    With Enabled set to true, Lambda polls the queue and invokes the function on new messages.
  3. Final Answer:

    The Lambda function ProcessQueueMessages is invoked automatically -> Option A
  4. Quick Check:

    Enabled event source mapping triggers Lambda = C [OK]
Quick Trick: Enabled event source mapping means automatic Lambda invocation [OK]
Common Mistakes:
  • Assuming manual invocation is needed
  • Thinking messages get deleted without processing
  • Believing configuration is incomplete without batch size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes