Data Analytics Interview Guide
Data Analytics Interview Guide
QnA
Covers: Concepts ▪ SQL ▪ Excel ▪ Python ▪ Power BI ▪ Statistics ▪ Case Studies ▪ HR + Managerial
a
llik
1. What is Data Analytics?
3. What is a KPI?
an
Jnana Pravallika
Answer: Removing errors, duplicates, nulls and formatting issues.
Example: Standardizing "M", "Male", "male" → "Male".
a
7. What is Data Pipeline?
llik
Answer: End-to-end data flow from source → storage → analysis.
Example: Orders → ETL → Snowflake → Power BI dashboard.
8. What is ETL? va
Answer: Extract → Transform → Load process for preparing data.
a
Example: Load cleaned customer data to data warehouse.
Pr
Jnana Pravallika
12. What is Dimension Table?
a
llik
14. What is Snowflake Schema?
Jnana Pravallika
19. What is Exploratory Data Analysis (EDA)?
a
Example: Ads ↑ Sales ↑ = +0.85 correlation.
llik
21. Does correlation mean causation?
va
Answer: No — correlation may be coincidental.
Example: Ice-cream sales ↑ & drowning cases ↑ (due to summer).
a
22. What is Hypothesis Testing?
Pr
Jnana Pravallika
Answer: Unusually high/low value.
Example: One order ₹1.5L when avg is ₹2000.
a
27. What is Data Quality?
llik
Answer: Measures correctness, completeness, consistency.
Example: Duplicates & nulls indicate poor data quality.
Jnana Pravallika
📌 DATA ANALYTICS — SCENARIO BASED INTERVIEW
QUESTIONS (Practical Problems)
1. Sales dropped by 15% this quarter. What will you analyze first?
Approach: Compare YoY, MoM, Region, Product, Price & Return patterns.
Answer:
"I will break down sales by region/product, compare MoM trend & identify
drop-driving segments."
a
llik
2. Revenue is increasing but profit margin is decreasing — explain why.
Possible Findings:
✔ High discounting
✔ Advertising cost increased
✔ Supplier cost increase
a va
Pr
Answer:
a
4. You found missing values in 20% of the dataset — what will you do?
Jn
Approach:
Profile → Pattern check → Impute → Drop only if necessary.
Approach:
Drill returns by product, vendor, order date, region.
Jnana Pravallika
6. Two dashboards show different numbers — what will you do?
Approach:
Validate sources, KPI definitions, calculation logic → reconcile differences.
a
Answer:
llik
Check campaign quality, targeting relevance, landing page UX, ad fatigue.
va
8. You need to build a KPI dashboard — what will you include?
KPI Set: Revenue, CAC, Repeat Orders %, AOV, Churn, Funnel Conversion.
a
Pr
Pareto Insight:
Sort by revenue → cumulative % → identify 80/20 split.
Jnana Pravallika
Answer:
Poor UX, pricing mismatch, slow checkout, trust barrier.
Approach:
Calculate % defect complaints vs total orders → show trend over time.
a
14. Inventory aging increased — what could be the reason?
llik
Answer:
Demand prediction failure, overstocking, seasonal mismatch.
va
15. You discover outliers in purchase history — what to do?
a
Approach: Analyze cause → cap/remove if noise → retain if VIP users.
Pr
16. Profit rose but order volume remained same — what changed?
a
Possible Insights:
Higher AOV, less returns, price hike, upselling success.
an
Answer:
Ad inefficiency, audience saturation, weak creative performance.
18. If 25% of users add to cart but only 3% checkout — what does it
mean?
Insight:
Checkout friction → solve via UX optimization, COD options, trust badges.
Jnana Pravallika
19. Company wants to reduce delivery time — how do you measure
success?
20. Repeat purchase rate stagnant — what metric will you check?
a
Approach: Cohort retention curve & RFM distribution.
llik
21. Advertisement spend increases but CPA increases too — why?
Reason:
Competition ↑, bid inflation, poor targeting.
a va
Pr
Jnana Pravallika
26. Identify top customers contributing most revenue.
Answer:
a
Targeted survey + pricing sensitivity + regional logistics issues.
llik
28. Customer buying frequency dropped — how to improve?
Strategy:
va
Cashbacks, subscriptions, loyalty program, personalized emails.
a
29. You found inconsistent data across months — next step?
Pr
1. What is SQL?
Jnana Pravallika
Answer: Structured Query Language used to store, manipulate and retrieve data
from databases.
Example:
a
Example: EmployeeID in Employee table.
llik
3. What is a Foreign Key?
Example:
va
Answer: A field that links records between two tables.
Answer:
WHERE filters rows before aggregation; HAVING filters aggregated results.
a
Example:
an
Jnana Pravallika
6. What does ORDER BY do?
a
Answer: Technique to retrieve data from multiple tables using related keys.
Example:
llik
SELECT * FROM orders o
JOIN customers c ON o.customer_id=c.customer_id;
8. Types of Joins?
a va
Answer: INNER, LEFT, RIGHT, FULL, CROSS, SELF Join.
Pr
Example use: Left Join retrieves all customers with or without orders.
a
Answer:
INNER → only matching rows
LEFT → all left side rows + matches from right
Example:
Jn
Jnana Pravallika
11. What is a CTE (WITH Clause)?
a
12. What are Window Functions?
llik
Answer: Functions to rank, accumulate, compare rows without collapsing.
Example:
Answer:
RANK skips numbers on ties, DENSE_RANK doesn’t, ROW_NUMBER always
unique.
a
an
Or
SELECT MAX(salary)
FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);
Jnana Pravallika
16. How to count unique values?
SELECT COUNT(DISTINCT employee_id) FROM attendance;
a
Answer:
UNION removes duplicates; UNION ALL keeps all.
llik
Example:
va
18. DELETE vs TRUNCATE vs DROP?
a
● DELETE removes row-wise, rollback possible.
Pr
Jnana Pravallika
21. What is Index?
a
22. When not to use Index?
llik
Answer: On small tables or frequent updates → slows write performance.
Jnana Pravallika
Answer: Join table with itself.
Example: Find employee's manager from same table.
a
28. How to replace NULL values?
SELECT COALESCE(phone,'Not Available') FROM customer;
llik
29. What is ACID property?
va
Atomicity, Consistency, Isolation, Durability — ensures reliable transactions.
a
Pr
FROM orders
WHERE order_date BETWEEN '2024-07-01' AND '2024-07-31'
GROUP BY category
ORDER BY total ASC;
Jn
Jnana Pravallika
2. Find customers who placed orders in 2023 but not in 2024.
SELECT DISTINCT customer_id
FROM orders
WHERE YEAR(order_date)=2023
AND customer_id NOT IN (
SELECT DISTINCT customer_id FROM orders WHERE
YEAR(order_date)=2024
);
a
llik
3. Get month-wise revenue growth percentage.
SELECT
MONTH(order_date) AS month,
SUM(amount) AS revenue,
va
LAG(SUM(amount)) OVER (ORDER BY MONTH(order_date)) AS
a
prev_revenue,
Pr
FROM sales
GROUP BY MONTH(order_date);
an
Jn
Jnana Pravallika
5. Find average order value (AOV) per customer.
SELECT customer_id,
SUM(amount)/COUNT(order_id) AS avg_order_value
FROM orders
GROUP BY customer_id;
6. Get customers who have purchased more than the average number of
orders.
a
WITH summary AS (
llik
SELECT customer_id, COUNT(*) AS total_orders
FROM orders GROUP BY customer_id
)
SELECT * FROM summary
va
WHERE total_orders > (SELECT AVG(total_orders) FROM summary);
a
Pr
GROUP BY product_id
an
Jnana Pravallika
9. Find repeat vs one-time customers.
SELECT
customer_id,
CASE WHEN COUNT(order_id)>1 THEN 'Repeat' ELSE 'One-time' END
AS type
FROM orders
GROUP BY customer_id;
a
10. Detect months where revenue dropped compared to previous month.
llik
SELECT
month,
revenue,
prev_revenue,
va
CASE WHEN revenue < prev_revenue THEN 'Drop' ELSE 'Growth' END
AS status
FROM (
a
SELECT
Pr
MONTH(order_date) AS month,
SUM(amount) AS revenue,
LAG(SUM(amount)) OVER (ORDER BY MONTH(order_date)) AS
prev_revenue
a
FROM orders
GROUP BY MONTH(order_date)
an
) t;
Jn
Jnana Pravallika
SELECT AVG(salary) FROM emp WHERE dept = [Link]
);
a
LIMIT 5;
llik
13. Find customers who purchased only 1 product category ever.
SELECT customer_id
FROM orders
va
GROUP BY customer_id
a
HAVING COUNT(DISTINCT category)=1;
Pr
FROM orders
GROUP BY DAYNAME(order_date)
ORDER BY orders DESC
Jn
LIMIT 1;
Jnana Pravallika
16. Compare sales of Q1 vs Q2.
SELECT
SUM(CASE WHEN QUARTER(order_date)=1 THEN amount END) AS Q1,
SUM(CASE WHEN QUARTER(order_date)=2 THEN amount END) AS Q2
FROM orders;
a
17. Get the most returned product.
llik
SELECT product_id, COUNT(return_id) AS return_count
FROM returns
GROUP BY product_id
ORDER BY return_count DESC
LIMIT 1;
a va
Pr
Jnana Pravallika
20. Get top 3 customers by revenue in each region.
SELECT *
FROM (
SELECT region, customer_id, SUM(amount) AS revenue,
RANK() OVER(PARTITION BY region ORDER BY
SUM(amount) DESC) AS rnk
FROM orders
GROUP BY region, customer_id
a
) t WHERE rnk <= 3;
llik
EXCEL INTERVIEW QUESTIONS (Theory + Practical +
Scenarios)
a va
1. What is Excel used for in data analytics?
Pr
Example:
=TEXTJOIN(", ",TRUE,A2:A6)
3. What is VLOOKUP?
Answer: Used to find a value in the first column and return data from another
column.
Example:
Jnana Pravallika
=VLOOKUP(A2,Sheet2!A:E,4,FALSE)
=XLOOKUP(A2,Product_ID,Price)
a
llik
5. Difference between VLOOKUP and INDEX-MATCH?
Answer:
Data → Remove Duplicates
Jnana Pravallika
10. What is Power Query?
11. What is the difference between Merge & Append in Power Query?
a
Answer:
llik
● Merge = JOIN
Jnana Pravallika
Answer:
Conditional Formatting → Duplicate Values
Answer:
Use pivot tables + pivot charts + slicers + KPI cards.
a
17. What is Power Pivot?
llik
Answer: Data modelling tool inside Excel to handle large datasets using DAX.
Jnana Pravallika
22. How to automate data refresh?
Answer:
=SUM($B$2:B2)
a
llik
24. How do you detect outliers using Excel?
=SUBSTITUTE(A2,"_"," ")
=LEFT(Name,3)
=RIGHT(Code,2)
Jnana Pravallika
=MID(Text,Start,Length)
Answer:
● COUNTA = non-empty
a
● COUNTIF = count based on condition
llik
va
29. How do you merge datasets with different structure?
Answer:
a
Power Query → Merge via common key
Pr
Scenario 1:
Solution:
Create Pivot Table → Region in Rows → Sum of Sales → Sort Ascending.
Jnana Pravallika
Scenario 2:
Solution:
a
llik
Scenario 3:
va
You need to combine 12 monthly files into one sheet automatically.
Solution:
Use Power Query → Folder Import → Append → Refresh monthly.
a
Pr
Scenario 4:
Solution:
an
Scenario 5:
Solution:
Conditional Formatting → Rule →
= B2 < 50000
Jnana Pravallika
SECTION 4 — POWER BI (30 Interview Questions +
Answers + Real Scenarios)
Answer: A Business Intelligence tool used for data modeling, visualization, reporting
& analytics.
Example: Build sales dashboard with KPIs, region trends, category insights.
a
llik
2. What is Power Query?
Answer: ETL data preparation engine inside Power BI for cleaning & transformation.
Example: Remove duplicates → merge → fill blanks → load to model.
3. What is DAX?
a va
Answer: Data Analysis Expressions — a formula language for calculations in Power
Pr
BI.
Answer: Designing relationships between tables (fact & dimension) for optimized
an
reporting.
Jn
Answer:
Fact = numeric metrics
Dimension = descriptive attributes
Example: FactSales + DimProduct + DimDate.
Answer: Fact table in center linked to all dimensions — best modeling structure.
Jnana Pravallika
7. What is Snowflake Schema?
Answer: Dimensions further normalized into sub tables — reduces redundancy but
adds joins.
a
Example:
llik
Total Sales = SUM(Sales[Amount])
Answer:
Measure = dynamic
a
Jnana Pravallika
Answer: Restricts data visibility based on user/role.
Example: Sales rep sees only their region.
Answer: Saved report states used for page navigation, toggles & storytelling.
a
Answer: Dashboard filters for user-interaction.
llik
Example: Filter sales by Region, Category, Date.
Jnana Pravallika
Answer: Allows switching between metrics dynamically.
Example: Toggle between Sales/Profit/AOV in same chart.
a
Answer:
llik
Import = faster, cached data
DirectQuery = live DB connection, slower visual loads
Jnana Pravallika
Answer:
a
● Non-star schema / improper data modeling
llik
● Using DirectQuery instead of Import for heavy sources
va
● Auto date/time enabled for every date column
Short Answer:
Poor modeling, high cardinality, heavy DAX, too many visuals & large datasets
are the main reasons for slow performance.
a
Answer:
You improve Power BI performance by optimizing data model, queries, visuals &
Jn
Jnana Pravallika
🔹 Power Query Optimization
● Enable Query Folding
🔹 DAX Optimization
● Prefer simple columnar measures over heavy iterators (SUMX, FILTER)
a
● Use VAR to reduce repeated computations
llik
● Pre-calculate logic in Power Query where possible
🔹 Visualization Optimization va
● Reduce number of visuals per report page
a
● Avoid high-custom visuals if not needed
Pr
Short Answer:
a
Jnana Pravallika
30. Explain Time Intelligence in DAX
a
llik
Scenario 1
🔹 "Sales dropped this month — how will you analyze in Power BI?"
Answer:
✔ Compare YoY/MoM using date intelligence
✔ Drilldown region → category → product
a va
✔ Check return rate, out-of-stock impact
✔ Highlight KPI variance using conditional formatting
Pr
Scenario 2
🔹 "CEO wants only top KPIs in one page — what will you include?"
a
an
Answer: Revenue, Profit %, AOV, Conversion Rate, YoY Trend, Top 5 Products,
Region Map.
Jn
Scenario 3
Jnana Pravallika
Scenario 4
Scenario 5
a
llik
SECTION 5 — PYTHON for DATA ANALYTICS
30 Most Important Questions + Answers + Examples + Real Scenarios
va
1. What is Python used for in data analytics?
a
Answer: Data cleaning, EDA, visualization, automation & model building.
Pr
Example: Clean sales dataset using pandas & build visual charts using matplotlib.
a
import pandas as pd
Jn
df = pd.read_csv("[Link]")
Jnana Pravallika
4. How to check missing values?
[Link]().sum()
a
6. How to fill missing values?
df['Age'].fillna(df['Age'].median(), inplace=True)
llik
7. How to merge two datasets?
df3 = [Link](df1, df2, on='customer_id')
a va
Pr
Jnana Pravallika
df.sort_values('Sales', ascending=False)
a
13. How to convert datatype?
df['Date'] = pd.to_datetime(df['Date'])
llik
14. What is lambda function?
Jnana Pravallika
18. How to detect outliers using IQR?
Q1 = df['Sales'].quantile(0.25)
Q3 = df['Sales'].quantile(0.75)
IQR = Q3 - Q1
df[df['Sales'] > Q3 + 1.5*IQR]
a
llik
19. What is EDA?
Answer: Exploring data using statistics & visualization for pattern discovery.
[Link]()
Jn
Jnana Pravallika
24. How to export dataframe to Excel?
df.to_excel("[Link]", index=False)
a
import sqlalchemy
pd.read_sql("SELECT * FROM Orders", engine)
llik
26. Automation script example
import schedule, time
def refresh():
a va
df = pd.read_csv("[Link]")
[Link]().[Link](refresh)
Pr
a
Jnana Pravallika
30. Convert text to lowercase
df['City'] = df['City'].[Link]()
a
llik
Scenario 1
Extract customers whose last purchase was more than 90 days ago.
va
inactive = df[df['Last_Purchase_Days'] > 90]
a
Scenario 2
Pr
[Link]('City')['Revenue'].sum().sort_values(ascending=Fals
e).head(5)
a
an
Scenario 3
Jn
df_sales =
[Link]('Product')['Sales'].sum().sort_values(ascending=Fal
se)
df_sales[df_sales.cumsum()/df_sales.sum() <= 0.8]
Jnana Pravallika
Scenario 4
Scenario 5
a
Create automated sales summary dashboard output.
llik
summary = [Link]('Month')['Sales'].sum()
[Link](kind='bar')
a va
SECTION 6 — STATISTICS for DATA ANALYTICS
Pr
Answer:
Jnana Pravallika
3. What is Mean, Median & Mode?
Answer:
Mean = Average
Median = Middle value
Mode = Most frequent
Example: [2,2,5,8] → Mean=4.25, Median=3.5, Mode=2
a
4. What is Standard Deviation?
llik
Answer: Measures spread of data from mean.
Low SD ⇒ data close to mean, High SD ⇒ scattered data.
5. What is Variance?
a va
Answer: Square of standard deviation — spread measurement.
Example: If salaries vary highly, variance will be high.
Pr
7. What is Skewness?
8. What is Correlation?
Jnana Pravallika
9. Does Correlation imply Causation?
a
Example: Predict Sales from Ad-spend, Price, Season.
llik
11. Difference between Correlation & Regression?
Answer:
va
Correlation measures relationship, regression predicts one variable using another.
a
12. What is Hypothesis Testing?
Pr
Answer:
H0 = No effect/relationship
H1 = Effect exists
Jn
Jnana Pravallika
Answer: Range within population parameter likely lies.
Example: Mean height 170 cm ± 3 cm (95% CI).
a
17. What are Type 1 & Type 2 errors?
llik
Answer:
Type 1 = False Positive (Reject True H0)
Type 2 = False Negative (Accept False H0)
Example:
a
Jnana Pravallika
21. What is Probability?
a
23. What is Population vs Sample?
llik
Answer:
Population = Entire data group
Sample = Small portion selected for analysis
Jnana Pravallika
28. What is Overfitting?
a
llik
30. What is A/B Testing statistically?
Use hypothesis testing (t-test/Mann Whitney) to compare before & after metrics.
Jn
Scenario 2
Scenario 3
Jnana Pravallika
Which ad campaign performed best among 3?
Answer:
Use ANOVA to compare campaign mean conversions.
Scenario 4
a
llik
Scenario 5
final rounds.
an
1. Sales dropped 18% this quarter — what will you analyse first?
Approach:
✔ Compare QoQ / MoM trends
✔ Drill down by Region → Category → SKU
✔ Identify changes in pricing, inventory, returns
Sample Answer:
"I will segment sales drop by region/product and find root cause — returns
increased 11% last quarter."
Jnana Pravallika
2. Return rate increased — how do you analyze?
Approach:
Check defective products, delivery delay, repeated return users.
Example Finding:
60% returns from "Mobile Accessories" category → poor quality vendor.
a
3. You are given a dataset with missing values — what do you do?
llik
Answer:
Profile → Identify patterns → Drop/Impute based on business impact.
Possible Insights:
a va
4. Marketing spend doubled but revenue didn't increase — explain why?
Answer:
Poor pricing, UX issues, long checkout, missing reviews.
an
Approach:
Group sales by product → Sort descending → Top 20% give 80% revenue (Pareto).
Answer:
No purchase in last X days, low engagement score, complaints increase.
Jnana Pravallika
8. Predict customer lifetime value (CLV)
Approach:
Historical spend × retention duration × buying frequency.
Possible Reasons:
New users low purchase frequency, high discounts, low AOV.
a
llik
10. How do you recommend pricing strategy?
Answer:
Competitive comparison → elasticity analysis → AB testing → pricing tiers.
a va
E-COMMERCE SCENARIOS (Set 2)
Pr
Jnana Pravallika
13. Identify loyal customers.
Approach:
a
SELECT customer_id FROM sales WHERE discount>0
llik
GROUP BY customer_id HAVING COUNT(*)=COUNT(CASE WHEN
discount>0 THEN 1 END);
✔ Abnormal spending
✔ Different geolocation
✔ Multiple failed logins
Approach:
Analyze payment history, income, overdue loans, credit score.
Jnana Pravallika
18. Customer loan default prediction — model approach?
a
FROM logs WHERE status='failed'
llik
GROUP BY atm_id ORDER BY failures DESC LIMIT 1;
va
20. Decline in net banking usage — reason?
a
✔ Better UPI adoption
✔ Tech issues
Pr
✔ Supplier delays
✔ Forecast mismatch
✔ Warehouse inefficiency
Jnana Pravallika
GROUP BY store_id ORDER BY 2 DESC LIMIT 1;
Approach:
Time Series → Decompose trend + seasonality.
a
24. Low footfall but high revenue — insight?
llik
Answer: premium store with high ticket orders.
va
25. What would you track weekly for retail dashboard?
✔ Usage drop
✔ Ticket complaints
✔ Payment decline history
Jnana Pravallika
29. Improve customer retention — strategy?
a
llik
PRODUCT / SAAS SCENARIOS (Set 6)
Jnana Pravallika
ADVANCED — EXECUTIVE LEVEL SCENARIOS (Set 7)
Breakdown:
✔ Region
a
✔ Category
✔ SKU
llik
✔ Pricing
✔ Returns
✔ Competition
Data audit → validate sources → check calc logic → align KPI definitions.
Jnana Pravallika
FINAL ROUND — REAL-LIFE QUESTIONS (Set 8)
41. Tell me one insight you found that created business impact.
Example Response:
"I segmented users by city & found tier-2 users had higher repeat rate → company
focused ads → +18% conversion."
a
42. What will you do if your model accuracy is low?
llik
Feature selection → balanced sampling → tuning → algorithm switch.
Use clear visuals, explain method, share sample proof, stay factual.
Jnana Pravallika
48. Your biggest strength as analyst?
a
50. Why should we hire you as a Data Analyst?
llik
Strong SQL, problem-solving mindset, business thinking, dashboard skills,
hypothesis-driven insights.
a va
SECTION 8 — HR & MANAGERIAL INTERVIEW
QUESTIONS (30 Q&A)
Pr
Answer:
Start with background → skills → tools → achievements → goals.
Example:
Jn
Answer:
Jnana Pravallika
I enjoy working with data, patterns and insights that influence
decision-making.
Analytics gives me the ability to convert raw information into business
value.
Answer:
a
I bring analytical thinking + technical skills + business mindset.
I don’t just report data — I find insights that drive action.
llik
4. Your Strengths?
Answer Examples:
✔ Analytical mindset
✔ Fast learner
a va
✔ Structured approach to problem solving
✔ Strong SQL/Power BI skill
Pr
5. Your Weakness?
a
Answer (Smart):
an
Answer Example:
Jnana Pravallika
7. What motivates you?
Answer:
Answer:
a
I once overestimated delivery time for a report.
llik
I learned better time-planning and communication.
Example Answer:
a va
9. Tell me about a successful project you handled.
Answer:
an
Answer:
Jnana Pravallika
12. How do you handle messy/incomplete data?
Answer:
Example:
a
I prioritized weekly sales reporting + ad-hoc requests using planning &
task scheduling.
llik
14. What’s the first thing you do after receiving a project?
Answer:
va
Understand requirement → define KPIs → identify dataset.
a
Pr
Answer:
a
technical jargon.
Jn
Answer:
Answer:
Jnana Pravallika
KPI must align to business goal → measurable → actionable.
a
Example Answer:
llik
Built automated dashboard reducing weekly manual reporting time by 6
hours.
Answer:
an
After analyzing churn, we built loyalty discount for inactive users → 20%
returned.
Jn
Answer:
SQL, Power BI/Tableau, Excel, Python (Pandas/EDA).
Jnana Pravallika
Answer:
Answer:
a
llik
25. If given 100 GB of raw data — how will you handle it?
Answer:
visualize.
a va
Process using Power Query/Dataflows/Python chunking → summarize →
Pr
Answer:
Answer:
Jn
Answer:
Requirement → data extraction → cleaning → EDA → summary → visualization →
insights.
Jnana Pravallika
29. How do you keep improving your skills?
Answer:
a
Answer:
llik
I enjoy decision-making insights more than coding alone — analytics
connects business + logic + storytelling.
a va
Pr
a
an
Jn
Jnana Pravallika