Q11. How do you invalidate cached data?
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...
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 (22 available).
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 ...
Most bugs hide at the edges of valid ranges, because off-by-one and comparison mistakes concentrate there. Boundary value analysis tests just inside, on and just outside ...
Three classic failure modes, often confused: - Penetration: requests for keys that do not exist always miss the cache and hit the database. Attackers can exploit this wit...
When a design needs a one-off value that is not in the scale, arbitrary value syntax accepts raw CSS inside square brackets: w-[327px], top-[117px], bg-[#1da1f2], grid-co...
Copying large objects is expensive. Move semantics transfer ownership of a resource from a temporary (an rvalue) instead of copying, leaving the source in a valid but uns...
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...
Choose metrics that match the problem. - MAE: mean absolute error, in the target's units, robust to outliers. - MSE and RMSE: penalize large errors more; RMSE is in targe...
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 ...
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.