AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company stores user-uploaded images in an Amazon S3 bucket. Each time a new image-whether small or very large-is uploaded, an image-processing AWS Lambda function must start as quickly as possible. The company wants the simplest configuration that introduces the least additional latency or operational overhead. Which solution meets these requirements?
Configure an Amazon S3 event notification to invoke the AWS Lambda function directly
Publish an ObjectCreated event to an Amazon SNS topic that triggers the Lambda function
Enable Amazon EventBridge for the bucket and create a rule that invokes the Lambda function
Send the event to an Amazon SQS queue and configure the Lambda function to poll the queue
Configuring an Amazon S3 event notification to invoke the Lambda function is the most direct and lowest-latency option. S3 sends the ObjectCreated event to Lambda without any intermediate service, so processing begins almost immediately after the upload completes. Publishing the event to SNS or SQS first adds an extra hop; with SQS, Lambda must poll the queue, introducing additional delay. EventBridge can also receive S3 events, but it likewise adds another component and slight extra latency compared with invoking Lambda directly.
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?