AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company wants to design an event-driven solution that would trigger data processing tasks every time a new image file is uploaded to a storage service. The image files can range from small to very large. The solution should start processing with minimal delay after the upload is complete. Which service should the company use to trigger the processing task immediately after the upload?
Configure Amazon Simple Notification Service (SNS) to invoke an AWS Lambda function
Use Amazon Simple Queue Service (SQS) to queue the event and poll the queue with AWS Lambda
Integrate the storage service with Amazon Kinesis Data Streams and process batches of image uploads
Set up an Amazon CloudWatch Events/EventBridge rule to trigger the processing task
Amazon Simple Notification Service (SNS) coupled with AWS Lambda is the optimal choice since Lambda can be directly invoked by SNS in response to messages (events). When an image is uploaded to the storage service (like Amazon S3), it can publish an event to SNS, which in turn can trigger a Lambda function to process the image. This solution starts processing immediately, provides real-time, event-driven interactions, and can scale automatically with changes in the volume of image uploads. Using Amazon SQS involves unnecessary delay as messages need to be polled, and Amazon Kinesis Data Streams is designed for streaming large volumes of data in real time, which does not match the use case of individual files being processed. Amazon CloudWatch Events/EventBridge is more suitable for time-based or pattern-matching events rather than direct integration with storage services.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon Simple Notification Service (SNS)?
Open an interactive chat with Bash
What is AWS Lambda and how does it work with SNS?
Open an interactive chat with Bash
Why is using SQS not ideal for immediately processing uploads compared to SNS?