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?
Publish an ObjectCreated event to an Amazon SNS topic that triggers the Lambda function
Send the event to an Amazon SQS queue and configure the Lambda function to poll the queue
Configure an Amazon S3 event notification to invoke the AWS Lambda function directly
Enable Amazon EventBridge for the bucket and create a rule that invokes the Lambda function
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 an Amazon S3 event notification?
Open an interactive chat with Bash
Why is invoking a Lambda function directly from S3 faster than using SNS or SQS?
Open an interactive chat with Bash
When would you use EventBridge instead of S3 event notifications?