nerdexam
Amazon

SAP-C02 · Question #552

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…

The correct answer is C. Use AWS AppSync and leverage WebSockets to deliver comments. 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…

Submitted by helene.fr· Mar 6, 2026Migrate Workloads and Modernize Solutions

Question

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?

Options

  • AUse edge-optimized API with Amazon CloudFront to cache API responses.
  • BModify the blog application code to request GET/comments/{commentId} every 10 seconds.
  • CUse AWS AppSync and leverage WebSockets to deliver comments.
  • DChange the concurrency limit of the Lambda functions to lower the API response time.

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    27% (12)
  • C
    55% (24)
  • D
    11% (5)

Explanation

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.

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice