Q46 — AWS DVA-C02 Ch.2

Question 46 of 100 | ← Chapter 2

A developer is building a service that uses an Amazon S3 bucket for image uploads. The service will use an AWS Lambda function to generate thumbnails for each uploaded image. Each time an image is uploaded, the service must send an email notification confirming thumbnail creation. The developer needs to configure both image processing and email notification. Which solution meets these requirements?

Correct Answer: A. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure S3 event notifications with the target set to the SNS topic. Subscribe the Lambda function to the SNS topic. Create an email subscription for the SNS topic.

Explanation

Option A uses an Amazon SNS topic with S3 event notifications, where the Lambda function subscribes to the SNS topic. This enables triggering the Lambda function upon image upload for thumbnail generation and sending email notifications via the SNS topic—a simple and effective configuration. Options B and C introduce unnecessary SQS queues, adding complexity. Option D introduces Amazon EventBridge, which is over-engineered for this straightforward image upload and processing scenario. Thus, option A is the most direct and simple solution. 【Lantern Certification provided by: swufelp1999】