Topic 1 Question 285
A company hosts a blog post application on AWS using Amazon API Gateway, Amazon DynamoDB, and AWS Lambda. The application currently does not use API keys to authorize requests. The API model is as follows:
GET /posts/{postId}: to get post details GET /users/{userId}: to get user details GET /comments/{commentId}: to get comments details
The company has noticed users are actively discussing topics in the comments section, and the company wants to increase user engagement by making the comments appear in real time.
Which design should be used to reduce comment latency and improve user experience?
Use edge-optimized API with Amazon CloudFront to cache API responses.
Modify the blog application code to request GET/comments/{commentId} every 10 seconds.
Use AWS AppSync and leverage WebSockets to deliver comments.
Change the concurrency limit of the Lambda functions to lower the API response time.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: C
AWS AppSync is a managed service that uses GraphQL to make it easy for applications to get exactly the data they need. With AppSync, you can build scalable applications, including those requiring real-time updates, on a range of data sources such as NoSQL data stores, relational databases, HTTP APIs, and your custom data sources with AWS Lambda.
👍 2gd12023/06/24 - 正解だと思う選択肢: C
C is correct others are not real time and cost effective
👍 2shree20232023/06/24 - 正解だと思う選択肢: C
Option C (Use AWS AppSync and leverage WebSockets to deliver comments) is the most appropriate solution for real-time comments. AWS AppSync is a fully managed service that simplifies real-time data synchronization and offline capabilities for applications. It supports WebSockets, which enables real-time communication between clients and the server. By leveraging AppSync and WebSockets, the comments can be delivered instantly to users as they are posted, reducing comment latency and improving user engagement.
👍 2Alabi2023/06/25
シャッフルモード