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
Data Manipulation (SQL/Python)
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Data Manipulation (SQL/Python)
Medium

0

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
range joins
before and after windows
ratio of sums
release analysis
crash rate
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
  • 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 Problems
Sample 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...


Submit Your Answer
Markdown supported