System design interview question
"Design search over Facebook posts. A user types a query and gets back posts — but only posts they are actually allowed to see. That includes their friends' private posts, public posts, and group posts from groups they belong to. Trillions of posts, 2 billion users."
The intersection of inverted-index search and per-viewer access control. A normal search engine has one global answer per query. Here the answer is different for every one of 2 billion viewers, and you cannot precompute 2 billion index views. Candidates who have only memorized "build an inverted index" will stall the moment you push on privacy.
On Practick another engineer interviews you live for 60 minutes on a question from this bank. They have the full interviewer guide beside the call: the answers to your clarifying questions, the numbers to hand out, a ladder of follow-ups and a scoring rubric. You get the model solution once the session settles. It is free: interview someone for an hour and you have earned your own.
Book a free mock interviewAll 132 system design interview questions
System design mock interviews · DSA interview questions · Free mock interview practice · Browse interviewers · Sign in