AWS Certified Developer – Associate (DVA-C02) — Question 88
A company is creating an application that processes .csv files from Amazon S3. A developer has created an S3 bucket. The developer has also created an AWS Lambda function to process the .csv files from the S3 bucket.
Which combination of steps will invoke the Lambda function when a .csv file is uploaded to Amazon S3? (Choose two.)
Answer options
- A. Create an Amazon EventBridge rule. Configure the rule with a pattern to match the S3 object created event.
- B. Schedule an Amazon EventBridge rule to run a new Lambda function to scan the S3 bucket.
- C. Add a trigger to the existing Lambda function. Set the trigger type to EventBridge. Select the Amazon EventBridge rule.
- D. Create a new Lambda function to scan the S3 bucket for recently added S3 objects.
- E. Add S3 Lifecycle rules to invoke the existing Lambda function.
Correct answer: A, C
Explanation
Option A is correct because creating an EventBridge rule with a pattern for the S3 object creation event allows the Lambda function to be invoked when a new .csv file is uploaded. Option C is also correct as adding a trigger to the Lambda function specifically for EventBridge will ensure that it responds to the S3 event. Options B, D, and E do not directly invoke the Lambda function upon the upload of the file as required.