Data Analyst Course · 20 solved questions

20 Data Analyst Interview Questions with Detailed Answers

Practise 20 original SQL, statistics, metric and dashboard questions with method and caveat.

Learn the concept, work through an example, and check your answer.

COURSE LESSON PREVIEW
20 solved questionsLearn → test

Core idea

A good answer defines the unit and tests a changed case.

Question → definition
Calculation → check
Answer → caveat
Check the output and reasoning.Apply the example, then check a changed case.

The direct answer

Answer the analyst question and defend the metric.

These 20 original analyst interview questions cover SQL, business metrics, statistics, dashboards and communication. They are not employer interview items. Choose an answer, then open the explanation and test the rule on a changed example.

A question can have more than one valid response when the business definition is unstated. In that case, name the missing definition. The synced course pricing block follows this introduction; the practice questions remain fully visible below.

Course access

Choose your next step in Data Analyst preparation.

Review the current course options and access details here.

Heycademy Courses · Coming Soon

Master Data Analyst with Heycademy

We’re preparing an interactive learning experience with practical exercises, skill assessments and personalized learning to help you build confidence and master new skills.

Launching soon!
We’re putting the finishing touches on this course. Please check back for updates.

How to practise

Start with unit, window and grain.

For a metric, write numerator, denominator, eligible population, date window and deduplication rule. For SQL, write the expected output for three rows before coding. For statistics, separate what the sample shows from what a design can establish. For a dashboard, name the decision the visual supports.

SQL questions

Questions 1–5: rows and joins.

Question 1 · SQL

Why can COUNT(*) rise after joining customers to orders?

Answer and reasoning

Answer: One customer can match several orders.

Method or caveat: Check join cardinality and grain before aggregation.

Question 2 · SQL

How do you count monthly active customers from events?

Answer and reasoning

Answer: Group by month and COUNT(DISTINCT customer_id).

Method or caveat: Define the qualifying event and timezone.

Question 3 · SQL

What does an inner join omit?

Answer and reasoning

Answer: Rows without a match on either side.

Method or caveat: A missing customer dimension row can disappear.

Question 4 · SQL

How does a left join affect unmatched left rows?

Answer and reasoning

Answer: It keeps them with null right-side fields.

Method or caveat: A WHERE filter on right fields may accidentally remove them.

Question 5 · SQL

How do you avoid dividing by zero in a rate query?

Answer and reasoning

Answer: Use a guarded denominator such as NULLIF.

Method or caveat: Decide whether undefined rate should be null.

Business metrics

Questions 6–10: rates and cohorts.

Question 6 · Metric

80 purchases from 100 starts: completion?

Answer and reasoning

Answer: 80%.

Method or caveat: Confirm starts and purchases use the same eligible unit.

Question 7 · Metric

84 purchases from 120 starts: completion?

Answer and reasoning

Answer: 70%.

Method or caveat: Counts can rise while rate falls.

Question 8 · Metric

Why is average of group rates often wrong?

Answer and reasoning

Answer: It ignores denominator weights.

Method or caveat: Combine numerators and denominators.

Question 9 · Metric

What must a retention cohort define?

Answer and reasoning

Answer: Entry date, eligibility, observation window and return event.

Method or caveat: Different cohort windows are not directly comparable.

Question 10 · Metric

What is the grain of a transaction table?

Answer and reasoning

Answer: The entity represented by one row, as documented.

Method or caveat: Do not assume one row equals one customer.

Keep building this skill

Turn the example into a skill you can use.

Return to the course options whenever you are ready.

Explore course options →

Worked checkout decline

Investigate the rate before naming a cause.

Synthetic funnel case
PeriodVisitorsStartsPurchasesVisitor conversionCheckout completion
Before1,000100808.0%80%
After1,200150907.5%60%
  1. Define the same eligible visitor and checkout unit in both periods.
  2. Compute rates from numerator and denominator rather than comparing purchases alone.
  3. Check event duplicates, missing events and tracking changes.
  4. Segment by channel/device using stable definitions.
  5. Report observation and plausible next investigations without claiming causality.

The ten extra purchases do not prove a healthier checkout. The visitor-to-purchase rate is down 0.5 percentage points and checkout completion is down 20 points. A common wrong answer reports the absolute purchase increase only. An unseen check changes after purchases to 96: visitor conversion returns to 8.0% but checkout completion is 64%, so the two metrics tell different stories.

Statistics questions

Questions 11–14: inference and integrity.

Question 11 · Stats

Does a confidence interval prove a mechanism?

Answer and reasoning

Answer: No. It expresses uncertainty under assumptions.

Method or caveat: Randomization and measurement still matter.

Question 12 · Stats

What does sample ratio mismatch suggest?

Answer and reasoning

Answer: Assignment/measurement may differ from expected split.

Method or caveat: Investigate before interpreting effect.

Question 13 · Stats

Can a small p-value fix biased sampling?

Answer and reasoning

Answer: No.

Method or caveat: Inference assumes a valid design and measurement.

Question 14 · Stats

Why segment an overall conversion decline?

Answer and reasoning

Answer: Mix and within-segment changes may differ.

Method or caveat: Avoid cherry-picking segments after seeing results.

Dashboards and cases

Questions 15–20: display and decision.

Question 15 · Dashboard

Which context belongs beside a conversion rate?

Answer and reasoning

Answer: Time window, denominator, unit and segment.

Method or caveat: A bare percentage can mislead.

Question 16 · Dashboard

When is a line chart suitable?

Answer and reasoning

Answer: For ordered time trends with comparable periods.

Method or caveat: Show gaps and definition changes.

Question 17 · Case

What is the first question after “churn rose 7%”?

Answer and reasoning

Answer: Is 7% relative or percentage points, and what is churn?

Method or caveat: Clarify cohort and time frame.

Question 18 · Case

Can rising purchases coexist with falling visitor conversion?

Answer and reasoning

Answer: Yes, if visitors grow faster.

Method or caveat: Compute both counts and rates.

Question 19 · Communication

How should a recommendation handle uncertainty?

Answer and reasoning

Answer: Separate observation, hypothesis and next check.

Method or caveat: Do not present a plausible cause as proven.

Question 20 · Communication

What should a SQL answer include beyond code?

Answer and reasoning

Answer: Expected output, grain and validation.

Method or caveat: A query can run and still answer the wrong question.

Review your misses

Repair the earliest wrong assumption.

Practice review map
Missed familyApplied repair
SQLRebuild a three-row join and verify cardinality.
MetricsWrite numerator, denominator and grain.
StatisticsCheck assignment and data quality before interpreting effect.
DashboardState the reader decision and add missing context.
CommunicationSeparate observation, hypothesis and next check.

The business-metrics SQL lesson develops a runnable query. The Microsoft Research SRM paper is an authoritative source for experiment integrity.

FAQ

Questions about this skill.

Are these real employer questions?

No. They are original educational questions.

Does a correct answer prove readiness?

No. Apply the method to fresh data and explain assumptions.

Why do some answers name caveats?

Metric definitions and data quality are part of analytical correctness.

Continue with the course

Build reliable data analyst skills.

Review the course options and choose your next learning step.

Take the next step →
Scroll to Top