thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Application & OT Security · Advanced

GraphQL Query Depth Limiting

Restricting how deeply nested or how costly a GraphQL query may be to prevent resource exhaustion.

Definition

Because GraphQL lets clients compose nested queries, a single request can trigger huge database load. Defenses include depth limits, query cost analysis, timeouts, pagination limits and persisted queries, and batching limits to stop brute force via aliases.

Example

The server rejects queries nested more than seven levels deep.

Exam tip

Maps to Unrestricted Resource Consumption (API4:2023).

Related terms