Bird
0
0

Which of the following is the correct way to configure an SQS queue as an event source for a Lambda function?

easy📝 Configuration Q12 of 15
AWS - Lambda
Which of the following is the correct way to configure an SQS queue as an event source for a Lambda function?
AEnable CloudWatch Events on the SQS queue
BAdd an S3 trigger to the Lambda function
CAttach an IAM role to the SQS queue
DCreate an event source mapping between the SQS queue and Lambda
Step-by-Step Solution
Solution:
  1. Step 1: Know how Lambda connects to SQS

    Lambda uses event source mappings to poll messages from SQS queues.
  2. Step 2: Identify correct configuration

    Creating an event source mapping links the SQS queue to Lambda for automatic invocation.
  3. Final Answer:

    Create an event source mapping between the SQS queue and Lambda -> Option D
  4. Quick Check:

    SQS triggers Lambda via event source mapping = D [OK]
Quick Trick: Event source mapping links SQS to Lambda directly [OK]
Common Mistakes:
MISTAKES
  • Confusing S3 triggers with SQS triggers
  • Attaching IAM roles to SQS instead of Lambda
  • Using CloudWatch Events incorrectly for SQS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes