AWS Certified Solutions Architect – Associate (SAA-C02) — Question 215
A company hosts an application used to upload files to an Amazon S3 bucket. Once uploaded, the files are processed to extract metadata, which takes less than
5 seconds. The volume and frequency of the uploads varies from a few files each hour to hundreds of concurrent uploads. The company has asked a solutions architect to design a cost-effective architecture that will meet these requirements.
What should the solutions architect recommend?
Answer options
- A. Configure AWS CloudTrail trails to log S3 API calls. Use AWS AppSync to process the files.
- B. Configure an object-created event notification within the S3 bucket to invoke an AWS Lambda function to process the files.
- C. Configure Amazon Kinesis Data Streams to process and send data to Amazon S3. Invoke an AWS Lambda function to process the files.
- D. Configure an Amazon Simple Notification Service (Amazon SNS) topic to process the files uploaded to Amazon S3. Invoke an AWS Lambda function to process the files.
Correct answer: B
Explanation
The correct answer is B because configuring an object-created event notification in the S3 bucket directly triggers an AWS Lambda function, which is ideal for processing files quickly and efficiently as they are uploaded. The other options either involve unnecessary complexity or are not designed for the immediate processing of files upon upload.