Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 376 discussion

A company that provides image storage services wants to deploy a customer-facing solution to AWS. Millions of individual customers will use the solution. The solution will receive batches of large image files, resize the files, and store the files in an Amazon S3 bucket for up to 6 months.

The solution must handle significant variance in demand. The solution must also be reliable at enterprise scale and have the ability to rerun processing jobs in the event of failure.

Which solution will meet these requirements MOST cost-effectively?

  • A. Use AWS Step Functions to process the S3 event that occurs when a user stores an image. Run an AWS Lambda function that resizes the image in place and replaces the original file in the S3 bucket. Create an S3 Lifecycle expiration policy to expire all stored images after 6 months.
  • B. Use Amazon EventBridge to process the S3 event that occurs when a user uploads an image. Run an AWS Lambda function that resizes the image in place and replaces the original file in the S3 bucket. Create an S3 Lifecycle expiration policy to expire all stored images after 6 months.
  • C. Use S3 Event Notifications to invoke an AWS Lambda function when a user stores an image. Use the Lambda function to resize the image in place and to store the original file in the S3 bucket. Create an S3 Lifecycle policy to move all stored images to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months.
  • D. Use Amazon Simple Queue Service (Amazon SQS) to process the S3 event that occurs when a user stores an image. Run an AWS Lambda function that resizes the image and stores the resized file in an S3 bucket that uses S3 Standard-Infrequent Access (S3 Standard-IA). Create an S3 Lifecycle policy to move all stored images to S3 Glacier Deep Archive after 6 months.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
thala
Highly Voted 7 months, 2 weeks ago
Selected Answer: B
Considering the requirements, Option B (Amazon EventBridge with AWS Lambda and S3 Lifecycle Expiration Policy) seems to be the most cost-effective and appropriate solution. It combines the scalability and flexibility of AWS Lambda for image processing with the straightforward event handling of Amazon EventBridge, and appropriately manages the image lifecycle with an S3 expiration policy. While Option C is also a strong contender, the misalignment of the lifecycle policy with the requirement makes Option B a better fit. Option A might be more suitable for complex workflows but is likely not needed for this scenario, and Option D includes unnecessary long-term archival steps.
upvoted 14 times
...
yuliaqwerty
Highly Voted 6 months, 2 weeks ago
B is for sure A no because Step Function is not in list of s3 event destinations https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html C and D has option for storing data longer than 6 months which is not required
upvoted 11 times
...
053081f
Most Recent 2 hours, 33 minutes ago
I think this question is warding wrong. If we look at the requirement "store the files in an Amazon S3 bucket for up to 6 months." and decide that objects can be deleted after 6 months, C and D are excluded. But is that true? Would AWS create a problem involving such an elementary mistake?
upvoted 1 times
...
awsaz
5 days, 3 hours ago
Selected Answer: A
A is the answer
upvoted 1 times
...
Helpnosense
1 week, 3 days ago
Selected Answer: D
Vote D because the requirement "rerun processing jobs in the event of failure." Glacier Deep archive is also really cost-effective
upvoted 1 times
...
9f02c8d
1 month, 1 week ago
Option D is right answer as it gets the batch files with significant variance in demand
upvoted 1 times
...
teo2157
1 month, 2 weeks ago
Selected Answer: A
Going for A as it's the only option that achieve reprocessing, B could be a good answer but it doesn´t allow any reporcessing.
upvoted 1 times
...
thotwielder
1 month, 3 weeks ago
Selected Answer: A
a: step function for 'the ability to rerun processing jobs in the event of failure'. c,d out for keeping the files after 6 months. b: not able to rerun failures..
upvoted 2 times
...
trap
2 months, 2 weeks ago
Correct: A An S3 event is created by eventbridge and can trigger a step function. Image processing cannot be done a lambda function alone. Step function is preferred for image processing. You also need the ability to rerun the jobs. https://docs.aws.amazon.com/step-functions/latest/dg/use-cases-data-processing.html https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-cloudwatch-events-s3.html
upvoted 3 times
e4bc18e
2 months ago
That is wrong lambda functions alone can be used to resize images, there is no need for step functions, there is even an article on this from 6 YEARS AGO on how to resize images just with lambda https://aws.amazon.com/blogs/compute/resize-images-on-the-fly-with-amazon-s3-aws-lambda-and-amazon-api-gateway/
upvoted 2 times
...
...
FF2024
3 months ago
B is the answer. A is wrong - AWS Step Function cannot directly be invoked by S3 Event Notification.
upvoted 2 times
...
SKS
3 months ago
B is the best answer (cheapest option) compared to A as step functions requires event notification (for trigger) which is typically done using event bridge .
upvoted 1 times
...
Dgix
3 months, 2 weeks ago
Selected Answer: B
Another poorly worded question. First of all, C and D can be eliminated since they keep files after the 6 month period. Then, both A and B are valid. Both will use a Lambda to do the work, but the state changes in the Step Function will incur a very slight cost. Personally, I'd choose A to get control of retries, etc, but the MOST cost-effective alternative is B.
upvoted 2 times
...
hogtrough
4 months ago
Selected Answer: B
C & D are automatically eliminated as the images don't need to be stored beyond 6 months. Step Function cannot be invoked for an S3 Event, thus EventBridge.
upvoted 1 times
...
igor12ghsj577
4 months, 3 weeks ago
Selected Answer: B
By default, EventBridge retries sending the event for 24 hours and up to 185 times with an exponential back off and jitter, or randomized delay. If an event isn't delivered after all retry attempts are exhausted, the event is dropped and EventBridge doesn't continue to process it. To avoid losing events after they fail to be delivered to a target, you can configure a dead-letter queue (DLQ) and send all failed events to it for processing later.
upvoted 2 times
...
arberod
4 months, 3 weeks ago
Selected Answer: B
It is B
upvoted 1 times
...
ele
4 months, 4 weeks ago
Selected Answer: A
A is the most cost effective, and Stepfunction can retry on failure. Only missing is what will invoke STF. Still I vote for A.
upvoted 1 times
...
LazyAutonomy
5 months, 1 week ago
Selected Answer: D
A, B and C - there's no mechanism to retry failed jobs, so these options don't meet the mandatory requirement: "The solution must also be reliable at enterprise scale and have the ability to rerun processing jobs in the event of failure." There's no mandatory requirement to delete the files after 6 months. D - meets the mandatory requirements.
upvoted 4 times
chelbsik
5 months ago
Well, actually there is no requirement for archiving files either, so you just waste money on it in this case. And none of these solutions describes jobs rerun, including D, which means it works in all 4.
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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in