---
title: "GraphQL Fundamentals: Queries, Mutations &amp; Schema Design"
lang: "en"
author: "Mohammad Abu Mattar"
canonical: https://mkabumattar.com/post/graphql-fundamentals-quiz
---

[Home](/)›[Quizzes](/quizzes)›[All Categories](/quizzes/categories)›[GraphQL](/quizzes/categories/graphql)

Quizzes

[GraphQL](/quizzes/categories/graphql)[API Development](/quizzes/categories/api-development)[Quizzes](/quizzes/categories/quizzes)

# GraphQL Fundamentals: Queries, Mutations & Schema Design

[Mohammad Abu Mattar](/authors/mohammad-abu-mattar)20 QuestionsBeginnerPublished: 26 Feb 2026

[Markdown for AI(opens in a new tab)](/post/graphql-fundamentals-quiz/index.md "Open the plain-Markdown version of this page, for pasting into an AI tool")

Series

[APIs & Advanced Architecture](/series/apis--advanced-architecture)1/4

[NextAPI Security & Authentication: Protecting Your APIs](/quizzes/post/api-security-authentication-quiz)

All posts in this series (4)

Quizzes4

1.  [GraphQL Fundamentals: Queries, Mutations & Schema DesignYou are here](/quizzes/post/graphql-fundamentals-quiz)
2.  [API Security & Authentication: Protecting Your APIs](/quizzes/post/api-security-authentication-quiz)
3.  [Advanced API Architecture & Design Patterns](/quizzes/post/advanced-api-architecture-quiz)
4.  [System Design & Architecture: Scalability & Resilience](/quizzes/post/system-design-architecture-quiz)

## GraphQL Fundamentals: Queries, Mutations & Schema Design

Up to 20 questions, shuffled on every run

Quiz Configuration

Enterto start

Welcome to the GraphQL Basics Quiz! Learning GraphQL well matters for building efficient, flexible APIs that let clients request exactly what they need. This quiz will test your understanding of core GraphQL concepts like queries, mutations, schema design, and more. Each question checks a specific part of the GraphQL fundamentals. Good luck!

Answer key and explanations20 questions

The quiz above draws 20 questions at random from these 28, so a second attempt will not be the same run. Everything in the pool is listed here.

1.  What is the primary difference between GraphQL and REST?
    
    AnswerGraphQL lets clients request specific fields; REST returns fixed data shapes
    
2.  In GraphQL, what is a query?
    
    AnswerA read-only fetch operation used to request specific data from the server
    
3.  What is the purpose of a GraphQL schema?
    
    AnswerTo define the types, fields, and operations available in the API
    
4.  What is a mutation in GraphQL?
    
    AnswerAn operation used to create, update, or delete data on the server
    
5.  What is a resolver in GraphQL?
    
    AnswerA function that populates the data for a specific field in the schema
    
6.  In GraphQL, what is a scalar type?
    
    AnswerA primitive leaf type representing values like String, Int, or Boolean
    
7.  What does "strongly typed" mean in the context of GraphQL?
    
    AnswerThe server validates the query structure against the schema before execution
    
8.  What is a GraphQL fragment used for?
    
    AnswerTo define a reusable set of fields that can be shared across queries
    
9.  What is a subscription in GraphQL?
    
    AnswerAn operation that maintains a connection to push real-time data updates
    
10.  What does the term "N+1 query problem" mean in GraphQL?
     
     AnswerFetching a list of items results in one database call for every item
     
11.  In GraphQL, what is an "object type"?
     
     AnswerA schema type that contains a collection of named fields and their types
     
12.  What is a GraphQL argument?
     
     AnswerA value passed to a field to customize or filter the data it returns
     
13.  What does "introspection" mean in GraphQL?
     
     AnswerThe ability to query the schema itself to learn about its structure
     
14.  In GraphQL, what is a "non-null" type?
     
     AnswerA field that is guaranteed to return a value instead of a null result
     
15.  What is a GraphQL union type?
     
     AnswerA type that allows a field to return one of several different object types
     
16.  What syntax represents a list of items in a GraphQL schema?
     
     AnswerWrapping the type name in square brackets, such as \[User\]
     
17.  What is an "input type" in GraphQL?
     
     AnswerA special type used to pass complex objects as arguments to fields
     
18.  What is the difference between a root query and a root mutation?
     
     AnswerQueries are for fetching data; mutations are for changing data
     
19.  What is a "directive" in GraphQL?
     
     AnswerA modifier starting with @ that changes how a query is executed
     
20.  What does the @deprecated directive do?
     
     AnswerMarks a field as no longer supported to discourage its future use
     
21.  What is the primary purpose of a "DataLoader"?
     
     AnswerTo batch and memoize data requests to reduce database overhead
     
22.  What is a GraphQL "interface" type?
     
     AnswerAn abstract type that defines a set of fields multiple types must implement
     
23.  How are variables passed to a GraphQL query?
     
     AnswerBy defining them with a $ prefix and passing values in a JSON object
     
24.  What is "query complexity" in GraphQL?
     
     AnswerA calculation of the resource cost of a query to prevent server abuse
     
25.  What is "rate limiting" in GraphQL?
     
     AnswerRestricting the number of requests a client can make in a timeframe
     
26.  What is "schema stitching" in GraphQL?
     
     AnswerThe process of merging multiple underlying APIs into one gateway
     
27.  What is an "enum" type in GraphQL?
     
     AnswerA special scalar that restricts a field to a fixed set of values
     
28.  When would you use an "alias" in a GraphQL query?
     
     AnswerTo rename the result key of a field to avoid name collisions
     

## Tags

[#Graphql](/quizzes/tags/graphql)[#Graphql fundamentals](/quizzes/tags/graphql-fundamentals)[#Api development](/quizzes/tags/api-development)[#Queries](/quizzes/tags/queries)[#Mutations](/quizzes/tags/mutations)[#Subscriptions](/quizzes/tags/subscriptions)[#Schema design](/quizzes/tags/schema-design)[#Rest vs graphql](/quizzes/tags/rest-vs-graphql)[#Resolvers](/quizzes/tags/resolvers)[#Type system](/quizzes/tags/type-system)[#Graphql tools](/quizzes/tags/graphql-tools)[#Apollo graphql](/quizzes/tags/apollo-graphql)[#Error handling](/quizzes/tags/error-handling)[#Data fetching](/quizzes/tags/data-fetching)

## Share

[Facebook](https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz "Share on Facebook")[Twitter](https://twitter.com/intent/tweet/?text=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz "Share on Twitter")[LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz&title=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design&summary=Master%20GraphQL%20foundations%3A%20queries%2C%20mutations%2C%20subscriptions%2C%20and%20schema%20design.&source=https://mkabumattar.com "Share on LinkedIn")[WhatsApp](https://wa.me/?text=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design%20https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz "Share on WhatsApp")[Telegram](https://t.me/share/url?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz&text=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design "Share on Telegram")[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz&title=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design "Share on Reddit")[Hacker News](http://news.ycombinator.com/submitlink?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz&t=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design "Share on Hacker News")[Pinterest](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz&media=&description=Master%20GraphQL%20foundations%3A%20queries%2C%20mutations%2C%20subscriptions%2C%20and%20schema%20design. "Share on Pinterest")[Email](<mailto:?subject=GraphQL%20Fundamentals%3A%20Queries%2C%20Mutations%20%26%20Schema%20Design&body=Check out this article: https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgraphql-fundamentals-quiz>)

## Comments

Was this useful?

## You might also enjoy

More posts on similar topics

[![API Security & Authentication: Protecting Your APIs](/_astro/hero.2Uu4_QSF_2sP126.webp)](/quizzes/post/api-security-authentication-quiz)

## [API Security & Authentication: Protecting Your APIs](/quizzes/post/api-security-authentication-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [API Security](/quizzes/categories/api-security)
-   [Security](/quizzes/categories/security)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the API Security & Authentication Quiz! This quiz will test your knowledge of key concepts and best practices for securing APIs. Each question is designed to challenge your understanding of

[#Api security](/quizzes/tags/api-security)[#Api security fundamentals](/quizzes/tags/api-security-fundamentals)[#Authentication](/quizzes/tags/authentication)+11 tags

[read more](/quizzes/post/api-security-authentication-quiz)

[![System Design & Architecture: Scalability & Resilience](/_astro/hero.BDiVkorJ_1V7MRI.webp)](/quizzes/post/system-design-architecture-quiz)

## [System Design & Architecture: Scalability & Resilience](/quizzes/post/system-design-architecture-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Architecture](/quizzes/categories/architecture)
-   [Software Engineering](/quizzes/categories/software-engineering)

Welcome to the System Design & Architecture quiz! Test your knowledge on scalability, reliability, performance, trade-offs, distributed systems patterns, and architectural decisions for production sys

[#Architecture](/quizzes/tags/architecture)[#System Design](/quizzes/tags/system-design)[#Scalability](/quizzes/tags/scalability)

[read more](/quizzes/post/system-design-architecture-quiz)

[![Advanced API Architecture & Design Patterns](/_astro/hero.CSlnwLeU_2vf3wP.webp)](/quizzes/post/advanced-api-architecture-quiz)

## [Advanced API Architecture & Design Patterns](/quizzes/post/advanced-api-architecture-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [API & Integration](/quizzes/categories/api--integration)
-   [Architecture](/quizzes/categories/architecture)

Welcome to the Advanced API Architecture Quiz! This quiz will test your knowledge of advanced API design patterns, including REST, gRPC, webhooks, API versioning, caching strategies, pagination techni

[#API](/quizzes/tags/api)[#Architecture](/quizzes/tags/architecture)[#REST](/quizzes/tags/rest)+1 tags

[read more](/quizzes/post/advanced-api-architecture-quiz)

[![SQL: Query Fundamentals & Database Concepts](/_astro/hero.D3xocvS5_1Ar7Mb.webp)](/quizzes/post/sql-query-fundamentals-quiz)

## [SQL: Query Fundamentals & Database Concepts](/quizzes/post/sql-query-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [SQL](/quizzes/categories/sql)
-   [Databases](/quizzes/categories/databases)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the SQL Basics Quiz! Relational databases hold the data behind most modern applications. Whether you're a developer writing queries or a DevOps engineer maintaining a production cluster, ma

[#Sql](/quizzes/tags/sql)[#Sql fundamentals](/quizzes/tags/sql-fundamentals)[#Relational databases](/quizzes/tags/relational-databases)+10 tags

[read more](/quizzes/post/sql-query-fundamentals-quiz)

[![CSS Fundamentals: Selectors, Box Model & Styling](/_astro/hero.BuNubOK1_Z1Tx9uc.webp)](/quizzes/post/css-fundamentals-quiz)

## [CSS Fundamentals: Selectors, Box Model & Styling](/quizzes/post/css-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [CSS](/quizzes/categories/css)
-   [Frontend](/quizzes/categories/frontend)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the CSS Fundamentals quiz! This quiz will test your knowledge of CSS basics, including selectors, the box model, properties, and layout techniques. Each question reinforces one concept so y

[#Css](/quizzes/tags/css)[#Css fundamentals](/quizzes/tags/css-fundamentals)[#Selectors](/quizzes/tags/selectors)+11 tags

[read more](/quizzes/post/css-fundamentals-quiz)

[![GitOps at Scale: ArgoCD, Flux & Multi-Cluster Deployments](/_astro/hero.BKqIY3zq_o92N5.webp)](/quizzes/post/gitops-at-scale-quiz)

## [GitOps at Scale: ArgoCD, Flux & Multi-Cluster Deployments](/quizzes/post/gitops-at-scale-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [GitOps](/quizzes/categories/gitops)
-   [Multi Cluster](/quizzes/categories/multi-cluster)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the GitOps at Scale Quiz! As organizations grow, managing multiple Kubernetes clusters with GitOps becomes an important skill. This quiz will test your understanding of how to architect, de

[#Gitops](/quizzes/tags/gitops)[#Argocd](/quizzes/tags/argocd)[#Flux v2](/quizzes/tags/flux-v2)+11 tags

[read more](/quizzes/post/gitops-at-scale-quiz)

6 related posts
