Q3 — AWS DVA-C02 Ch.1
Question 3 of 100 | ← Chapter 1
A developer must build and deploy a serverless application with an API intended for mobile clients. The API will use Amazon DynamoDB and Amazon OpenSearch Service (formerly Amazon Elasticsearch Service) as data sources. Responses sent to clients will contain aggregated data from both data sources. The developer must minimize the number of API endpoints and reduce the number of API calls required to retrieve necessary data. Which solution should the developer use to meet these requirements?
- A. GraphQL API on AWS AppSync ✓
- B. REST API on Amazon API Gateway
- C. GraphQL API on Amazon EC2 instances
- D. REST API on AWS Elastic Beanstalk
Correct Answer: A. GraphQL API on AWS AppSync
Explanation
AppSync integrates natively with DynamoDB and OpenSearch Service and supports minimizing API endpoints. With AppSync, clients issue a single request specifying exactly the data they need. In contrast, API Gateway would require multiple endpoints to serve data from disparate sources.