QuestionQ56

VerifiedDeployment

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?

Explanation

An Amazon EventBridge scheduled rule (cron expression) invokes the Lambda function once at the specified time each day, then the Lambda function analyzes all reports accumulated since the previous run. This is the most cost-effective serverless solution because it charges only for the single daily invocation and avoids repeated invocations on each report upload. S3 event notifications (A) trigger on every upload; Step Functions (B) adds unnecessary complexity; continuously running Lambda (C) is inefficient and expensive.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!