Q61. How do you protect a GraphQL endpoint from abusive queries?
Because clients can compose arbitrarily deep and wide queries, a single request can exhaust the database. Defences: - Limit query depth, for example reject anything deepe...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (182 available).
Because clients can compose arbitrarily deep and wide queries, a single request can exhaust the database. Defences: - Limit query depth, for example reject anything deepe...
Next.js has several cache layers. The Data Cache stores individual fetch results and can be tagged. The Full Route Cache stores rendered HTML and RSC payloads for static ...
Vue 3 batches reactive updates with a scheduler. When trigger fires, the affected render effects and watchers are queued and flushed in a microtask, so several synchronou...
Both run a command for many files, but they differ in safety and performance. ```bash find . -name '*.tmp' -exec rm -- {} + # batches, handles spaces find . -name '*.tmp'...
Ruby resolves a call by walking the receiver's singleton class, then the class, then included modules and superclasses, in order. `Module#ancestors` prints the chain. ```...
Swift's structured concurrency builds on `async`/`await`, `Task` and `TaskGroup`. An `async` function can suspend without blocking a thread, and `await` marks a potential...
A coroutine is cooperative: cancellation sets a flag that the coroutine must observe. Suspend functions from `kotlinx.coroutines` check automatically and throw `Cancellat...
.NET uses a generational, compacting, tracing collector. New objects go to generation 0. Survivors are promoted to gen 1 then gen 2. Gen 0 collections are frequent and ch...
Templates parameterise code by type and are instantiated at compile time, giving zero-cost abstraction. ```cpp template T maxOf(T a, T b) { return a > b ? a : b; } templa...
Ownership allows one owner, but graphs and shared state need more. Rust pushes the choice into types. - `Rc`: single-threaded reference counting. `clone` increments a cou...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.