Streaming media · Interview pack

Netflix data interview pack

39 written questions with answers, the loop shape people report for Netflix, and 3 SQL coding labs to practise. Built from DataLane's original question bank and publicly discussed interview themes, not leaked exams. Last editorial update 2026-07-20.

What is in this pack

Questions by topic

  • SQL3
  • Coding6
  • Data modeling3
  • Orchestration3
  • Streaming6
  • Warehouse8
  • Cloud3
  • System design4
  • Data quality1
  • Behavioral2
  • SQL coding labs3

13 easy · 19 medium · 7 hard

Rounds (2)

  1. SQL / Spark
  2. Streaming

Themes: Sessionization, Event time, Watermarks

Free with a DataLane account

The first 3 questions are below. Sign in (free, no plan needed) to read all 39 and download the pack as a PDF.

Sign in free to download

Free preview

  1. 1. SQL · easy · SQL

    Sessionize click events with a 30-minute inactivity gap.

    Flag a new session when occurred_at − lag(occurred_at) over the customer is greater than 30 minutes (or null for the first event). Then session_id = a running sum of that flag. That is islands-and-gaps. Do not group by a floored timestamp — that splits real sessions and merges strangers.

  2. 2. SQL · medium · SQL

    You need a 7-day rolling unique users. What breaks if you use COUNT DISTINCT in a window carelessly?

    Many engines restrict DISTINCT in windows or make it expensive. A better story is a daily uniques table then a rolling sum of an inclusion flag — or a bitmap if the warehouse has one. Say the grain first.

  3. 3. SQL · medium · SQL

    You grouped by DATE_TRUNC(week, ts) and compared to last week. Why are week 1 and week 53 lying?

    ISO vs locale weeks, incomplete first/last weeks, and time zones. Compare on a date spine with is_partial_week, or use a 7-day trailing window from today instead of calendar weeks.

36 more questions and 3 SQL labs are in the full pack.

Sign in free to unlock →

Search DataLane

↑↓ navigatealt ↑↓ jump group↵ openesc close