Question 1 of 30
A company is developing a GraphQL API to manage its product inventory. The API needs to support complex queries that allow clients to fetch products based on various filters such as category, price range, and availability status. The development team is considering implementing pagination to optimize the performance of the API when returning large datasets. Which approach should the team take to implement pagination effectively in their GraphQL API?
Use cursor-based pagination to provide a more efficient way to navigate through large datasets.
Implement offset-based pagination to allow clients to specify the starting point for data retrieval.
Return all products in a single query to simplify the API design and reduce complexity.
Use a combination of both cursor-based and offset-based pagination to cater to different client needs.

Preparing for Amazon DVA-C02 AWS Certified Developer – Associate (DVA-C02)? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free