GCIH Web App API Attacks Practice Question
A GCIH analyst is examining a web application that uses GraphQL. The analyst notices that an attacker sent a deeply nested query that caused the server to consume excessive resources, leading to a denial of service. Which GraphQL-specific vulnerability is being exploited?
⚠ Common exam trap
The trap here is assuming that any resource exhaustion in GraphQL is due to batching or aliases, when the specific indicator—deep nesting—points to a query depth attack.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
GraphQL query depth attack
GraphQL's flexible query language allows clients to specify nested fields. Without proper limits, an attacker can send a query with excessive depth, causing the server to recursively resolve many levels and exhaust CPU or memory. This is a query depth attack, a common GraphQL-specific denial-of-service vector.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
GraphQL query depth attack
Why this is correct
GraphQL allows clients to request nested fields, and without depth limiting, an attacker can craft a query with many levels of nesting. This can cause exponential resource consumption as the server resolves each level, leading to denial of service. This is known as a query depth attack.
- ✗
GraphQL alias overloading
Why it's wrong here
Alias overloading uses multiple aliases to request the same field many times in one query, potentially causing resource exhaustion. However, the scenario describes deeply nested queries, which is a different technique. Alias overloading is not the primary vulnerability here.
- ✗
GraphQL batching attack
Why it's wrong here
Batching attacks involve sending multiple operations in a single request to bypass rate limiting or perform brute force. While batching can cause resource issues, the scenario specifically mentions a deeply nested query, which is a depth attack, not batching.
- ✗
GraphQL introspection abuse
Why it's wrong here
Introspection allows attackers to discover the schema, but it does not directly cause resource exhaustion. The scenario describes a deeply nested query causing DoS, which is a different issue. Introspection is more about information disclosure than denial of service.
Visual reference
About these practice questions
One of 322 original GCIH practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official GIAC exam blueprint
This GCIH practice question is part of Courseiva's free GIAC certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCIH exam.