
Answer-first summary for fast verification
Answer: Use API Gateway WebSocket API for real-time communication, associating user uploads with WebSocket IDs and pushing validation status updates.
Option A is the correct answer because it leverages the real-time capabilities of the API Gateway WebSocket API. This method allows the application to associate user-uploaded files with the WebSocket connection ID. When the validation process is complete, the application can push the validation status directly to the connected client, enabling immediate updates on the user dashboard without the need for manual refreshes. This is the most operationally efficient solution that meets the requirement for immediate updates without additional complexity or delays introduced by other methods.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer refactor a data collection application using Amazon API Gateway, AWS Lambda, and Amazon S3 to provide real-time validation status updates on a user dashboard without manual refreshes?
A
Use API Gateway WebSocket API for real-time communication, associating user uploads with WebSocket IDs and pushing validation status updates.
B
Deploy a WebSocket server on an EC2 instance to manage real-time updates by receiving user file uploads and pushing processing status to the user interface.
C
Utilize Amazon SNS for sending email notifications to users upon completion of the file validation process.
D
Leverage DynamoDB Streams in conjunction with Amazon SNS for real-time dashboard updates by streaming data changes and pushing notifications to the user interface.
No comments yet.