Q1. What is caching and why is it used?
Caching is the technique of storing the result of an expensive operation (a database query, an API call, a rendered page) in fast-access storage so future requests can reuse it instead of redoing the work. It is used to reduce latency, cut load on backend systems, and save money on bandwidth or compute. The tradeoff is that cached data can go stale, so every caching decision is really a freshness-versus-speed decision.