DVA-C02 · Question #697
A development team is working on a mobile app that allows users to upload pictures to Amazon S3. The team expects the app will be used by hundreds of thousands of users during a single event simultane
The correct answer is B. Once a picture is uploaded to Amazon S3, publish the event to an Amazon SQS queue. Use the. Using S3 event notifications to publish to an Amazon SQS queue decouples uploads from processing, smoothing volume spikes by buffering requests. Lambda triggered by the queue processes pictures asynchronously, providing resilience and scalability without overwhelming backend serv
Question
A development team is working on a mobile app that allows users to upload pictures to Amazon S3. The team expects the app will be used by hundreds of thousands of users during a single event simultaneously. Once the pictures are uploaded, the backend service will scan and parse the pictures for inappropriate content. Which approach is the MOST resilient way to achieve this goal, which also smooths out temporary volume spikes for the backend service?
Options
- ADevelop an AWS Lambda function to check the upload folder in the S3 bucket. If new uploaded
- BOnce a picture is uploaded to Amazon S3, publish the event to an Amazon SQS queue. Use the
- CWhen the user uploads a picture, invoke an API hosted in Amazon API Gateway. The API will
- DCreate a state machine in AWS Step Functions to check the upload folder in the S3 bucket. If a
How the community answered
(49 responses)- A4% (2)
- B76% (37)
- C14% (7)
- D6% (3)
Explanation
Using S3 event notifications to publish to an Amazon SQS queue decouples uploads from processing, smoothing volume spikes by buffering requests. Lambda triggered by the queue processes pictures asynchronously, providing resilience and scalability without overwhelming backend services.
Community Discussion
No community discussion yet for this question.