Metric Definition and Implementation Questions

Defining and computing business metrics correctly: single-source-of-truth metric definitions, handling edge cases (dedup, attribution windows, timezones), and reconciling real-time vs batch metric values. Covers metric governance and translating business questions into precise, reproducible calculations. A high-frequency analytics-interview topic.

MediumTechnical
71 practiced

A data source is sampling traffic (e.g., 10% sample) before sending to analytics. Explain how sampling impacts downstream metrics, how to adjust for sampling (weights), how to estimate margin-of-error, and when sampling makes metrics unusable.

HardTechnical
58 practiced

You need to instrument and compute attribution for in-app promotions where multiple promotions may overlap within the same session. Propose a deterministic attribution rule set (e.g., first-promotion, highest-discount, last-promotion-within-24h) and write pseudocode or SQL to implement the chosen rule robustly. Discuss edge cases like nested promotions and promo stacking.

EasyTechnical
114 practiced

Explain the deduplication strategies you would consider for event-level data before computing a count-based metric (SQL or ETL context), and how you would choose among them: for example, order-id based dedup, session-window based dedup, and cross-device probabilistic dedup. For each, describe a scenario where it produces the wrong answer.

MediumTechnical
80 practiced

You need to compute user-level monthly revenue where some orders are refunded later. Propose a reproducible approach to attribute refunds: should refunds be subtracted from the month of original purchase, the refund date, or both? Explain trade-offs and how to implement each choice in your ETL.

MediumTechnical
122 practiced

Discuss how you would join engineering telemetry (e.g., event logs) with business tables (e.g., user profiles, billing) to measure downstream revenue impact. Address keys to join on, handling missing or inconsistent IDs, event latency, and strategies to reconcile differences between product and billing systems.

Unlock Full Question Bank

Get access to all Metric Definition and Implementation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.