Q13 — AWS DVA-C02 Ch.3
Question 13 of 100 | ← Chapter 3
A retail company is developing a serverless application running on AWS. The application uses an AWS Lambda function to calculate order success rates, with data stored in an Amazon DynamoDB table. The developer wants to invoke the Lambda function efficiently every 15 minutes. Which solution requires the least development effort to meet this requirement?
- A. Create an Amazon EventBridge rule with a rate expression that runs every 15 minutes and configure the Lambda function as the rule’s target. ✓
- B. Create an AWS Systems Manager document containing a script that invokes the Lambda function on Amazon EC2, and use Systems Manager Run Command to execute the script every 15 minutes.
- C. Create an AWS Step Functions state machine configured with a Wait state to invoke the Lambda function at 15-minute intervals.
- D. Launch a small Amazon EC2 instance and configure a cron job to invoke the Lambda function every 15 minutes.
Correct Answer: A. Create an Amazon EventBridge rule with a rate expression that runs every 15 minutes and configure the Lambda function as the rule’s target.
Explanation
Option A leverages Amazon EventBridge’s built-in rate-based scheduling, requiring minimal configuration and zero infrastructure management. Options B and D introduce unnecessary EC2 dependencies and operational overhead. Option C adds complexity beyond simple periodic invocation. Therefore, option A delivers the required functionality with the least development effort.