Q1. What are the Redis data structures and what is each used for?
Redis exposes several core data types, each with tailored commands. - Strings: counters, cached serialized objects and rate limiters using INCR and SETEX. - Hashes: objec...
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 (15 available).
Redis exposes several core data types, each with tailored commands. - Strings: counters, cached serialized objects and rate limiters using INCR and SETEX. - Hashes: objec...
Caching stores a copy of data in a faster or closer tier so future reads avoid the slower origin. It reduces latency, increases throughput, lowers load and cost on databa...
Requirements: shorten a long URL, redirect quickly, handle ~100M new links per day with a 100:1 read-to-write ratio. API: POST /api/links {longUrl} -> {shortUrl}; GET /{c...
A Docker image is a stack of read-only layers. Each Dockerfile instruction creates a layer, and layers are shared between images and cached. Build cache: - Docker checks ...
Strategies: - Cache-aside (lazy loading): app checks cache, on miss reads DB and populates. Most common. - Read-through: cache library fetches on miss. - Write-through: w...
DNS maps names to records, most importantly A and AAAA addresses, plus CNAME, MX, TXT and NS. A lookup can walk several servers, but caching means most lookups stop early...
You fetch inside async Server Components using the extended fetch: ```ts const res = await fetch('https://api.example.com/posts', { next: { revalidate: 60, tags: ['posts'...
Code splitting divides the bundle so the browser downloads only what a route or interaction needs. Bundlers detect dynamic import() and create a separate chunk for that m...
Caching avoids re-downloading assets and is one of the cheapest performance wins. Use content-hashed filenames with a long Cache-Control: public, max-age=31536000, immuta...
A stampede happens when a popular key expires and many clients simultaneously hit the database to rebuild it. Several mitigations exist. - Locking or mutex: only the firs...
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.