Courseiva

DS0-001 · topic practice

Data Querying And Analysis practice questions

This domain covers writing and interpreting SQL queries against relational data, plus assessing data quality. For DS0-001, expect questions on SELECT syntax, joins, aggregate functions, GROUP BY rules, NULL handling, and data-quality dimensions such as completeness, accuracy, consistency, and uniqueness.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Data Querying And Analysis

What the exam tests

What to know about Data Querying And Analysis

A candidate must write correct SQL SELECT statements, use aggregates with GROUP BY, and diagnose query errors. The single most important thing is ensuring every non-aggregated SELECT column is included in the GROUP BY clause.

Constructing SELECT statements with SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY clauses.

Using aggregate functions like COUNT, SUM, AVG, MIN, and MAX with GROUP BY.

Applying joins, subqueries, and filtering to combine and retrieve data from multiple tables.

Evaluating data quality dimensions including completeness, accuracy, consistency, and uniqueness.

Watch out for

Common Data Querying And Analysis exam traps

  • ▸Assuming a column can be selected without aggregation unless it appears in GROUP BY; this causes the common aggregate/GROUP BY error.
  • ▸Treating NULL as equal to zero or as a normal value in comparisons; NULL requires IS NULL or IS NOT NULL and affects aggregates.
  • ▸Confusing WHERE and HAVING: WHERE filters rows before grouping, while HAVING filters groups after aggregation.

Practice set

Data Querying And Analysis questions

20 questions · select your answer, then reveal the explanation

Which SQL function is used to convert a NULL value in a query result into a default value, such as 0?

Question 2mediummultiple choice
Study the full Python automation breakdown →

You are performing data transformation in Python using Pandas. You have a 'DataFrame' with missing values in the 'Revenue' column. Which method should be used to replace these missing values with the column mean?

A data analyst needs to combine data from three tables. If the tables are joined sequentially, what is the result called?

Which of the following is a 'categorical' variable?

Which TWO of the following are commonly used methods for handling outliers during data analysis?

A data analyst at a retail company runs a daily report that joins a 200-million-row sales fact table to a small product dimension table. The query plan shows a broadcast exchange, and the job fails with an out-of-memory error on the executor nodes. The analyst wants to reduce shuffle volume without changing the report's output. Which technique should the analyst apply?

A data engineer is designing a query to calculate a running total of sales per day for each product category. The sales table has columns sale_date, category, and amount. They write a query using SUM(amount) OVER (PARTITION BY category ORDER BY sale_date) but notice that for days with multiple sales in the same category, the running total is not cumulative within the day. What is the most likely cause?

A data analyst has a table named Sales with columns SaleDate (DATE), Region (VARCHAR), and Amount (DECIMAL). The analyst needs a result set that shows the total Amount for each Region, but only for regions whose total Amount exceeds 10000, sorted from highest total to lowest. Which SQL statement will produce this result?

A data analyst is tuning a query that joins a large fact table to a dimension table and filters on a low-cardinality column in the fact table. The query currently performs a full table scan on the fact table. Which action is most likely to improve performance without changing the result set?

A data analyst is asked to provide a list of all customers who have not placed any orders in the last 90 days. The database has a customers table and an orders table with a foreign key customer_id. Which SQL query correctly returns the desired customers?

A data engineer is designing a query to calculate a 7-day moving average of daily active users from a large fact table in a Snowflake environment. The table contains one row per user per day. The engineer wants to ensure the moving average is computed correctly across date boundaries and handles days with no activity. Which two actions should the engineer take? (Choose two.)

A data analyst is preparing a dataset for a machine learning model that predicts customer lifetime value. The dataset contains a numeric column 'annual_income' with missing values, extreme outliers, and a right-skewed distribution. Which TWO preprocessing steps are appropriate before feeding the column into the model? (Choose two.)

A reporting team must calculate a running total of daily sales for each product category. The source table contains one row per category per day, and the report must display, for each row, the cumulative sum of sales from the earliest date up to and including the current date within that category. Which SQL technique should be used?

A data analyst is preparing a dataset for a machine learning model to predict customer churn. They need to handle missing values in several columns. Which TWO of the following techniques are appropriate for imputing missing numerical values while preserving the distribution of the data? (Choose two.)

A data analyst writes a query that joins a 500-million-row fact table to a 2-million-row dimension table. The query plan shows a broadcast nested loop join, and the query runs for hours. The dimension table is filtered to a few hundred rows by a highly selective predicate. Which action should the analyst take to improve performance while preserving correctness?

A data analyst queries a sales table containing 40 million rows to calculate month-to-date revenue. The query filters on order_date and groups by region_code. The table has a clustered index on order_id and a nonclustered index on order_date, yet the query performs a full table scan and takes several minutes. The analyst needs to reduce execution time without changing the result set. Which of the following actions is the MOST appropriate first step?

A data analyst is working with a table named orders that has a column order_date of type DATE. The analyst needs to retrieve all orders placed in the year 2023. Which SQL WHERE clause correctly filters the data?

A data analyst is tasked with writing a SQL query to calculate the average salary per department from an employees table. The analyst wants to ensure the query is optimized for performance and returns only departments with more than 5 employees. Which TWO of the following techniques should the analyst use? (Choose two.)

An analyst is using a CTE (Common Table Expression) to pre-aggregate sales data before performing a join. What is the primary benefit of using a CTE instead of a subquery in this scenario?

When joining two tables in SQL where you need to return all records from the left table even if there is no match in the right table, which JOIN type is appropriate?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Data Querying And Analysis sessions

Start a Data Querying And Analysis only practice session

Every question in these sessions is drawn from the Data Querying And Analysis domain — nothing else.

Related practice questions

Related DS0-001 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the DS0-001 exam test about Data Querying And Analysis?
A candidate must write correct SQL SELECT statements, use aggregates with GROUP BY, and diagnose query errors. The single most important thing is ensuring every non-aggregated SELECT column is included in the GROUP BY clause.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Data Querying And Analysis questions in a focused session?
Yes — the session launcher on this page draws every question from the Data Querying And Analysis domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other DS0-001 topics?
Use the topic links above to move to related areas, or go back to the DS0-001 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the DS0-001 exam covers. They are not copied from any real exam or dump site.