
Explanation:
The correct answer is A. Amazon EventBridge, formerly known as CloudWatch Events, allows you to set up a rule with a specific schedule using cron or rate expressions. By using a rate expression of rate(15 minutes), EventBridge can directly target a Lambda function, making it a straightforward and low-effort solution to execute the function at regular intervals. This approach requires the least development effort compared to other options, which involve additional configuration or management of EC2 instances.
Ultimate access to all questions.
In a serverless AWS application, how can a developer efficiently schedule a Lambda function to calculate and store order success rates in a DynamoDB table every 15 minutes with minimal development effort?
A
Utilize Amazon EventBridge with a rate expression for 15-minute intervals, targeting the Lambda function.
B
Employ AWS Systems Manager to run a script on EC2 via Run Command every 15 minutes to invoke the Lambda function.
C
Configure an AWS Step Functions state machine with a 15-minute Wait state to periodically invoke the Lambda function.
D
Deploy an EC2 instance and use a cron job to trigger the Lambda function every 15 minutes.
No comments yet.