Q1. Explain caching strategies and common failure modes.
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...
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 (8 available).
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...
- Write-through: write to the cache and the database in the same operation, synchronously. The cache stays fresh and reads are fast, but writes are slower and every write...
Invalidation is the hardest part of caching. Options, often combined: - TTL expiry: every entry has a lifetime; simple and self-healing, but data can be stale until it ex...
Cross-validation repeatedly splits data into training and validation folds to estimate how well a model generalizes. In k-fold, the data is split into k parts; the model ...
Traceability means being able to follow a requirement from its origin through design, build and testing to delivery, in both directions. Forward traceability shows that e...
Perfect consistency is not achievable without giving up caching; aim for bounded staleness and correct behavior. Practical rules: - On write, commit to the database first...
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 ...
Data leakage is when information unavailable at prediction time seeps into training, producing optimistic validation scores that collapse in production. Common sources: -...
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.