Lesson 6 of 6 15 min +200 XP
🧠 Caching Assessment
Answer all questions to complete the quiz and earn 200 XP.
1
Your e-commerce site caches product prices. A flash sale starts but cached prices show the old (higher) price. Customers are angry. What went wrong?
2
A popular influencer tweets about your product. Suddenly 100,000 requests/second hit your API. Your cache key for that product expires at the same moment. What happens?
3
You're designing a real-time multiplayer game leaderboard showing top 100 players. Which caching approach is best?
4
Your application has a 60% cache hit ratio. What does this indicate?
5
You're caching user sessions. Which pattern ensures a user's session is always current after they update their profile?
6
Your cache uses LRU eviction. A nightly batch job scans all 1 million products for a report. The next morning, users complain about slow response times. Why?
7
You need to cache API responses from a third-party service that rate-limits you to 100 requests/minute. What's the most important caching consideration?
8
In a microservices architecture, Service A caches data from Service B. Service B's data changes. How should Service A's cache be invalidated?
9
Your Redis cache is at 100% memory. New writes are failing. What's the safest immediate fix?
10
You're implementing rate limiting: max 100 requests per user per minute. Which Redis data structure is most efficient?
11
Your cache warmup loads 10GB of data on startup, taking 5 minutes. During this time, all requests hit the database. How can you improve this?
12
Final question: You're designing caching for a banking application showing account balances. What's the most important consideration?
correct