Analytics
494 bites tagged Analytics — interview questions with model answers, and 60-second explainers.
DAU dropped 10%. How do you investigate?
Tests structured problem diagnosis. First, verify the data isn't corrupt. Then, segment the drop by user type (new vs. returning), platform (iOS/Android/Web), and geography to isolate the 'what' before hypothesizing the 'why'.
How would you visually represent statistical uncertainty in a chart?
This tests your ability to accurately communicate statistical significance. A great answer discusses error bars (with 95% CIs), then more advanced options like gradient or violin plots, and frames the choice by audience.
Explain pre-attentive attributes in data visualization
Tests designing high-signal UIs. Define pre-attentive attributes as visual cues processed instantly (e.g., color, size, shape). Apply one to make key data 'pop' in a dense chart.
Stakeholder claims correlation implies causation. How do you investigate?
This tests your scientific rigor beyond the simple "correlation isn't causation" mantra. Acknowledge the finding, probe for confounding variables, suggest cohort analysis, and propose an A/B test. A red flag is reciting the mantra without a concrete plan.
How would you design a product management dashboard?
This tests your ability to structure data hierarchically for a specific persona (PM). A great answer outlines a 3-tier structure: summary KPIs, trend analysis, and drill-downs. A red flag is listing charts without explaining how they guide PM decisions.
Bar Chart vs. Line Chart for Market Share Comparison?
This tests your grasp of visualization fundamentals for categorical vs. time-series data. A bar chart is correct for comparing discrete categories (companies) at one point in time. A line chart wrongly implies a trend. Red flag: justifying a line chart.
When is a pie chart an appropriate visualization?
Tests your grasp of data viz principles for part-to-whole data. A good answer defines this use case (e.g., market share), then lists pitfalls like too many slices or comparing multiple pies. A red flag is defending pie charts for complex data.
How do you manage schema evolution in an analytics pipeline?
This tests your grasp of data as a contract. A great answer covers schema registries, backward compatibility, and a phased rollout from producer to warehouse. A red flag is only mentioning an `ALTER TABLE` command, ignoring the entire data pipeline.
Challenges of Grouping by High-Cardinality Dimensions
This tests your grasp of system-level impacts of data shape. A good answer explains how high cardinality strains memory during aggregation, reduces compression, and inflates index size, leading to slow, expensive queries. A red flag is just saying 'it's slow'.
Trade-offs: Pre-aggregation vs. Querying Raw Data
Tests your grasp of data system trade-offs. A great answer weighs pre-aggregation (fast, cheap, stale) against querying raw data (slow, costly, fresh, flexible) and proposes a hybrid solution. A red flag is declaring one method universally superior.
How do you handle duplicate events in an analytics pipeline?
Tests your grasp of data integrity and idempotent processing. Explain how duplicates inflate COUNT(*), then propose adding a unique event_id and using a stateful stream processor to track seen IDs. Mention query-time COUNT(DISTINCT event_id) as an alternative.
Explain the star schema and its advantages for analytics
This tests your grasp of OLAP vs. OLTP data modeling. A great answer defines fact/dimension tables, explains how denormalization leads to fewer joins and faster queries, and contrasts this with 3NF's focus on write integrity.
How to diagnose a slow dashboard query?
This tests systematic debugging of a data problem. A good answer investigates the query plan first, then the table's physical layout (partitioning/clustering), and finally the BI tool and warehouse load. A red flag is jumping to a solution without diagnosis.
Explain data lineage and how you would implement it
This tests your ability to design for data observability. Define lineage (origin, transformation, movement), then propose a solution using metadata extraction (OpenLineage) and a central graph store/UI (Marquez) to trace data from microservices to analytics.
What is a data schema and why enforce it on ingestion?
This tests your understanding of data contracts. A great answer defines a schema as a data blueprint, then explains how early enforcement prevents bad data, ensuring consistency and reliability for analytics. A red flag is only defining the term.
How would you handle 10% null values in a key column?
This tests your understanding of data cleaning trade-offs. First, investigate the cause of nulls. Then, discuss simple imputation (mean/median) vs. discarding rows, weighing pros and cons. A red flag is jumping to a solution without asking about the data.
Design a framework for ensuring data quality and integrity
This tests your ability to design a proactive, multi-layered data quality system, not just reactive fixes. Start with governance (roles/ownership), then detail profiling, validation, and cleansing. Finally, discuss lineage. Red flag: focusing only on one tool.
Data Warehouse vs. Data Lake vs. Lakehouse
Tests your grasp of modern data architectures. A great answer defines warehouses (structured, schema-on-write) and lakes (raw, schema-on-read), then explains how a lakehouse adds ACID transactions and governance on top of a lake.
Handling Late-Arriving Data in a Streaming Pipeline
Tests your grasp of event time vs. processing time. A great answer defines watermarks to track completeness, uses event-time windowing to group data, and sets triggers with allowed lateness to correctly incorporate out-of-order events.
Star vs. Snowflake Schemas: Trade-offs
Tests your grasp of data warehouse design trade-offs. Define star (denormalized, fast queries) and snowflake (normalized, storage efficient) schemas. Explain the core trade-off: star's query speed vs. snowflake's storage/integrity.
What is a data warehouse vs. a transactional database?
Tests your grasp of systems optimized for different access patterns (writes vs. reads). Define OLTP for transactions and OLAP for analytics. Contrast their schema (normalized vs. denormalized), data, and workload. A red flag is calling it a 'big database'.
ETL vs. ELT: Key Differences and When to Use Each
This tests your grasp of data pipeline trade-offs. Define ETL (transform first) vs. ELT (load first), contrasting transform location and data state. A red flag is ignoring how cloud warehouses make ELT the modern default for flexibility.
Design a Client-Side Event Batching System
Tests your grasp of client-side performance, network optimization, and data loss edge cases. A great answer batches events in memory, sends them with `fetch()`, and uses `navigator.sendBeacon()` on `pagehide` to reliably send the final batch.
How do you approach user identity stitching?
This tests your grasp of data architecture for analytics, not just a simple algorithm. A strong answer defines anonymous vs. known IDs, explains the backfilling/rekeying process upon authentication, and notes the need for a central event store.
Get Analytics bites daily.
Five a day, five minutes, offline. With quizzes so it sticks.
Open testing — you’ll join as an early tester.