🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Design Search Autocomplete: all 10 questions

Quiz: Design Search Autocomplete · Question 3 of 10

Why is the trie rebuilt from logs in batches instead of updated on every search?

Why is the trie rebuilt from logs in batches instead of updated on every search?

  1. A.Tries cannot be updated
  2. B.It keeps the read path fast and simple; popularity changing an hour later is acceptable
  3. C.Logs are too small to use
  4. D.Batch jobs are more accurate than counting
Answer & explanation

Correct answer: It keeps the read path fast and simple; popularity changing an hour later is acceptable

Separating writes from reads avoids millions of updates hitting the serving structure.

Can you get the rest right without peeking?

Take the timed Quiz: Design Search Autocomplete quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →