A search box fires a request per keystroke. A user types "shoes" and the results briefly show matches for "shoe", then flip to "shoes", then back to "sho". Why, and how do you fix it properly?

Answer it out loud before you open anything. The value of the flags below is in comparing them to what you actually said.

The situation behind the question

A storefront search. The bug is intermittent, worse on mobile, and the last engineer who looked at it added a debounce, which reduced the frequency without removing it.

What it is really testing

Whether the candidate distinguishes reducing the number of requests from making the result correct. Debouncing makes the race rarer, which is why it is the near-universal answer and why the bug survives it.

Where the mechanism is taught