ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 29 - SAP-C01 discussion

Report
Export

A company receives clickstream data files to Amazon S3 every five minutes. A Python script runs as a cron job once a day on an Amazon EC2 instance to process each file and load it into a database hosted on Amazon RDS. The cron job takes 15 to 30 minutes to process 24 hours of data. The data consumers ask for the data be available as soon as possible. Which solution would accomplish the desired outcome?

A.
Increase the size of the instance to speed up processing and update the schedule to run once an hour.
Answers
A.
Increase the size of the instance to speed up processing and update the schedule to run once an hour.
B.
Convert the cron job to an AWS Lambda function and trigger this new function using a cron job on an EC2 instance.
Answers
B.
Convert the cron job to an AWS Lambda function and trigger this new function using a cron job on an EC2 instance.
C.
Convert the cron job to an AWS Lambda function and schedule it to run once an hour using Amazon CloudWatch Events.
Answers
C.
Convert the cron job to an AWS Lambda function and schedule it to run once an hour using Amazon CloudWatch Events.
D.
Create an AWS Lambda function that runs when a file is delivered to Amazon S3 using S3 event notifications.
Answers
D.
Create an AWS Lambda function that runs when a file is delivered to Amazon S3 using S3 event notifications.
Suggested answer: D

Explanation:

Reference: https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html

asked 16/09/2024
David Aghaegbuna
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first