DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 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?

Show Answer
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

4 comments
Sign in to comment
MrTeeOption: A
Apr 21, 2023

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
Aug 3, 2023

greate !! send email do not need SQS.

payireb682
Dec 7, 2023

Thanks. As mentioned Multiple subscription can be added for SNS

SerialiDrOption: A
Jan 14, 2024

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.

65703c1Option: A
May 22, 2024

A is the correct answer.

Tluszczyk
Jul 18, 2024

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