CompTIA Data+ (DA0-002) · Domain 2 · 22% of exam

Data Acquisition and Preparation

Drill 20 practice questions focused entirely on Data Acquisition and Preparation for the CompTIA DA0-002 exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.

Verified answer20 questions
Question 1 of 20

A retail analyst receives a flat file containing individual point-of-sale transactions, with one row per item sold including store ID, transaction timestamp, and sale amount. The finance team has requested a report showing total revenue per store per day. Which transformation should the analyst apply to prepare the data for this report?

Reviewed for accuracy · Report an issue
Question 2 of 20

An analyst is preparing a customer contact list. The source table stores names in two separate columns, FirstName and LastName, but the marketing team's email tool requires a single FullName field formatted as 'LastName, FirstName'. Which transformation should the analyst apply to produce the required field?

Reviewed for accuracy · Report an issue
Question 3 of 20

A data analyst needs to pull data directly from a company's on-premises Microsoft SQL Server database into a desktop analytics tool for a recurring report. The tool must maintain a live connection so refreshes reflect current data, and IT has asked that no data be exported to intermediate flat files. Which acquisition method best meets these requirements?

Reviewed for accuracy · Report an issue
Question 4 of 20

An analyst receives three monthly sales exports from different regional systems: one CSV, one tab-delimited TXT, and one Excel workbook. All three contain the same columns in the same order (Date, Region, Product, Amount) but were generated by separate teams. The analyst needs to combine all rows into a single dataset for a company-wide report. Which transformation approach is most appropriate?

Reviewed for accuracy · Report an issue
Question 5 of 20

An analyst writes a SQL query to combine a Customers table (500 rows) with an Orders table (2,000 rows), expecting roughly 2,000 result rows. Instead, the query returns 1,000,000 rows and runs extremely slowly. Reviewing the query, the analyst notices there is no ON condition linking the two tables. What most likely happened?

Reviewed for accuracy · Report an issue
Question 6 of 20

A data analyst imports a comma-delimited CSV file into a reporting tool, but the address column—which contains values like "123 Main St, Suite 400, Denver"—is split across multiple fields, misaligning every subsequent column. The source data itself is correct. What is the BEST way to resolve this parsing issue?

Reviewed for accuracy · Report an issue
Question 7 of 20

An analyst is preparing a global sales dataset for reporting. The 'amount' column contains transaction values recorded in different currencies, and a separate 'currency_code' column identifies each one (USD, EUR, GBP, etc.). Management requires all figures expressed in USD for accurate comparison and aggregation. Which transformation step best addresses this requirement?

Reviewed for accuracy · Report an issue
Question 8 of 20

A data analyst is preparing a customer contact list merged from two CRM exports. The same customer sometimes appears twice: once with an email of 'JSmith@Corp.com' and once as 'jsmith@corp.com', but with identical phone numbers and mailing addresses. A simple deduplication on the exact email string leaves both records in the dataset. What is the MOST effective approach to identify and remove these duplicate records?

Reviewed for accuracy · Report an issue
Question 9 of 20

A data analyst pulls order data from a REST API. Each JSON object represents one order and contains a nested array called 'lineItems', where each element holds a product ID, quantity, and price. The analyst needs to load this into a relational table where each row represents a single product within an order. What transformation must the analyst perform?

Reviewed for accuracy · Report an issue
Question 10 of 20

An analyst is merging two customer lists: one from the online store's database and one from the in-store loyalty program. Some customers appear in both lists, some only shop online, and some only shop in-store. The analyst needs a single combined dataset that retains every customer from BOTH sources, matching records where a shared customer ID exists. Which join type should the analyst use?

Reviewed for accuracy · Report an issue
Question 11 of 20

An analyst is preparing a customer survey dataset of 10,000 records for a satisfaction analysis. The 'annual_income' column is missing in about 4% of records, and these missing values appear randomly across all customer segments. The income figures are roughly symmetric with no extreme outliers. Management requires that the full sample size be preserved for statistical power. What is the most appropriate way to handle the missing income values?

Reviewed for accuracy · Report an issue
Question 12 of 20

A data analyst is preparing a dataset of monthly customer transaction amounts for a machine learning model. Profiling reveals a small number of legitimate but extremely large B2B purchases that inflate the mean and skew the distribution. The business confirms these transactions are valid and must remain represented in the analysis, but their extreme magnitude distorts the model's sensitivity to typical retail purchases. Which technique best addresses the outliers while satisfying the business requirement?

Reviewed for accuracy · Report an issue
Question 13 of 20

A data analyst maintains a reporting table that pulls from a 50-million-row source transaction system. The nightly ETL job now takes over six hours because it reloads the entire table each run. Business users only need newly added or modified transactions reflected, and the source table includes a reliable 'last_modified' timestamp column. Which extraction approach should the analyst adopt to reduce load time while keeping the reporting table accurate?

Reviewed for accuracy · Report an issue
Question 14 of 20

An analyst is combining a Customers table (12,000 rows) with an Orders table so that a report can show total revenue per customer, including customers who have not yet placed any orders. When joining the two tables in SQL, which join type should the analyst use to ensure that all customers appear in the result set even when no matching order exists?

Reviewed for accuracy · Report an issue
Question 15 of 20

A data analyst is preparing a dataset for a clustering algorithm. One column, 'annual_income', ranges from 20,000 to 250,000, while another column, 'age', ranges from 18 to 85. The analyst is concerned that the income variable will dominate the distance calculations because of its much larger magnitude. Which transformation should the analyst apply to rescale both columns to a common range of 0 to 1?

Reviewed for accuracy · Report an issue
Question 16 of 20

A data analyst is writing a script to pull customer order records from a REST API. The API returns a maximum of 100 records per response and includes a 'next_page_token' field in each response body. It also returns an HTTP 429 status code when too many requests are sent in a short window. Which approach should the analyst implement to reliably acquire the complete dataset?

Reviewed for accuracy · Report an issue
Question 17 of 20

A data analyst imports a customer file where a single column named 'Location' contains values like 'Austin, TX, 78701'. The reporting requirements specify that city, state, and ZIP code must each be filterable independently in the dashboard. Which data preparation technique should the analyst apply to meet this requirement?

Reviewed for accuracy · Report an issue
Question 18 of 20

An analyst receives a sales table in 'long' format where each row contains a StoreID, a Month column (values like 'Jan', 'Feb', 'Mar'), and a Revenue value. The finance team wants a report where each store appears on a single row with separate columns for each month's revenue. Which data transformation should the analyst apply?

Reviewed for accuracy · Report an issue
Question 19 of 20

An analyst receives a new 500,000-row customer file from a recently acquired company and must integrate it into the corporate CRM. Before writing any cleaning transformations, the analyst wants to understand the completeness, value distributions, data types, and frequency of distinct values in each column. Which activity should the analyst perform to gather this information?

Reviewed for accuracy · Report an issue
Question 20 of 20

An analyst is profiling a customer dataset and notices the 'State' column contains values such as 'CA', 'Calif.', 'California', and 'ca'. When they attempt to group total sales by state, the same state is split across multiple groups, inflating the count of distinct states. What data preparation task should the analyst perform to resolve this issue?

Reviewed for accuracy · Report an issue

More DA0-002 practice

Keep going with the other CompTIA Data+ (DA0-002) domains, or take a full timed mock exam.

← Back to DA0-002 overview