
Answer-first summary for fast verification
Answer: Establish an Amazon EventBridge rule to detect S3 object creation events., Configure the Lambda function with an EventBridge trigger corresponding to the created rule.
Option A is correct because creating an Amazon EventBridge rule with a pattern to match the S3 object created event will detect when a new .csv file is uploaded to the S3 bucket. Option C is also correct because associating the existing Lambda function with the EventBridge rule ensures that the Lambda function is triggered when the specified event (i.e., the upload of a .csv file) occurs. While other options suggest scanning the S3 bucket or using lifecycle rules, they are not as direct or efficient in setting up an automatic trigger based on new file uploads.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an application that processes .csv files from Amazon S3, a developer has set up an S3 bucket and a Lambda function for file processing. Identify the correct two-step process to trigger the Lambda function upon uploading a .csv file to S3.
A
Establish an Amazon EventBridge rule to detect S3 object creation events.
B
Implement an Amazon EventBridge rule to periodically invoke a Lambda function for scanning the S3 bucket.
C
Configure the Lambda function with an EventBridge trigger corresponding to the created rule.
D
Develop a Lambda function designed to monitor the S3 bucket for new object additions.
E
Utilize S3 Lifecycle rules to directly invoke the Lambda function.
No comments yet.