What is the primary purpose of adding a cache in front of a slow data source?
- aTo encrypt frequently accessed data so it is served more securely
- bTo keep frequently accessed data in fast storage, reducing latency and load on the source✓
- cTo guarantee that cached data is stored durably and survives process restarts and machine crashes
- dTo reduce the overall memory consumption of the application at runtime
Explanation:A cache trades memory for speed: frequently requested data is served from fast storage instead of being recomputed or re-read, which cuts both response time and load on the backing source. Durability (c) is the opposite of what caches offer — cached data is typically volatile — and caches consume extra memory rather than saving it (d).