Crash Rate Seven Days Before and After Each Facebook App Release
Last updated: November 29, 2026
Quick Overview
For each Facebook app release, compare the crash rate per thousand sessions in the seven days before the release date with the seven days after it, excluding the release day itself, and list releases where the rate rose by more than 20%.
Meta
November 29, 20260
0
0 solved
For each Facebook app release, compare the crash rate per thousand sessions in the seven days before the release date with the seven days after it, excluding the release day itself, and list releases where the rate rose by more than 20%.
A release quality question for Meta's mobile performance data scientists, who review crash rates for every weekly app release. The interviewer checks a range join between events and time windows, ratio of sums, and awareness of staged rollouts.
What the Interviewer Expects
- Join daily stats to release windows with date ranges
- Exclude the release day
- Compute crash rate as a ratio of summed crashes to summed sessions
- Compute relative change and filter
- Discuss rollout ramp and overlapping releases
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
- Rollout reaches 100% over a week: how does that dilute the after window?
- Two releases are four days apart: what goes wrong?
- Why compare by app version instead of by date?
- How would you put a confidence interval on the change?
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
app_releases(platform, version, release_ds) and daily_stability(platform, ds, sessions, crashes) aggregated over all versions. Before window: release_ds - 7 through release_ds - 1. After: release_...
Approach
Join each release to the daily table on platform with the date in either window, label the row by window with a CASE, and aggregate with conditional sums. Because both windows are 7 days with the same...