Bird
Raised Fist0
HLDsystem_design~20 mins

Search and recommendation in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Search and Recommendation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Design a scalable search system for millions of products

You need to design a search system that can handle millions of products with fast response times. Which architecture component is most critical to ensure scalability and low latency?

AA distributed index with sharding and replication
BA batch processing system that updates search results once a day
CA single powerful database server with all data loaded in memory
DA client-side search using local browser storage
Attempts:
2 left
💡 Hint

Think about how to handle large data and many users at the same time.

scaling
intermediate
2:00remaining
Handling high query volume in recommendation system

Your recommendation system receives a sudden spike in user requests. Which approach best helps maintain performance under high load?

AStore recommendations only in a slow disk-based database
BRecompute recommendations from scratch for every request
CCache popular recommendations in memory close to users
DSend all requests to a single recommendation server
Attempts:
2 left
💡 Hint

Think about reducing repeated work and fast access.

tradeoff
advanced
2:00remaining
Choosing between real-time and batch recommendation updates

Which tradeoff is true when choosing real-time recommendation updates over batch updates?

AReal-time updates provide fresher recommendations but require more computing resources
BReal-time updates reduce resource usage but increase recommendation delay
CBatch updates provide fresher recommendations than real-time updates
DBatch updates require more frequent user interaction to trigger updates
Attempts:
2 left
💡 Hint

Consider freshness versus resource cost.

🧠 Conceptual
advanced
2:00remaining
Understanding cold start problem in recommendation systems

What is the cold start problem in recommendation systems?

ASystem crash due to too many recommendations
BDifficulty recommending items to new users with no history
CSlow search queries due to large index size
DUsers receiving too many irrelevant recommendations
Attempts:
2 left
💡 Hint

Think about what happens when the system has no data about a user.

estimation
expert
2:00remaining
Estimating storage needs for a search index

You have 100 million documents averaging 1 KB each. The search index typically requires 30% of the original data size. How much storage is needed for the index?

AApproximately 10 GB
BApproximately 300 GB
CApproximately 3 TB
DApproximately 30 GB
Attempts:
2 left
💡 Hint

Calculate 30% of total data size.