Skills101
← All practice quizzes

Quiz: Design a News Feed

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Solve the news feed question step by step — estimates, API, fan-out on write vs fan-out on read, the celebrity problem and the hybrid answer — with a small working feed in Python.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does "fan-out on write" mean for a news feed?

  2. Question 2

    Why is pure fan-out on write a problem for an account with 50 million followers?

  3. Question 3

    What is the usual hybrid solution?

  4. Question 4

    What does this print?

    pushed = [(5, "a"), (2, "b")]
    pulled = [(4, "c"), (1, "d")]
    feed = sorted(pushed + pulled, reverse=True)[:3]
    print([x for t, x in feed])
    
  5. Question 5

    100 million users open the feed 10 times a day. Roughly how many feed reads per second is that?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →