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
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.

HardTechnical
83 practiced

Multiple teams report different values for the same metric 'activations' (product: first 7-day key event; growth: first login + profile completion). As a senior data engineer, describe a cross-functional process to reconcile definitions, create a canonical metric, implement the canonical definition in pipelines and the metrics layer, and deprecate legacy variants while minimizing disruption.

MediumTechnical
59 practiced

A dashboard shows daily metrics but you want to indicate data freshness and whether a day's metrics are final. Design a metadata approach (fields and values) and UI indicators to signal data completeness, lateness windows, and backfill history for each metric and date.

MediumTechnical
73 practiced

You are designing a minimal 'metrics' registry table to store canonical metric definitions and metadata for cross-team use. Provide a sample schema (columns and types) and explain three additional fields you would add to support lineage, ownership, and versioning. You may use SQL-style column definitions in your answer.

MediumTechnical
86 practiced

A metric derived table is costing too much to recompute nightly. Propose optimization strategies: materialized views, incremental updates, partition pruning, pre-aggregation, or change data capture. For each option explain complexity, cost trade-offs, and when to choose it.

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.