Measure Week-One Reading Retention for New Kindle Unlimited Subscribers

Last updated: November 29, 2026

Quick Overview

For each weekly cohort of new Kindle Unlimited subscribers, compute the share who read at least one page between day 7 and day 13 after their subscription start.

Amazon
Data Manipulation (SQL/Python)
Data Scientist
Amazon
November 29, 2026
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


For each weekly cohort of new Kindle Unlimited subscribers, compute the share who read at least one page between day 7 and day 13 after their subscription start.

A retention query in the style of Amazon Devices and Digital content analytics, where early engagement predicts whether a trial converts to paid. The interviewer looks for a precise window definition, exclusion of cohorts that cannot be measured yet, and a left join that preserves non-readers.

What the Interviewer Expects
  • Define day 7 to 13 precisely relative to each subscriber's start date
  • Exclude subscribers whose week-one window is not fully observed
  • Keep non-readers in the denominator with a LEFT JOIN
  • Deduplicate readers so multiple sessions count once
  • Group cohorts by start week
Key Topics to Cover
retention window
cohort by week
LEFT JOIN
censoring
date arithmetic
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you compute a full day 0 to day 28 retention curve?
  • How would you compare subscribers who came from a free trial versus a paid start?
  • What if a subscriber cancels on day 5: are they in the denominator?
  • How would you test whether a new onboarding email changed week-one retention?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

Tables:

  • ku_subscriptions(customer_id, start_date, source): one row per subscription start.
  • reading_sessions(customer_id, session_date, pages_read): one row per reading session.

Assumptions: u...

Approach
  1. First start per customer.
  2. Keep only subscribers with start_date + 13 on or before the last date in the reading data, otherwise recent starters look like non-readers.
  3. Find distinct customers...

Submit Your Answer
Markdown supported