A Developer created an AWS Lambda function and has asked the SysOps Administrator to make this function run every 15 minutes. What is the MOST efficient way to accomplish this request?
A.
Create an Amazon EC2 instance and schedule a cron to invoke the Lambda function.
B.
Create a Repeat Time variable inside the Lambda function to invoke the Lamdba function.
C.
Create a second Lambda function to monitor and invoke the first Lamdba function.
D.
Create an Amazon CloudWatch scheduled event to invoke the Lambda function.
Amazon CloudWatch allows you to schedule events at specified intervals using cron or rate expressions. You can create a CloudWatch scheduled event with a cron expression that triggers the Lambda function at the desired interval, in this case, every 15 minutes.
By configuring the CloudWatch scheduled event to invoke the Lambda function, you can ensure that the function runs automatically and at the specified frequency without the need for additional infrastructure or manual intervention. This is a cost-effective and efficient way to schedule and automate the execution of the Lambda function.
You can create rules that self-trigger on an automated schedule in CloudWatch Events using cron or rate expressions. All scheduled events use UTC time zone and the minimum precision for schedules is 1 minute.
CloudWatch Events supports cron expressions and rate expressions. Rate expressions are simpler to define but don't offer the fine-grained schedule control that cron expressions support. For example, with a cron expression, you can define a rule that triggers at a specified time on a certain day of each week or month. In contrast, rate expressions trigger a rule at a regular rate, such as once every hour or once every day.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
saumenP
Highly Voted 2 years, 7 months agosaumenP
Highly Voted 2 years, 7 months agowhite_shadow
2 years, 6 months agoalbert_kuo
Most Recent 10 months agoFinger41
1 year, 10 months agosapien45
2 years, 5 months agoRicardoD
2 years, 6 months agoHVarada
2 years, 6 months agoabhishek_m_86
2 years, 6 months agojackdryan
2 years, 6 months agoMFDOOM
2 years, 6 months agosen12
2 years, 6 months agoAbreddy
2 years, 6 months ago