
Answer-first summary for fast verification
Answer: Use Amazon CloudWatch Events to schedule the Lambda function to run every hour, which processes data from Kinesis and writes to DynamoDB.
Option B is the correct approach as it utilizes CloudWatch Events for scheduling, which is a managed service that ensures reliability and scalability. This setup aligns with serverless principles and automates the pipeline execution based on a schedule.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Consider a scenario where you need to schedule a data pipeline to run every hour to process real-time data from IoT devices. The pipeline involves extracting data from Amazon Kinesis Data Streams, transforming it with AWS Lambda, and loading it into Amazon DynamoDB. How would you configure AWS services to handle this requirement?
A
Set up a cron job on an EC2 instance to trigger the Lambda function every hour.
B
Use Amazon CloudWatch Events to schedule the Lambda function to run every hour, which processes data from Kinesis and writes to DynamoDB.
C
Manually trigger the Lambda function via the AWS Management Console every hour.
D
Use Amazon SNS to send a notification every hour to trigger the Lambda function.
No comments yet.