AWS Certified Developer – Associate — Question 69

A developer needs to build and deploy a serverless application that has an API that mobile clients will use. The API will use Amazon DynamoDB and Amazon
OpenSearch Service (Amazon Elasticsearch Service) as data sources. Responses that are sent to the clients will contain aggregated data from both data sources.
The developer must minimize the number of API endpoints and must minimize the number of API calls that are required to retrieve the necessary data.
Which solution should the developer use to meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A, GraphQL API on AWS AppSync, because it allows efficient data retrieval from multiple sources and minimizes the number of API calls through its querying capabilities. The other options, such as a REST API on Amazon API Gateway or AWS Elastic Beanstalk, would require more endpoints and calls to aggregate data from both DynamoDB and OpenSearch, making them less efficient for the developer's needs.