AWS Certified SysOps Administrator – Associate (legacy) — Question 81
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?
Answer options
- 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.
Correct answer: D
Explanation
The correct answer is D because Amazon CloudWatch scheduled events are designed specifically to trigger AWS Lambda functions at defined intervals, making it the most efficient solution. Options A and C introduce unnecessary complexity and resource usage by involving EC2 instances or additional Lambda functions, while option B incorrectly suggests self-invocation through a variable, which does not provide a scheduled execution capability.