AWS Certified Developer – Associate — Question 240
A company with multiple branch locations has an analytics and reporting application. Each branch office pushes a sales report to a shared Amazon S3 bucket at a predefined time each day. The company has developed an AWS Lambda function that analyzes the reports from all branch offices in a single pass. The Lambda function stores the results in a database.
The company needs to start the analysis once each day at a specific time.
Which solution will meet these requirements MOST cost-effectively?
Answer options
- A. Configure an S3 event notification to invoke the Lambda function when a branch office uploads a sales report.
- B. Create an AWS Step Functions state machine that invokes the Lambda function once each day at the predefined time.
- C. Configure the Lambda function to run continuously and to begin analysis only at the predefined time each day.
- D. Create an Amazon EventBridge scheduled rule that invokes the Lambda function once each day at the predefined time.
Correct answer: D
Explanation
The correct answer is D because Amazon EventBridge allows for scheduled events, which is ideal for triggering the Lambda function at a specific time each day without the need for constant running. Option A would trigger the function too frequently and not at the required time, while B would add unnecessary complexity and cost by using AWS Step Functions. Option C is inefficient as it would keep the Lambda function running continuously, incurring additional costs.