ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 198 - SAP-C02 discussion

Report
Export

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 marking the comments appears in real time.

Which design should be used to reduce comment latency and improve user experience?


A.
Use edge-optimized API with Amazon CloudFront to cache API responses.
Answers
A.
Use edge-optimized API with Amazon CloudFront to cache API responses.
B.
Modify the blog application code to request GET comment[commented] every 10 seconds.
Answers
B.
Modify the blog application code to request GET comment[commented] every 10 seconds.
C.
Use AWS AppSync and leverage WebSockets to deliver comments.
Answers
C.
Use AWS AppSync and leverage WebSockets to deliver comments.
D.
Change the concurrency limit of the Lambda functions to lower the API response time.
Answers
D.
Change the concurrency limit of the Lambda functions to lower the API response time.
Suggested answer: C

Explanation:

https://docs.aws.amazon.com/appsync/latest/devguide/graphql-overview.html

AWS AppSync is a fully managed GraphQL service that allows applications to securely access, manipulate, and receive data as well as real-time updates from multiple data sources1.AWS AppSync supports GraphQL subscriptions to perform real-time operations and can push data to clients that choose to listen to specific events from the backend1.AWS AppSync uses WebSockets to establish and maintain a secure connection between the clients and the API endpoint2. Therefore, using AWS AppSync and leveraging WebSockets is a suitable design to reduce comment latency and improve user experience.

asked 16/09/2024
Arun Samuel
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first