Ultimate access to all questions.
A company operates a blog post application on AWS, utilizing Amazon API Gateway, Amazon DynamoDB, and AWS Lambda. The application currently lacks API key authorization for requests. The API endpoints include: GET /posts/{postId} for retrieving post details, GET /users/{userId} for fetching user details, and GET /comments/{commentId} for obtaining comment details. The company has observed active discussions in the comments section and aims to enhance user engagement by making comments appear in real time. Which architectural design should be implemented to minimize comment retrieval latency and improve the overall user experience?
Explanation:
The correct answer is C. AWS AppSync, which supports WebSockets, is ideal for delivering real-time updates. This matches the requirement to make comments appear in real time, improving user engagement and reducing latency. Other options like using edge-optimized API with Amazon CloudFront (Option A), modifying the application to poll for comments every 10 seconds (Option B), and changing the concurrency limit of Lambda functions (Option D) do not provide real-time data updates as effectively as AppSync with WebSockets.