Notification-Driven Resurrection Rate for Dormant Facebook Users

Last updated: November 29, 2026

Quick Overview

For Facebook users who had been inactive for at least 28 days when they were sent a re-engagement push notification, compute the share who returned within 3 days of the send, split by notification type, counting each user's first qualifying send only.

Meta
Data Manipulation (SQL/Python)
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


For Facebook users who had been inactive for at least 28 days when they were sent a re-engagement push notification, compute the share who returned within 3 days of the send, split by notification type, counting each user's first qualifying send only.

Facebook's notifications team runs re-engagement pushes for dormant users and needs a clean resurrection metric before testing changes. The interviewer checks a point-in-time dormancy condition (based on activity before the send, never after), deduplication to one send per user, and a correct return window.

What the Interviewer Expects
  • Compute dormancy relative to each send time, using only prior activity
  • Restrict to each user's first qualifying send to avoid double counting
  • Use a 3-day window after the send, excluding the send day ambiguity
  • Split by notification type
  • Mention the need for a holdout to measure incremental lift
Key Topics to Cover
point-in-time features
dormancy
notifications
attribution window
deduplication
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 measure incremental resurrection rather than raw resurrection?
  • How would you handle users who opened the notification but bounced immediately?
  • What if sends happen in bursts of several notifications per day?
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

push_sends(user_id, send_ts, notif_type) and daily_active(user_id, ds). Dormant at send means no active day in the 28 days before the send date. Return means an active day from the send date throu...

Approach

For each send, find the last active day strictly before the send date with a correlated MAX. Keep sends with no activity in the prior 28 days, take the first such send per user via ROW_NUMBER, then ch...


Submit Your Answer
Markdown supported