SAP-C02 Study Assistant

SAP-C02 Question 266

Lambda CloudFront S3 Step Functions

Question

A company’s interactive web application uses an Amazon CloudFront distribution to serve images from an Amazon S3 bucket. Occasionally, third-party tools ingest corrupted images into the S3 bucket. This image corruption causes a poor user experience in the application later. The company has successfully implemented and tested Python logic to detect corrupt images. A solutions architect must recommend a solution to integrate the detection logic with minimal latency between the ingestion and serving. Which solution will meet these requirements?

Options

A. Use a Lambda@Edge function that is invoked by a viewer-response event.

B. Use a Lambda@Edge function that is invoked by an origin-response event.

C. Use an S3 event notification that invokes an AWS Lambda function.

D. Use an S3 event notification that invokes an AWS Step Functions state machine.

Answer

C

Explanation

Correct answer: C Explanation: The best answer is C. Correct option: C. Use an S3 event notification that invokes an AWS Lambda function. Why this is correct: This option most directly satisfies the hard requirements in ...

Log in to view the full explanation