exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 517 discussion

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.
  • 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.
  • D. Create an AWS Lambda function that runs when a file is delivered to Amazon S3 using S3 event notifications.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
donathon
Highly Voted 3 years, 8 months ago
D A: Will not help. B: Not feasible since it is based on a schedule not event. C: This is still based on schedule.
upvoted 28 times
donathon
3 years, 8 months ago
https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
upvoted 2 times
PacoDerek
3 years, 8 months ago
C as s3 event may lost. cloudwatch event is more reliable. using rate expression to trigger Lambda is ok
upvoted 1 times
PacoDerek
3 years, 8 months ago
https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
upvoted 2 times
LunchTime
3 years, 7 months ago
D is the correct answer. If S3 event notifications are configured property, this will not be an issue, as explained in the following link: https://aws.amazon.com/premiumsupport/knowledge-center/lambda-configure-s3-event-notification/
upvoted 1 times
...
...
pixepe
2 years, 8 months ago
C (hourly schedule) is INCORRECT as requirement is "The data consumers ask for the data be available as soon as possible." D is correct
upvoted 1 times
...
...
...
shammous
3 years, 7 months ago
D is the answer, but I disagree with you regarding CW Event being "still based on schedule". It can do the same job as S3 events by instantaneously triggering a lambda function based on a write event on S3, but the fact that it should be "as soon as possible" make S3 events service a better choice as it will perform quicker than CW Event.
upvoted 3 times
...
...
uopspop
Highly Voted 3 years, 8 months ago
prefer D, too. C is still hour-based, which is not "as soon as possible".
upvoted 9 times
...
SkyZeroZx
Most Recent 1 year, 11 months ago
Selected Answer: D
D https://aws.amazon.com/blogs/aws/s3-event-notification/
upvoted 1 times
...
Racinely
3 years ago
Explanation https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
upvoted 1 times
...
AzureDP900
3 years, 5 months ago
D is fine with me. Amazon S3 using S3 event notifications
upvoted 1 times
...
cldy
3 years, 5 months ago
D. Create an AWS Lambda function that runs when a file is delivered to Amazon S3 using S3 event notifications.
upvoted 1 times
...
moon2351
3 years, 6 months ago
D is correct
upvoted 1 times
...
WhyIronMan
3 years, 6 months ago
I'll go with D
upvoted 1 times
...
Waiweng
3 years, 6 months ago
it's D
upvoted 2 times
...
Kian1
3 years, 6 months ago
going with D
upvoted 2 times
...
Ebi
3 years, 6 months ago
Answer is D
upvoted 4 times
...
Bulti
3 years, 7 months ago
D is correct
upvoted 2 times
...
T14102020
3 years, 7 months ago
Correct is D. Lambda runs when a file is delivered
upvoted 2 times
...
jackdryan
3 years, 7 months ago
I'll go with D
upvoted 3 times
...
gookseang
3 years, 7 months ago
DDDDDDDDDDDDDD
upvoted 2 times
...
Paitan
3 years, 7 months ago
Definitely D. Since we are calling Lambda based on S3 notifications, 15 minutes limit of Lambda is not an issue here.
upvoted 1 times
...
fullaws
3 years, 7 months ago
D is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...