Exam SAP-C02 All QuestionsBrowse all questions from this exam
Question 375

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?

    Correct Answer: C

    To meet the requirements of handling significant variance in demand, reliability at enterprise scale, and the ability to rerun processing jobs in case of failure, using S3 Event Notifications to trigger an AWS Lambda function is a fitting approach. This ensures scalability and reliability. The Lambda function can efficiently handle image resizing in place. Additionally, creating an S3 Lifecycle policy to move files to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months aligns with the cost-effective storage solution. The redundant approach of archiving or adding steps for merely 6-month storage in Option D is unnecessary, making Option C the most cost-effective and practical choice.

Discussion
thalaOption: 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.

yuliaqwerty

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

LazyAutonomyOption: 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.

chelbsik

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.

trap

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

e4bc18e

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/

thotwielderOption: 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..

FF2024

B is the answer. A is wrong - AWS Step Function cannot directly be invoked by S3 Event Notification.

DgixOption: 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.

igor12ghsj577Option: 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.

053081f

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?

awsazOption: A

A is the answer

HelpnosenseOption: D

Vote D because the requirement "rerun processing jobs in the event of failure." Glacier Deep archive is also really cost-effective

9f02c8d

Option D is right answer as it gets the batch files with significant variance in demand

teo2157Option: 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.

SKS

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 .

hogtroughOption: 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.

arberodOption: B

It is B

eleOption: 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.