InterviewStack.io LogoInterviewStack.io

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
61 practiced

You must choose between COUNT(DISTINCT user_id) and approximate distinct algorithms like HyperLogLog (HLL) for unique-user counts in dashboards. Explain the trade-offs in accuracy, memory and compute cost, mergeability across partitions, and scenarios where HLL is appropriate. Provide thresholds or heuristics you would use in a production environment.

MediumTechnical
106 practiced

Design a company-wide metric taxonomy and naming convention to prevent metric sprawl across multiple product teams. Specify naming rules, canonical metric examples and definitions, ownership assignments, versioning and deprecation policy, and a lightweight review process for approving new metrics.

MediumTechnical
75 practiced

Write a SQL query that compares two implementations of a metric (legacy and new) across a sample of dates and returns rows where they differ by more than 1%. Include columns: date, legacy_value, new_value, pct_diff, and reason_code by performing automated checks (e.g., missing partitions, NULL handling differences). Describe how you'd automate this comparison nightly.

EasyTechnical
72 practiced

Explain the difference between event-level and user-level metrics. Provide examples when you would compute each, and describe a common SQL pattern to convert event-level rows (one row per click) into a daily user-level metric (one row per user per day).

HardSystem Design
64 practiced

Engineering changed an event schema that alters the definition of 'purchase' going forward. Propose a detailed plan to backfill and reconcile historical metrics: how to detect impacted dashboards, reprocess historical data (or not), version metric definitions, communicate changes to stakeholders, and implement safeguards to avoid downstream confusion.

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.