SOA-C02 · Question #711
A company runs a website on Amazon EC2 instances. Users can upload images to an Amazon S3 bucket and publish the images to the website. The company wants to deploy a serverless image-processing applic
The correct answer is C. Configure S3 Event Notifications to invoke the Lambda function when a user uploads a new image. S3 Event Notifications can directly trigger a Lambda function on object-created events, letting the resize code run automatically whenever a new image is uploaded. This is the native, serverless integration required.
Question
A company runs a website on Amazon EC2 instances. Users can upload images to an Amazon S3 bucket and publish the images to the website. The company wants to deploy a serverless image-processing application that uses an AWS Lambda function to resize the uploaded images. The company’s development team has created the Lambda function. A SysOps administrator must implement a solution to invoke the Lambda function when users upload new images to the S3 bucket. Which solution will meet this requirement?
Options
- AConfigure an Amazon Simple Notification Service (Amazon SNS) topic to invoke the Lambda
- BConfigure an Amazon CloudWatch alarm to invoke the Lambda function when a user uploads a
- CConfigure S3 Event Notifications to invoke the Lambda function when a user uploads a new image
- DConfigure an Amazon Simple Queue Service (Amazon SQS) queue to invoke the Lambda function
How the community answered
(29 responses)- A10% (3)
- B3% (1)
- C83% (24)
- D3% (1)
Explanation
S3 Event Notifications can directly trigger a Lambda function on object-created events, letting the resize code run automatically whenever a new image is uploaded. This is the native, serverless integration required.
Topics
Community Discussion
No community discussion yet for this question.