Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 96

A developer is creating a service that uses an Amazon S3 bucket for image uploads. The service will use an AWS Lambda function to create a thumbnail of each image. Each time an image is uploaded, the service needs to send an email notification and create the thumbnail. The developer needs to configure the image processing and email notifications setup.

Which solution will meet these requirements?

    Correct Answer: A

    The solution should allow S3 to send notifications to both the Lambda function for creating thumbnails and an email service for notifications. Configuring Amazon S3 event notifications with an Amazon SNS topic as the destination allows for multiple subscriptions. The Lambda function can be subscribed to the SNS topic for thumbnail creation, and an email notification can be subscribed to the same SNS topic. This setup ensures minimal components and meets all specified requirements.

Discussion
MrTeeOption: A

This solution will allow the developer to receive notifications for each image uploaded to the S3 bucket, and also create a thumbnail using the Lambda function. The SNS topic will serve as a trigger for both the Lambda function and the email notification subscription. When an image is uploaded, S3 will send a notification to the SNS topic, which will trigger the Lambda function to create the thumbnail and also send an email notification to the specified email address.

jipark

greate !! send email do not need SQS.

payireb682

Thanks. As mentioned Multiple subscription can be added for SNS

SerialiDrOption: A

SNS can be used to fan out notifications. When an image is uploaded to the S3 bucket, an event notification is sent to the SNS topic. The Lambda function is subscribed to this topic to create a thumbnail, and an email subscription can also be configured on the same SNS topic to send email notifications. This approach meets all requirements with minimal components.

Tluszczyk

None of these is really an optimal solution to the problem, which is a little annoying really

65703c1Option: A

A is the correct answer.