A development team is creating an event-based application that uses AWS Lambda functions. Events are generated when files are added to an Amazon S3 bucket. The team currently has Amazon Simple Notification Service (Amazon SNS) configured as the event target from Amazon S3. What should a solutions architect do to process the events from Amazon S3 in a scalable way?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an SNS subscription that sends the event to Amazon Simple Queue Service (Amazon SQS). Configure the SQS queue to trigger a Lambda function..
Why this is the answer
The correct solution is to send the event to Amazon SQS and then trigger the Lambda function from SQS. This provides scalability and reliability. SQS acts as a buffer, decoupling the S3 event source from the Lambda function. If the Lambda function experiences a high volume of events or encounters errors, SQS will queue the messages, preventing data loss and allowing the Lambda function to process them at its own pace. This also enables features like dead-letter queues and retry policies for robust error handling. Using ECS or EKS before Lambda would introduce unnecessary complexity and overhead, as Lambda is designed for event-driven, serverless processing. AWS Server Migration Service (AWS SMS) is for migrating virtual machines and is not relevant to event processing.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed