Lesson 12 of 15
19. Search and Inverted Indexes

Interview questions

6 min read+10 XP

Interview questions (with the counter-questions you'll get)

Q1. How would you implement search for a product catalogue?

They're testing: the end-to-end picture.

Think about your answer first, then open it.

reveal

Q2. What is an inverted index?

They're testing: the core data structure.

Think about your answer first, then open it.

reveal

Q3. How does ranking work?

They're testing: relevance basics.

Think about your answer first, then open it.

reveal

Q4. How would you design autocomplete?

They're testing: a classic sub-problem.

Think about your answer first, then open it.

reveal

Q5. How do you keep the search index consistent with the database?

They're testing: data sync and failure thinking.

Think about your answer first, then open it.

reveal

Q6. How do you scale a search cluster?

They're testing: shards vs replicas.

Think about your answer first, then open it.

reveal

Q7. How would you handle typos in search?

They're testing: practical relevance.

Think about your answer first, then open it.

reveal

Q8. What's the difference between keyword search and vector search?

They're testing: modern awareness.

Think about your answer first, then open it.

reveal

Q9. Why is deep pagination slow in a sharded search engine?

They're testing: understanding scatter-gather costs.

Think about your answer first, then open it.

reveal

Q10. The search cluster is down. What should the site do?

They're testing: graceful degradation.

Think about your answer first, then open it.

reveal