Caching

All interview questions related to Caching

16 Questions
3 Categories
7 Intermediate9 Advanced
Advertisement
πŸ”¬ Technical Deep Dive
Handling Distributed Cache Invalidation
Advanced

In a high-traffic microservices system using a distributed cache, how do you handle cache invalidation without breaking consistency?

5 minβ€’Technical
View Question→
πŸ”¬ Technical Deep Dive
Caching Strategy Deep Dive
Advanced

Explain different caching strategies and their trade-offs for high-performance applications.

5 minβ€’Technical
View Question→
πŸ—οΈ System Design
Design a URL Shortener (TinyURL)
Advanced

Design a globally available URL shortener like TinyURL/Bitly. Cover API design, key generation, storage, redirects, analytics, abuse prevention, and scalability.

45 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a Global Distributed Rate Limiter
Advanced

Design a globally distributed rate limiter for multi-region APIs supporting per-user, per-IP, and per-endpoint quotas.

45 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a Social News Feed
Advanced

Design a personalized news feed for a social network with billions of events per day. Cover write fan-out vs read fan-out, ranking, and cold start.

45 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design Search Autocomplete
Intermediate

Design an autocomplete service that suggests queries as users type, with personalization and typo tolerance.

30 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design an E-commerce Checkout & Cart
Advanced

Design a highly available checkout/cart system handling flash sales, inventory reservations, payments, and order confirmation.

45 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a Feature Flag Service
Intermediate

Design a low-latency feature flag platform with targeting rules, audit logs, and mobile/edge delivery.

30 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a GraphQL Gateway at Scale
Intermediate

Design a federated GraphQL gateway that composes multiple subgraphs, with caching, authorization, and schema evolution.

30 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design an API Gateway / Edge Layer
Advanced

Design a multi-tenant API gateway that handles routing, auth, rate limiting, request/response transformations, canarying, and observability across regions.

45 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a Recommendation Service
Advanced

Design a recommendations system (e.g., β€œpeople you may know” or product recs) with offline training, nearline updates, and real-time ranking.

45 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a Distributed Caching Layer
Intermediate

Design a distributed cache that supports eviction policies, consistency across nodes, replication, and client-side failover.

30 minβ€’System-Design
View Question→
πŸ—οΈ System Design
Design a Content Delivery Network (CDN)
Advanced

Design a global CDN for static and dynamic content delivery, cache invalidation, SSL termination, and DDoS protection.

45 minβ€’System-Design
View Question→
πŸ”§ Troubleshooting Scenarios
Cache Stampede / Thundering Herd
Intermediate

A cache eviction triggers a surge of requests to the origin, causing overload. How do you diagnose and prevent cache stampede?

10 minβ€’Scenario
View Question→
πŸ”§ Troubleshooting Scenarios
Read-After-Write Inconsistency
Intermediate

Users report that data they just wrote is not visible when reading immediately. Outline your investigation and mitigation.

10 minβ€’Scenario
View Question→
πŸ”§ Troubleshooting Scenarios
CDN Invalidation Storm Causes Origin Overload
Intermediate

A misconfigured deployment invalidates most CDN cache objects at once, flooding the origin. What’s your triage and prevention plan?

10 minβ€’Scenario
View Question→
Advertisement