Test your Apollo knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/5Score 0
What is the "N+1 query problem" in GraphQL server implementations (including those built with Apollo Server), and how does a tool like DataLoader typically address it?
Questions in this quiz
What is the "N+1 query problem" in GraphQL server implementations (including those built with Apollo Server), and how does a tool like DataLoader typically address it?
What is the purpose of the `useMutation` hook in Apollo Client, and how does it typically differ from `useQuery`?
What is a "resolver" in the context of Apollo Server (and GraphQL generally)?
What is Apollo Client's "local state management" capability (via `@client` directive fields or reactive variables), and what problem does it solve alongside remote GraphQL data?
What is the purpose of the `refetchQueries` option on an Apollo Client mutation?
What is the purpose of Apollo's schema-first (or "SDL," Schema Definition Language) approach to defining a GraphQL API's types?
What does "polling" (via Apollo Client's `pollInterval` option on `useQuery`) provide as an alternative to GraphQL subscriptions for keeping data relatively fresh?
What is Apollo (Apollo Client/Apollo Server), in the context of GraphQL development?
What is Apollo Client's "fetch policy" (like `cache-first`, `network-only`, or `cache-and-network`), and what does it control?
What is "optimistic UI" (via Apollo Client's `optimisticResponse` option on a mutation), and what user-experience problem does it address?
What is "cache normalization" combined with a mutation's ability to automatically update the cache — what does Apollo Client's `update` function (or automatic cache updates based on returned mutation data) accomplish?
What is a reasonable general criterion for deciding whether GraphQL/Apollo is a better fit for a project than a traditional REST API, versus situations where REST might remain the simpler, more appropriate choice?
Gaps to close?
Read the curated Apollo notes — core concepts, patterns, interview prep.