SAP-C02 · Question #662
A company needs to store and process image data that will be uploaded from mobile devices using a custom mobile app. Usage peaks between 8 AM and 5 PM on weekdays, with thousands of uploads per…
The correct answer is B. Upload files from the mobile software directly to Amazon S3. Use S3 event notifications to create C. Invoke an AWS Lambda function to perform image processing when a message is available in E. Send a push notification to the mobile app by using Amazon Simple Notification Service (Amazon. The company needs a scalable solution for processing image uploads from mobile devices with peak usage patterns, and users must be notified upon completion.
Question
A company needs to store and process image data that will be uploaded from mobile devices using a custom mobile app. Usage peaks between 8 AM and 5 PM on weekdays, with thousands of uploads per minute. The app is rarely used at any other time. A user is notified when image processing is complete. Which combination of actions should a solutions architect take to ensure image processing can scale to handle the load? (Choose three.)
Options
- AUpload files from the mobile software directly to Amazon S3. Use S3 event notifications to create
- BUpload files from the mobile software directly to Amazon S3. Use S3 event notifications to create
- CInvoke an AWS Lambda function to perform image processing when a message is available in
- DInvoke an S3 Batch Operations job to perform image processing when a message is available in
- ESend a push notification to the mobile app by using Amazon Simple Notification Service (Amazon
- FSend a push notification to the mobile app by using Amazon Simple Email Service (Amazon SES)
How the community answered
(31 responses)- A13% (4)
- B77% (24)
- D3% (1)
- F6% (2)
Why each option
The company needs a scalable solution for processing image uploads from mobile devices with peak usage patterns, and users must be notified upon completion.
Directly invoking an AWS Step Functions state machine for each upload without a queue can be less efficient and potentially lead to throttling or higher costs for simple, high-volume event processing compared to SQS and Lambda.
Uploading files directly to Amazon S3 provides highly scalable and durable storage, and S3 event notifications trigger an SQS queue, which buffers messages during peak loads for asynchronous, scalable processing.
An AWS Lambda function consuming from the SQS queue provides serverless, automatically scaling compute for image processing, perfectly handling thousands of uploads per minute without server management.
S3 Batch Operations are designed for performing large-scale operations on existing S3 objects, not for real-time, event-driven processing of newly uploaded individual objects through a queue.
Amazon SNS can reliably send push notifications to mobile applications, ensuring users are informed promptly when their image processing is complete.
Amazon SES is an email service, not a service for sending push notifications directly to mobile applications; Amazon SNS is the appropriate service for mobile push notifications.
Concept tested: Serverless event-driven image processing with notifications
Source: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
Community Discussion
No community discussion yet for this question.