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
November 29, 20260
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
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- 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 ProblemsSample 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...