AWS Certified SysOps Administrator – Associate — Question 55
A SysOps administrator needs to automate the invocation of an AWS Lambda function. The Lambda function must run at the end of each day to generate a report on data that is stored in an Amazon S3 bucket.
What is the MOST operationally efficient solution that meets these requirements?
Answer options
- A. Create an Amazon EventBridge (Amazon CloudWatch Events) rule that has an event pattern for Amazon S3 and the Lambda function as a target.
- B. Create an Amazon EventBridge (Amazon CloudWatch Events) rule that has a schedule and the Lambda function as a target.
- C. Create an S3 event notification to invoke the Lambda function whenever objects change in the S3 bucket.
- D. Deploy an Amazon EC2 instance with a cron job to invoke the Lambda function.
Correct answer: B
Explanation
The correct answer is B because scheduling an EventBridge rule allows for precise timing, ensuring the Lambda function runs at the end of each day. Option A is incorrect as it relies on S3 events, which do not align with the daily schedule requirement. Option C would trigger the function on object changes, not at a specific time, and D is less efficient due to the overhead of managing an EC2 instance.