
Answer-first summary for fast verification
Answer: Lambda function trigger set to the S3 bucket for new file uploads.
The correct answer is C. Adding a trigger to your Lambda function is the solution that will meet the requirement of processing data files immediately after they are uploaded to an Amazon S3 bucket. A trigger is an event that can invoke a Lambda function, and in this case, the trigger must be an Amazon S3 event that fires when a new file is uploaded to the bucket. Options A and B involve different mechanisms that are unnecessary for this scenario, and option D is incorrect as adding a layer does not achieve the intended outcome.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
An AWS Lambda function is needed to process data files from IoT devices uploaded hourly to an Amazon S3 bucket. The function must be triggered immediately upon file upload. Which configuration should be used to achieve this?
A
Asynchronous invocation with the S3 bucket as the event source.
B
Amazon EventBridge event linked to the Lambda function with the S3 bucket as the event source.
C
Lambda function trigger set to the S3 bucket for new file uploads.
D
Adding a layer to the Lambda function with the S3 bucket as the event source.
No comments yet.