Courseiva

CompTIA Data+ (DA0-002) (DA0-002) — Questions 451–525

1004 questions total · 14pages · All types, answers revealed

Page 6

Page 7 of 14

Page 8
451
MCQeasy

A data analyst needs to summarize customer satisfaction scores. The data contains a few extremely low scores that skew the distribution. Which measure of central tendency is most appropriate?

A.Range
B.Mode
C.Median
D.Mean
AnswerC

Extremely low scores pull the mean downward, so it no longer represents typical satisfaction. The median resists this skew because it depends only on positional rank, not magnitude, satisfying the need to summarise a distribution distorted by outliers.

Why this answer

The median is the most appropriate measure of central tendency when data contains extreme outliers, such as the very low customer satisfaction scores described. Unlike the mean, the median is resistant to skew because it depends only on the middle value(s) of the sorted dataset, not on the magnitude of extreme values. This makes it the standard choice for summarizing ordinal or skewed interval/ratio data in data analysis.

Exam trap

The trap here is that candidates often default to the mean as the 'average' without considering outlier impact, but CompTIA Data+ tests the understanding that the mean is non-robust and the median is the correct choice for skewed data in the Analyzing and Modeling domain.

How to eliminate wrong answers

Option A (Range) is wrong because it is a measure of dispersion (the difference between the maximum and minimum values), not a measure of central tendency, and it is heavily influenced by outliers. Option B (Mode) is wrong because it identifies the most frequently occurring score, which may not represent the center of the distribution and can be misleading when outliers are present but not frequent. Option D (Mean) is wrong because it is sensitive to extreme values; the few extremely low scores will pull the arithmetic mean downward, misrepresenting the typical customer satisfaction experience.

452
MCQeasy

Which of the following is an example of qualitative data?

A.Stock price
B.Customer feedback comments
C.Number of website visitors
D.Product weight in grams
AnswerB

Free-text comments are non-numeric and descriptive, capturing opinions and sentiment that cannot be measured numerically. This satisfies the qualitative criterion, unlike quantitative data such as ratings, counts or transaction totals, which are expressed as measurable values.

Why this answer

Customer feedback comments are qualitative data because they consist of non-numerical, descriptive text that captures opinions, sentiments, or experiences. Unlike quantitative data, which can be measured or counted, qualitative data is categorical and often requires thematic analysis to derive insights.

Exam trap

The trap here is that candidates often confuse 'qualitative' with 'quantifiable' and may incorrectly select a numeric option like stock price or website visitors, not realizing that qualitative data is inherently non-numeric and descriptive.

How to eliminate wrong answers

Option A is wrong because stock price is a numerical value that can be measured and compared, making it quantitative data. Option C is wrong because the number of website visitors is a count, which is a discrete numerical value and thus quantitative data. Option D is wrong because product weight in grams is a continuous numerical measurement, falling under quantitative data.

453
MCQeasy

An analyst wants to identify outliers in a dataset using the IQR method. Which values are typically considered outliers?

A.Values below the mean or above the mean
B.Values below Q1 - IQR or above Q3 + IQR
C.Values below Q2 - 2*IQR or above Q2 + 2*IQR
D.Values below Q1 - 1.5*IQR or above Q3 + 1.5*IQR
AnswerD

Values falling below Q1 − 1.5×IQR or above Q3 + 1.5×IQR are flagged as outliers, satisfying the stem's IQR-method constraint. The 1.5 multiplier defines Tukey's fences, the standard threshold distinguishing mild outliers from the bulk of the distribution.

Why this answer

The IQR (interquartile range) method defines outliers as values that fall below Q1 - 1.5*IQR or above Q3 + 1.5*IQR, where IQR = Q3 - Q1. This is Tukey's standard fence rule used in box-and-whisker plots. The 1.5 multiplier is the conventional threshold for 'mild' outliers, while 3.0*IQR marks 'extreme' outliers.

Exam trap

The trap here is confusing mean-based outlier detection (z-score) with quartile-based detection (IQR) — candidates who remember '1.5' but forget the Q1/Q3 base, or who substitute Q2, pick the wrong option.

How to eliminate wrong answers

Option A is wrong because the mean is not used in the IQR method — outliers are defined relative to quartiles, not the arithmetic mean, and mean-based thresholds are highly sensitive to the very outliers being detected. Option B is wrong because it omits the 1.5 multiplier; using only 1*IQR would flag far too many normal observations as outliers. Option C is wrong because it uses Q2 (the median) as the base and a 2*IQR multiplier, which does not match Tukey's standard fence definition — the correct base is Q1 and Q3 with a 1.5 multiplier.

454
MCQeasy

In pandas, you have a DataFrame 'df' with columns 'product' and 'sales'. You want to calculate the total sales per product. Which method should you use?

A.df['sales'].apply(sum)
B.df.pivot_table(values='sales', index='product', aggfunc='sum')
C.df.groupby('product')['sales'].sum()
D.df.merge(df, on='product')
AnswerC

groupby('product') partitions rows by category, then selecting ['sales'] and calling sum() aggregates each group into total sales per product. This satisfies the per-product aggregation requirement; pivot_table or value_counts would reshape or count rather than sum the sales column.

Why this answer

The groupby('product')['sales'].sum() pattern is the canonical pandas idiom for split-apply-combine aggregation: it groups rows by the 'product' column, selects the 'sales' Series, and applies the sum aggregator to each group, returning a Series indexed by product. This is the most direct and efficient way to compute total sales per product.

Exam trap

The trap here is confusing element-wise operations (apply, map) with group-wise aggregation (groupby), leading candidates to pick apply(sum) thinking it aggregates when it actually operates per element.

How to eliminate wrong answers

Option A is wrong because df['sales'].apply(sum) applies Python's built-in sum to each element of the sales column (each scalar), which either errors or returns the same values — it does not group by product at all. Option B is wrong because pivot_table is designed for reshaping/aggregating into a pivot grid and, while it can technically aggregate, it is overkill and semantically intended for cross-tabulation, not simple per-group totals. Option D is wrong because df.merge(df, on='product') is a self-join that duplicates rows and performs no aggregation whatsoever.

455
Multi-Selectmedium

A data analyst is performing a join between two tables: 'employees' and 'departments'. The 'employees' table has a foreign key 'dept_id' referencing the 'departments' table. Which two join types would include all rows from the 'employees' table, regardless of whether there is a matching department? (Select TWO)

Select 2 answers
A.LEFT JOIN
B.INNER JOIN
C.CROSS JOIN
D.RIGHT JOIN
E.FULL OUTER JOIN
AnswersA, E

A LEFT JOIN preserves every row from the left table, employees, matching department columns where dept_id resolves and returning NULLs otherwise. This directly satisfies the requirement that all employee rows appear regardless of department match.

Why this answer

A LEFT JOIN (option A) returns all rows from the left table (employees) plus matching rows from the right table (departments), so every employee appears even when dept_id has no matching department. A FULL OUTER JOIN (option E) returns all rows from both tables, which necessarily includes every row from employees regardless of a match, so it also satisfies the requirement. INNER JOIN (B) only returns rows where the join condition matches, dropping unmatched employees.

CROSS JOIN (C) produces a Cartesian product with no join predicate, which is not a match-based join and does not preserve employee rows in the intended sense. RIGHT JOIN (D) preserves all rows from departments, not employees, so unmatched employees would be excluded.

Exam trap

DA0-002 often tests the confusion between LEFT JOIN and RIGHT JOIN — candidates forget that RIGHT JOIN preserves the right table, so it excludes employees without departments, and they may also mistakenly select CROSS JOIN thinking it 'includes everything.'

456
MCQhard

A data engineer is profiling a dataset of online orders. The order_id column contains a unique value for every row, but the analyst notices that a join to the customer table unexpectedly returns fewer rows than the orders table. After investigation, the engineer finds that some customer_id values in the orders table do not exist in the customer table. Which data quality dimension is primarily violated by the customer_id values?

A.Referential integrity
B.Timeliness
C.Accuracy
D.Completeness
AnswerA

Referential integrity requires that a foreign key value in one table matches a primary key value in the referenced table. The customer_id values that have no matching customer row violate that rule, which is why the join drops rows. This is the precise dimension describing broken relationships between related tables, distinct from general accuracy or completeness of a single column.

Why this answer

When foreign key values in the orders table fail to match primary keys in the customer table, the relationship between the tables is broken, which is a referential integrity violation. That is why the join loses rows. Accuracy, completeness, and timeliness describe other properties of data and do not capture a missing parent record for a valid-looking child key.

Exam trap

The trap here is treating orphaned foreign keys as a completeness problem because rows disappear, when the underlying defect is a broken relationship between tables.

457
Matchingmedium

Match each database concept to its definition.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Unique identifier for each record in a table

Field that links to primary key in another table

Structure to speed up data retrieval

Virtual table based on a query result

Process to reduce data redundancy

Why these pairings

Primary keys uniquely identify records, foreign keys link tables, indexes speed retrieval, and normalization reduces redundancy. Common confusions include swapping primary and foreign key definitions.

458
MCQhard

A data analyst is building a model to predict customer churn. The dataset has 10,000 records with 500 churned customers. The model predicts churn with 95% accuracy, but only identifies 10% of actual churners. Which metric best highlights this issue?

A.Accuracy
B.F1 score
C.Recall
D.Precision
AnswerC

Recall measures the proportion of actual churners correctly identified, so 10% recall exposes the model's failure to catch churn despite 95% accuracy. Accuracy is misleading here because the 500 churners are a small minority of 10,000 records.

Why this answer

Recall (also known as sensitivity or true positive rate) measures the proportion of actual positives correctly identified. With only 10% of actual churners detected, the model has a recall of 0.1, which directly highlights the failure to capture churners despite high overall accuracy.

Exam trap

The trap here is that candidates may choose accuracy because it is a familiar and seemingly high value (95%), failing to recognize that in imbalanced datasets, accuracy can be deceptive and does not reflect poor performance on the minority class.

How to eliminate wrong answers

Option A is wrong because accuracy (95%) is misleading in imbalanced datasets; it can be high even if the model fails to detect churners, as the majority class (non-churners) dominates. Option B is wrong because the F1 score is the harmonic mean of precision and recall; while it would be low here, it does not directly isolate the issue of missing churners—recall is the metric that specifically measures detection of the positive class. Option D is wrong because precision measures the proportion of predicted churners that are actual churners; it does not reflect how many actual churners were missed, which is the core problem.

459
Multi-Selectmedium

A data analyst is creating a dashboard to monitor key performance indicators (KPIs) for a retail company. The dashboard will be used by store managers to quickly assess daily performance. Which TWO design elements are most important to include? (Choose two.)

Select 2 answers
A.Placement of the most critical KPIs in the top-left area of the dashboard
B.Use of consistent color schemes to indicate performance thresholds
C.Use of 3D charts to make the data more visually appealing
D.Inclusion of detailed data tables for each KPI
E.Inclusion of a real-time stock ticker for the company's share price
AnswersA, B

Users tend to scan dashboards in a Z-pattern, starting from the top-left. Placing the most important KPIs there ensures they are seen first, aligning with the goal of quick assessment. This design principle enhances usability and ensures critical information is not overlooked.

Why this answer

For a dashboard aimed at store managers needing quick daily performance assessment, consistent color coding for thresholds and strategic placement of critical KPIs in the top-left are essential. These elements support instant interpretation and prioritization, enabling managers to focus on what matters most without wading through unnecessary details.

Exam trap

The trap here is confusing dashboard design for executives with that for operational staff; operational dashboards require immediate, visual cues rather than detailed tables or extraneous data.

460
MCQhard

A data analyst is profiling a dataset of employee records. The birthdate column contains values stored as text in the format YYYY-MM-DD, while the hire date column is stored as a native date type. The analyst needs to calculate employee tenure. Which action should the analyst take first?

A.Convert the hire date column from native date to text to match the birthdate column
B.Calculate the difference between the hire date and the current date
C.Subtract the birthdate from the hire date to derive tenure
D.Convert the birthdate column from text to a native date type
AnswerB

Tenure measures how long an employee has been with the organization, which is the interval between the hire date and today. Since hire date is already a native date type, the analyst can directly compute this difference. The birthdate column's text format is irrelevant to the tenure calculation and does not need to be addressed first.

Why this answer

Tenure is the elapsed time between an employee's hire date and the present. Because the hire date is already stored as a native date type, the analyst can compute the difference directly without any conversion. The birthdate column's text format is a separate data quality issue that does not affect the tenure calculation and should not block it.

Exam trap

The trap here is assuming that all date-related columns must be converted before any calculation, when the column needed for tenure is already correctly typed.

461
MCQeasy

In an A/B test, the null hypothesis states that there is no difference between the control and treatment groups. After running the test, the p-value is 0.04. Assuming α = 0.05, what is the correct conclusion?

A.Fail to reject the null hypothesis
B.Reject the null hypothesis
C.Accept the null hypothesis
D.The test is invalid because the p-value is too low
AnswerB

The p-value of 0.04 falls below the significance level of 0.05, so the observed difference is statistically significant. The null hypothesis of no difference between control and treatment is rejected, supporting the conclusion that the treatment had an effect.

Why this answer

The p-value of 0.04 is less than the significance level α = 0.05, so we reject the null hypothesis. This means there is statistically significant evidence to suggest a difference between the control and treatment groups. The correct conclusion is to reject the null hypothesis.

Exam trap

The trap is misinterpreting the p-value as the probability that the null hypothesis is true, or thinking that a low p-value means the test is invalid; candidates might also incorrectly choose 'accept the null' instead of 'fail to reject'.

How to eliminate wrong answers

Option A is wrong because failing to reject would occur if the p-value were greater than α. Option C is wrong because we never 'accept' the null hypothesis; we only fail to reject it. Option D is wrong because a low p-value does not invalidate the test; it indicates strong evidence against the null hypothesis.

462
MCQhard

A data engineer is extracting data from a REST API that returns JSON. The API paginates results with a 'next_page' token. The engineer needs to load all pages into a database. Which approach should the engineer use to ensure all data is acquired?

A.Use a while loop that continues to call the API with the 'next_page' token until the token is null, parsing and loading each page.
B.Send parallel requests for each page number until an empty response is received.
C.Make a single API call with a large 'limit' parameter to retrieve all records at once.
D.Use the 'next_page' token as a query parameter in a single request to retrieve all subsequent pages.
AnswerA

Pagination tokens are designed to be followed sequentially until no more pages remain. A while loop that checks for a null token ensures all pages are retrieved. This is the standard method for consuming paginated APIs and guarantees complete data extraction.

Why this answer

Following the 'next_page' token in a loop until it is null is the correct way to handle API pagination. This ensures that every page is requested and processed, resulting in a complete dataset. It also respects the API's design and any rate limits.

Exam trap

The trap here is assuming that a single large request can bypass pagination, but APIs enforce limits and pagination tokens must be followed sequentially.

463
MCQeasy

In SQL, you want to retrieve all products whose names start with 'Pro'. Which WHERE clause should you use?

A.WHERE product_name LIKE '%Pro%'
B.WHERE product_name LIKE 'Pro_'
C.WHERE product_name = 'Pro'
D.WHERE product_name LIKE 'Pro%'
AnswerD

LIKE with the wildcard 'Pro%' matches any product_name beginning with the literal characters Pro, since % represents zero or more trailing characters. Equality (=) would require an exact full-string match, failing the stem's prefix requirement.

Why this answer

LIKE with pattern 'Pro%' matches strings starting with 'Pro' followed by any characters. '%Pro%' matches any string containing 'Pro', 'Pro_' matches 'Pro' plus one character, and 'Pro' is exact match.

464
Multi-Selectmedium

A data analyst is documenting a report for external stakeholders. Which THREE elements should be included to ensure report quality and transparency?

Select 3 answers
A.Data freshness (e.g., last updated timestamp)
B.Employee names who created the report
C.Row-level security settings
D.Limitations and assumptions
E.Methodology notes
AnswersA, D, E

A last-updated timestamp directly evidences data freshness, satisfying the transparency requirement for external stakeholders who cannot verify currency themselves. Unlike internal audiences, external readers lack system access, so an explicit recency marker lets them judge whether figures remain valid for their decision. This makes the report auditable and trustworthy.

Why this answer

Option A (Data freshness, e.g., last updated timestamp) is correct because documenting when the data was last refreshed tells external stakeholders how current the figures are, which is essential for judging whether the report is fit for their decision-making. Option D (Limitations and assumptions) is correct because transparently stating what the analysis does not cover and what conditions it relies on prevents stakeholders from over-interpreting results and misusing them. Option E (Methodology notes) is correct because explaining how the data was collected, transformed, and calculated lets external readers verify the approach and reproduce or trust the results.

Option B (Employee names who created the report) is not required for report quality and transparency; authorship metadata is optional and can even conflict with privacy or anonymity requirements. Option C (Row-level security settings) is an access-control implementation detail, not a transparency element for external stakeholders, and exposing it could reveal sensitive security configuration.

465
MCQhard

After building a binary classification model, the data analyst obtains the following confusion matrix: True Positives=80, True Negatives=100, False Positives=20, False Negatives=30. What is the F1 score?

A.0.76
B.0.73
C.0.80
D.0.69
AnswerA

F1 balances precision and recall via their harmonic mean. Precision is 80/100 = 0.80; recall is 80/110 ≈ 0.727. F1 = 2 × (0.80 × 0.727) / (0.80 + 0.727) ≈ 0.762, which rounds to 0.76.

Why this answer

The F1 score is the harmonic mean of precision and recall. Precision = TP/(TP+FP) = 80/(80+20) = 0.80. Recall = TP/(TP+FN) = 80/(80+30) ≈ 0.7273.

F1 = 2 * (0.80 * 0.7273) / (0.80 + 0.7273) ≈ 0.7619, which rounds to 0.76. Option A is correct.

Exam trap

CompTIA often tests the distinction between precision, recall, and F1, and the trap here is that candidates mistakenly use accuracy or a simple average instead of the harmonic mean, or they confuse recall with F1.

How to eliminate wrong answers

Option B (0.73) is wrong because it approximates recall (0.727) instead of computing the harmonic mean. Option C (0.80) is wrong because it uses precision alone, ignoring recall. Option D (0.69) is wrong because it likely results from a miscalculation, such as averaging precision and recall arithmetically (0.80+0.727)/2 ≈ 0.76, not 0.69, or from an incorrect formula like (TP+TN)/(TP+TN+FP+FN) = 180/230 ≈ 0.78, which is accuracy, not F1.

466
MCQmedium

A dashboard shows sales by region using a map with color intensity. Users complain that two regions with very different sales appear nearly the same color. What is the most likely cause?

A.The map projection is distorted
B.The color scale uses a sequential palette with insufficient contrast
C.The monitor resolution is too low
D.Users are color blind
AnswerB

A sequential palette maps values onto one hue's lightness ramp, so two regions with very different sales can land on similar shades when the scale's contrast is too low or its range poorly fitted to the data. Widening the lightness range or switching to a diverging scale restores the visible difference.

Why this answer

The issue is that the color scale uses a sequential palette with insufficient contrast between adjacent data values. When the color gradient is too narrow or uses similar hues, regions with significantly different sales figures map to nearly identical colors, making the visualization ineffective. This is a common problem in data visualization when the color mapping does not span the full range of the data or uses a perceptually uniform palette poorly.

Exam trap

The trap here is that candidates may attribute the problem to hardware limitations (monitor resolution) or user physiology (color blindness) rather than recognizing it as a fundamental data visualization design flaw in the color scale selection.

How to eliminate wrong answers

Option A is wrong because map projection distortion affects the shape and area of regions, not the color intensity used to represent sales values. Option C is wrong because monitor resolution affects the sharpness of the display, not the perceived color difference between two distinct data values on the same screen. Option D is wrong because while color blindness can cause confusion between certain colors, the complaint is that two regions with very different sales appear nearly the same color, which points to a scale design issue rather than a user vision deficiency.

467
Multi-Selectmedium

A university database stores student information in a normalized schema. The 'students' table has a primary key 'student_id'. The 'enrollments' table has a foreign key 'student_id' referencing 'students'. Which two of the following are true about primary and foreign keys? (Select TWO)

Select 2 answers
A.A foreign key must have the same name as the primary key it references
B.A foreign key ensures referential integrity between tables
C.A foreign key can reference a column that is not a primary key
D.A table can have multiple primary keys
E.A primary key column cannot contain NULL values
AnswersB, E

Foreign keys enforce that values match the referenced primary key.

Why this answer

A foreign key enforces referential integrity by ensuring that every value in the foreign key column of the 'enrollments' table matches a valid primary key value in the 'students' table. This prevents orphaned records and maintains consistency across related tables in a normalized relational database.

Exam trap

The trap here is that candidates often assume a foreign key can reference any column, forgetting that the referenced column must have a unique constraint (primary key or unique) to ensure a single target row, which is a common point of confusion in DA0-001.

468
Multi-Selectmedium

A data analyst is creating a report that includes customer names and addresses. To comply with privacy regulations, which TWO actions should the analyst take?

Select 2 answers
A.Use aggregated data instead of individual records.
B.Include customer names for context.
C.Anonymize or remove personally identifiable information (PII).
D.Share the raw data with all stakeholders.
E.Encrypt the report but keep names visible.
AnswersA, C

Aggregation replaces individual customer records with summary statistics, so names and addresses never appear in the report. This directly satisfies the privacy requirement by removing personally identifiable information at source, rather than masking or encrypting it. The analyst can still report meaningful trends without exposing any individual's identity.

Why this answer

Anonymizing PII (e.g., removing or masking names/addresses) and aggregating data prevent individual identification, which is required for GDPR compliance.

469
MCQeasy

A data analyst wants to combine first_name and last_name columns into a single full_name column in a SQL query. Which string function should be used?

A.CONCAT()
B.UPPER()
C.LENGTH()
D.SUBSTRING()
AnswerA

CONCAT() joins two or more string values into one, directly satisfying the requirement to merge first_name and last_name into a full_name column. Unlike the concatenation operator, it handles NULL inputs by treating them as empty strings, avoiding a NULL result when either name column is missing.

Why this answer

CONCAT() joins two or more strings together.

470
Multi-Selectmedium

Which TWO actions will improve the readability of a bar chart showing quarterly sales across five regions?

Select 2 answers
A.Overlay a line chart showing cumulative sales
B.Sort bars in descending order of sales
C.Add data labels on top of each bar
D.Add vertical gridlines for every bar
E.Switch to a 3D bar chart to add visual depth
AnswersB, C

Sorting bars by descending sales creates a clear visual ranking, letting viewers compare regional performance instantly rather than scanning an arbitrary order. This directly satisfies the readability constraint by reducing cognitive effort when identifying top and bottom performers across the five regions.

Why this answer

Option B is correct because sorting bars in descending order of sales arranges the categories by magnitude, letting viewers instantly rank the five regions and spot the highest and lowest performers without scanning back and forth. Option C is correct because data labels placed on top of each bar display the exact sales values directly, eliminating the need to estimate values against an axis and reducing reliance on gridlines. Together these two changes make the chart's message immediately clear.

Option A does not belong because overlaying a cumulative line adds a second, differently scaled metric that complicates rather than clarifies the quarterly comparison. Option D does not belong because gridlines at every bar add visual clutter and compete with the bars instead of improving readability. Option E does not belong because 3D bar charts distort bar lengths through perspective, making values harder to compare accurately.

Exam trap

DA0-002 often tests whether candidates confuse 'more visual elements' with 'more readable' — adding gridlines, 3D effects, or secondary series usually reduces readability, not improves it.

471
MCQhard

A data analyst is preparing a presentation on customer churn. The audience consists of both technical and non-technical stakeholders. Which visualization approach is most effective?

A.A box plot showing distribution of churn.
B.A heatmap showing correlation of churn factors.
C.A simple bar chart showing churn rate by segment.
D.A scatter plot with multiple variables.
AnswerC

A simple bar chart encodes churn rate by segment using length, which both technical and non-technical stakeholders can read without statistical training. This satisfies the stem's mixed-audience constraint, since it avoids model internals while still conveying the segment-level comparison the presentation requires.

Why this answer

A simple bar chart showing churn rate by segment is most effective because it directly communicates the key metric (churn rate) across categorical segments (e.g., customer demographics or plan types) in a format that is immediately understandable to both technical and non-technical stakeholders. Bar charts excel at comparing discrete categories without requiring statistical literacy, making them ideal for mixed audiences in a presentation context.

Exam trap

The trap here is that candidates often choose complex visualizations like heatmaps or scatter plots to appear 'data-savvy', forgetting that the primary goal is clear communication to a mixed audience, not technical sophistication.

How to eliminate wrong answers

Option A is wrong because a box plot, while useful for showing distribution and outliers, requires understanding of quartiles and median, which is not intuitive for non-technical stakeholders and does not directly highlight churn rate by segment. Option B is wrong because a heatmap showing correlation of churn factors is a multivariate tool that implies a level of statistical understanding (e.g., interpreting correlation coefficients) that non-technical audiences typically lack, and it does not present churn rate in a straightforward, actionable manner. Option D is wrong because a scatter plot with multiple variables is designed to reveal relationships between continuous variables and can become cluttered or confusing when used for categorical comparisons, making it unsuitable for a mixed audience that needs clear, digestible insights.

472
MCQeasy

Refer to the exhibit. An Avro schema is defined as shown. Which data design concept does this represent?

A.Schema-on-read
B.Schema-less design
C.Dynamic schema
D.Schema-on-write
AnswerD

Schema-on-write enforces the Avro schema at ingestion, validating each record before storage. This satisfies the exhibit's requirement that data conforms to a predefined structure, unlike schema-on-read, which defers interpretation until query time and permits malformed records to persist in the store.

Why this answer

An Avro schema explicitly defines the structure and data types of records before data is written, which is the definition of schema-on-write. The schema is enforced at write time, ensuring data conforms to the defined format when stored. This contrasts with schema-on-read, where structure is applied only when data is queried.

Exam trap

DA0-002 often tests the confusion between schema-on-write and schema-on-read — the trap is assuming that because Avro is flexible, it is schema-on-read, when in fact Avro enforces schema at write time.

How to eliminate wrong answers

Option A is wrong because schema-on-read applies structure at query time (e.g., Parquet read with a defined schema), not when the Avro schema is defined and enforced at write. Option B is wrong because schema-less design means no schema is enforced at all, which contradicts having an explicit Avro schema. Option C is wrong because 'dynamic schema' is not a standard data design concept in this context; Avro schemas are static and versioned, not dynamically inferred at read time.

473
MCQhard

A data architect is designing a system to store data for a real-time analytics application. The application requires high-speed ingestion of semi-structured data with flexible schemas, and the ability to query data using SQL-like syntax. The data volume is expected to grow rapidly. Which type of database should the architect choose?

A.NoSQL document database
B.Graph database
C.Relational database
D.Data warehouse
AnswerA

A NoSQL document database stores semi-structured data in flexible, JSON-like documents and supports high-speed ingestion and horizontal scaling. Many document databases also offer SQL-like query languages or APIs. This makes it well-suited for real-time analytics with evolving schemas and large data volumes.

Why this answer

A NoSQL document database is the best choice because it handles semi-structured data with flexible schemas, supports high-speed ingestion, and scales horizontally. It often provides SQL-like query capabilities. Relational databases are too rigid, data warehouses are for structured historical data, and graph databases are for relationship-heavy use cases.

Exam trap

The trap here is assuming that a relational database or data warehouse can handle flexible schemas and real-time semi-structured ingestion just because they support SQL.

474
MCQmedium

A healthcare analytics team stores patient visit records in a relational database. Each visit has a unique VisitID, and the team frequently needs to join visit data with physician and facility tables. The database must enforce referential integrity between these tables. Which data model characteristic best describes this environment?

A.A normalized relational model with primary and foreign key constraints
B.A document-oriented NoSQL store with embedded visit documents
C.A key-value store using VisitID as the lookup key
D.A denormalized star schema optimized for analytical query speed
AnswerA

This scenario requires enforcing referential integrity between visit, physician, and facility tables, which is achieved through primary and foreign key constraints in a normalized relational model. The unique VisitID serves as the primary key, and foreign keys link related tables. Normalization reduces redundancy and maintains consistency across joins, directly matching the described requirements.

Why this answer

The described environment requires unique identifiers, joins across multiple related tables, and enforced referential integrity. These are defining characteristics of a normalized relational model using primary and foreign keys. Alternative models either lack join capabilities or do not enforce integrity constraints, making them unsuitable for this healthcare analytics scenario.

Exam trap

The trap here is assuming that any database storing related records must be relational, when the distinguishing factor is the explicit requirement for enforced referential integrity through primary and foreign keys.

475
Multi-Selecteasy

A data analyst is preparing to build a predictive model. Which TWO steps are essential to ensure model validity? (Choose two.)

Select 2 answers
A.Increase model complexity
B.Perform cross-validation
C.Avoid feature selection
D.Use the entire dataset for training
E.Split data into training and testing sets
AnswersB, E

Cross-validation partitions the dataset into complementary training and validation folds, so performance is estimated on data the model has not seen. This directly satisfies the stem's validity requirement by detecting overfitting and yielding a generalisable accuracy estimate rather than an optimistic fit to the training set alone.

Why this answer

Option B (Perform cross-validation) is correct because cross-validation, such as k-fold or stratified k-fold, partitions the data into multiple train/validation folds to estimate how well the model generalizes and to detect overfitting, which is essential for establishing model validity. Option E (Split data into training and testing sets) is correct because holding out an independent test set ensures the model is evaluated on data it has never seen, giving an unbiased estimate of predictive performance and guarding against data leakage. Option A is not correct because increasing model complexity can cause overfitting and does not by itself ensure validity.

Option C is not correct because skipping feature selection can introduce irrelevant or noisy variables that degrade model performance. Option D is not correct because training on the entire dataset leaves no independent data for evaluation, making it impossible to assess generalization.

Exam trap

The trap here is that candidates may think using the entire dataset for training (Option D) is acceptable because it maximizes data for learning, but they overlook the necessity of a separate testing set to validate model performance and avoid overfitting.

476
MCQhard

You have a hierarchical table 'Employees' with columns emp_id, emp_name, manager_id (referencing emp_id). You need to generate a full reporting chain from a given employee up to the CEO. Which SQL construct is most appropriate?

A.Recursive CTE with UNION ALL
B.Non-recursive CTE
C.Window function with PARTITION BY
D.Self-join with multiple JOINs
AnswerA

A recursive CTE references its own result set, using an anchor member for the starting employee and a recursive member joining manager_id to emp_id. UNION ALL combines each level, walking the hierarchy upward until the CEO is reached.

Why this answer

A recursive CTE with UNION ALL is the standard SQL construct for traversing hierarchical data such as an employee-manager reporting chain. The anchor member selects the starting employee, and the recursive member joins back to the Employees table on manager_id = emp_id, iterating until the CEO is reached. UNION ALL preserves all rows in the chain without deduplication overhead.

Exam trap

DA0-002 often tests whether candidates recognize that hierarchical traversal requires recursion — the trap is choosing a self-join with a fixed number of JOINs, which works only for a known depth and silently misses deeper chains.

How to eliminate wrong answers

Option B is wrong because a non-recursive CTE cannot reference itself and therefore cannot traverse an arbitrary-depth hierarchy. Option C is wrong because window functions with PARTITION BY operate on a fixed result set and cannot iteratively walk parent-child relationships. Option D is wrong because a self-join with multiple JOINs only works for a fixed, known depth (e.g., three levels) and fails for variable-depth hierarchies like a reporting chain of unknown length.

477
MCQmedium

A data analyst needs to combine data from two tables: one containing customer information and another containing order details. The analyst wants to include all customers, even those who have not placed any orders. Which type of join should be used?

A.FULL OUTER JOIN
B.LEFT JOIN
C.INNER JOIN
D.RIGHT JOIN
AnswerB

A LEFT JOIN returns every row from the left (customer) table plus matching rows from the right (order) table, emitting NULLs where no order exists. That satisfies the stated constraint of retaining customers with zero orders, which an INNER JOIN would silently discard.

Why this answer

A LEFT JOIN returns all rows from the left table (customers) and matching rows from the right table (orders). If a customer has no orders, the order columns will contain NULLs. This satisfies the requirement to include all customers, even those without orders.

Exam trap

The trap here is that candidates often confuse LEFT JOIN with FULL OUTER JOIN, thinking they need to preserve all rows from both tables, when the requirement only specifies preserving all customers.

How to eliminate wrong answers

Option A is wrong because a FULL OUTER JOIN returns all rows from both tables, which would include unmatched orders (if any) and is unnecessary when only all customers are needed. Option C is wrong because an INNER JOIN returns only rows with matches in both tables, excluding customers who have not placed orders. Option D is wrong because a RIGHT JOIN returns all rows from the right table (orders) and matching customers, which would omit customers without orders if the customer table is on the left.

478
MCQmedium

A data engineer is comparing data warehouses and data lakes. Which statement accurately describes a data warehouse?

A.Typically stores data in object storage
B.Optimized for complex queries on structured data
C.Stores raw, unprocessed data
D.Uses schema-on-read
AnswerB

A data warehouse stores structured, schema-on-write data in a columnar or relational model tuned for complex analytical SQL queries. This contrasts with data lakes, which hold raw structured and unstructured data in schema-on-read object storage.

Why this answer

A data warehouse is optimized for complex queries on structured data because it uses a schema-on-write approach, where data is cleaned, transformed, and organized into relational tables (e.g., star or snowflake schemas) before loading. This pre-processing enables efficient execution of aggregations, joins, and reporting queries using SQL, making it ideal for business intelligence and analytics. In contrast, data lakes store raw data in native formats and rely on schema-on-read, which is less performant for structured query patterns.

Exam trap

The trap here is that candidates confuse the storage location (object storage) or data state (raw vs. processed) with the defining characteristic of a data warehouse, which is its schema-on-write design and optimization for structured query performance.

How to eliminate wrong answers

Option A is wrong because data warehouses typically store data in structured, columnar formats (e.g., Parquet, ORC) within relational databases or dedicated storage engines, not in object storage like Amazon S3 or Azure Blob Storage, which is characteristic of data lakes. Option C is wrong because data warehouses store processed, transformed, and cleansed data optimized for analysis, not raw, unprocessed data; raw data is a hallmark of data lakes. Option D is wrong because data warehouses use schema-on-write, where the schema is defined and enforced at data ingestion time, whereas schema-on-read is a property of data lakes where the schema is applied only when the data is queried.

479
MCQeasy

A marketing analyst wants to append a purchased third-party demographic file to the company's customer records. The vendor's contract states the data may be used for internal analytics but not redistributed. Which data governance concept governs how the analyst may lawfully use this dataset?

A.Data use agreement, which defines permitted purposes, restrictions, and obligations for the licensed dataset
B.Data classification, which labels the dataset as confidential based on sensitivity
C.Data quality rule, which validates that the purchased records meet accuracy thresholds
D.Data retention policy, which specifies how long the records may be stored before deletion
AnswerA

A data use agreement is the contractual instrument that spells out allowable purposes, prohibitions such as redistribution, and the obligations of the receiving party. Because the vendor explicitly limits use to internal analytics and forbids redistribution, the analyst must consult the data use agreement to confirm the append is permitted and to understand downstream sharing limits.

Why this answer

Licensing and permitted-use questions are governed by data use agreements, which articulate allowable purposes, redistribution prohibitions, and the receiving party's obligations. Classification handles sensitivity, retention handles lifecycle duration, and quality rules handle fitness of values. Only the data use agreement speaks directly to whether the purchased demographic data may be appended and how resulting outputs may be shared.

Exam trap

The trap here is conflating data classification with contractual usage rights, when sensitivity labels do not define permitted purposes.

480
Multi-Selectmedium

A data analyst is preparing a dataset for analysis and needs to address data quality issues. Which TWO of the following are common data cleaning tasks?

Select 2 answers
A.Performing hypothesis testing
B.Imputing missing values
C.Building a regression model
D.Calculating correlation coefficients
E.Deduplicating records
AnswersB, E

Imputing missing values replaces nulls with substituted estimates such as mean, median or model-predicted figures, satisfying the stem's data quality remediation goal. It preserves row counts for analysis rather than discarding incomplete records, directly addressing missingness as a cleaning task.

Why this answer

Option B (Imputing missing values) is correct because missing data is a classic data quality problem, and imputation—filling gaps using methods like mean, median, mode, or model-based estimates—is a standard data cleaning step that makes the dataset complete and usable for analysis. Option E (Deduplicating records) is correct because duplicate rows or records distort counts, aggregates, and model results, so identifying and removing or merging duplicates is a core data cleaning task. The unmarked options do not belong because hypothesis testing (A), building a regression model (C), and calculating correlation coefficients (D) are all downstream analytical or statistical modeling activities performed on already-cleaned data, not cleaning operations themselves.

Exam trap

The trap is mixing analysis activities (hypothesis testing, regression, correlation) with cleaning activities — candidates must distinguish preprocessing/data-quality remediation from downstream statistical modeling.

481
MCQmedium

A multinational retailer stores customer records in a cloud data warehouse. The governance council must classify each attribute by its sensitivity so downstream masking rules can be applied automatically. The privacy officer asks which classification label should be applied to a field containing government-issued identification numbers that, if exposed, would create legal liability and identity-theft risk.

A.Restricted
B.Confidential
C.Internal
D.Public
AnswerA

Restricted classification is reserved for the most sensitive data, where exposure causes severe legal, financial, or personal harm. Government-issued identifiers fall into this tier because their disclosure enables identity theft and triggers mandatory breach notification. Labeling the field Restricted ensures the data warehouse enforces the strongest access controls and masking rules automatically for every downstream consumer.

Why this answer

Government-issued identification numbers create severe personal and legal harm when exposed, which places them in the highest sensitivity tier. The governance council must map each attribute to the tier whose definition matches that worst-case impact so the data warehouse can enforce masking and access rules automatically. Restricted classification drives those strongest controls for every downstream consumer.

Exam trap

The trap here is assuming any non-public label is sufficient, when the classification tier must reflect the severity of harm rather than merely being internal or confidential.

482
MCQmedium

Refer to the exhibit. An analyst runs a query to count orders in June 2023 and gets 12,345. However, a dashboard shows 12,298 for the same month. What is the most likely cause?

A.The dashboard includes time zone conversion
B.The query has a syntax error
C.The query excludes orders that were canceled
D.The dashboard is using a different data source
AnswerA

Time zone conversion shifts order timestamps across month boundaries, moving some June orders into May or July depending on the offset applied. This reclassification explains why the dashboard total differs from the raw query count.

Why this answer

The most likely cause is that the dashboard applies a time zone conversion to the order timestamps, while the analyst's query counts orders based on UTC or a different time zone. If the dashboard converts timestamps to a local time zone (e.g., US/Eastern), orders placed near midnight UTC may fall into a different calendar day or month, causing a discrepancy of 47 orders. This is a common issue when raw data is stored in UTC but reporting tools apply a time zone offset without adjusting the query logic.

Exam trap

CompTIA often tests the concept that time zone conversion can cause subtle count discrepancies in reporting, and the trap here is that candidates assume the dashboard is always correct or that the query must have an error, rather than recognizing that both can be technically correct but apply different time zone interpretations.

How to eliminate wrong answers

Option B is wrong because a syntax error would typically cause the query to fail entirely or return an error, not produce a valid count of 12,345 that differs from the dashboard. Option C is wrong because excluding canceled orders would reduce the count, but the query returned a higher number (12,345) than the dashboard (12,298), so the query includes more orders, not fewer. Option D is wrong because using a different data source would likely produce a fundamentally different dataset, not a small, consistent offset of 47 orders; the close proximity of the counts suggests the same underlying data with a transformation difference.

483
Matchingmedium

Match each ETL process step to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Retrieve data from source systems

Clean, format, and apply business rules

Insert processed data into target system

Analyze source data to understand structure

Correct or remove inaccurate records

Why these pairings

In ETL, Extract involves retrieving data from sources, Transform involves cleaning and converting data, and Load involves writing data to a target system. Common confusions include swapping the definitions of Extract and Transform, or misattributing real-time data capture to Load.

484
MCQmedium

In a Power BI report, a user wants to create a measure that calculates total sales for the current year up to today. Which DAX function should they use?

A.TOTALYTD
B.CALCULATE
C.SUMX
D.SAMEPERIODLASTYEAR
AnswerA

TOTALYTD evaluates the year-to-date total by applying a DATESYTD filter to the specified date column, automatically aggregating sales from the start of the current year through today. This directly satisfies the stem's requirement for a current-year-to-date measure without manual date filtering.

Why this answer

TOTALYTD is a time intelligence function that calculates year-to-date values.

485
MCQeasy

A marketing team wants to segment customers into distinct groups based on purchasing behavior. The data includes numeric features such as frequency, monetary value, and recency. Which unsupervised learning algorithm should be used?

A.Decision tree
B.K-means clustering
C.Linear regression
D.Association rules
AnswerB

K-means clustering partitions numeric feature space into k groups by minimising within-cluster variance, directly satisfying the requirement to segment customers on frequency, monetary value and recency. It handles continuous, unlabelled data without predefined categories, making it appropriate for this unsupervised behavioural segmentation task.

Why this answer

K-means clustering is the correct choice because it is an unsupervised learning algorithm that partitions data into K distinct clusters based on feature similarity. For segmenting customers by purchasing behavior (frequency, monetary value, recency), K-means groups customers with similar numeric patterns without requiring labeled outcomes, making it ideal for exploratory segmentation.

Exam trap

The trap here is that candidates may confuse unsupervised clustering (K-means) with supervised classification (decision tree) or regression (linear regression), mistakenly thinking any algorithm that 'groups' data must be supervised, or that association rules are for segmentation rather than transaction pattern mining.

How to eliminate wrong answers

Option A is wrong because a decision tree is a supervised learning algorithm used for classification or regression, requiring labeled target variables, not for unsupervised segmentation of unlabeled customer data. Option C is wrong because linear regression is a supervised learning algorithm that models the relationship between independent and dependent variables, predicting a continuous output, not for discovering hidden groups in unlabeled data. Option D is wrong because association rules are used for market basket analysis to find frequent itemsets and co-occurrence patterns (e.g., products bought together), not for clustering customers into distinct groups based on numeric features.

486
Multi-Selecthard

A data engineer is designing a data lake to store raw data from multiple sources, including JSON logs, CSV files, and Parquet files. The data will be used for both batch analytics and machine learning. The engineer must choose storage and processing strategies that align with the characteristics of a data lake. Which two of the following are core characteristics of a data lake? (Choose two.)

Select 2 answers
A.It stores data in its native format, including structured, semi-structured, and unstructured data.
B.It enforces schema-on-write, requiring data to be structured before storage.
C.It is optimized for high-cost, low-volume transactional processing.
D.It uses schema-on-read, applying structure only when the data is queried.
E.It requires all data to be transformed and cleaned before it can be stored.
AnswersA, D

A data lake is designed to ingest and store data in its original format, such as JSON, CSV, Parquet, or images, without requiring transformation. This flexibility supports diverse analytics and machine learning use cases. Storing native formats allows the organization to defer schema definition until read time, which is a defining characteristic of a data lake.

Why this answer

A data lake stores data in its native format and applies schema-on-read, allowing raw data to be stored without upfront transformation. These two characteristics enable flexibility and support diverse data types. Enforcing schema-on-write, pre-storage transformation, and optimization for transactional processing are not core to data lakes.

Exam trap

The trap here is mixing data lake characteristics with those of a data warehouse, such as schema-on-write and pre-storage transformation.

487
Multi-Selecthard

A data engineer is profiling a newly acquired customer table before loading it into a warehouse. The table has a customer_id column that should be unique, a signup_date column stored as text in 'YYYY-MM-DD' format, and a country column with values such as 'US', 'USA', 'United States', and 'U.S.'. The engineer must document which data quality dimensions are violated and plan remediation. Which TWO actions best address the identified data quality issues? (Choose two.)

Select 2 answers
A.Standardize the country values to a single reference list using a mapping table or CASE expression.
B.Impute missing signup_date values with the current date to avoid nulls in the column.
C.Delete all rows where the customer_id appears more than once to enforce uniqueness.
D.Leave the country values as-is because they all refer to the same country and analysts can interpret them.
E.Convert the signup_date text column to a native date data type during the load.
AnswersA, E

The country column contains multiple representations of the same country, which violates consistency. Mapping variants like 'USA', 'United States', and 'U.S.' to one canonical code resolves the inconsistency and enables reliable grouping and joins. This directly addresses the identified quality issue through a documented, repeatable transformation rather than ad hoc fixes.

Why this answer

The profile reveals a consistency problem in the country column and a type-conformance problem in the signup_date column. Standardizing country values and converting the date text to a native date type both directly remediate identified defects. Deleting duplicate IDs, ignoring inconsistent labels, or fabricating missing dates either destroys valid data or hides problems instead of resolving them.

Exam trap

The trap here is treating every anomaly as something to remove or overwrite, when the correct response is to remediate the specific quality dimension that is actually violated.

488
MCQmedium

An analyst is performing EDA and wants to measure the strength and direction of linear relationship between two continuous variables. Which statistical measure should they compute?

A.Correlation
B.Standard deviation
C.Mean
D.Mode
AnswerA

Correlation quantifies both the strength and direction of a linear relationship between two continuous variables, returning a value from -1 to +1. This matches the analyst's EDA goal precisely, unlike covariance, which indicates direction but is scale-dependent.

Why this answer

Correlation (typically Pearson's r for linear relationships) is the standardized measure of both the strength and direction of a linear relationship between two continuous variables, ranging from -1 to +1. A positive value indicates a positive linear association, a negative value a negative one, and the magnitude indicates strength. Standard deviation, mean, and mode are univariate descriptive statistics and say nothing about the relationship between two variables.

Exam trap

The trap here is confusing univariate descriptive statistics (mean, standard deviation, mode) with bivariate measures of association; candidates who skim may pick standard deviation because it sounds 'statistical' without noticing the question asks about the relationship between two variables.

How to eliminate wrong answers

Option B is wrong because standard deviation measures the spread/dispersion of a single variable around its mean, not the relationship between two variables. Option C is wrong because the mean is a measure of central tendency for one variable and provides no information about association. Option D is wrong because the mode is the most frequent value in a distribution — a univariate categorical/descriptive statistic with no role in measuring linear relationships.

489
MCQmedium

During data acquisition, a data engineer uses a tool to extract data from a source system incrementally based on a timestamp column. Which method is being used?

A.Change data capture (CDC)
B.Snapshot extraction
C.Full extraction
D.Manual extraction
AnswerA

Change data capture extracts only rows changed since the last run, using the timestamp column as the high-water mark to identify new or modified records. This incremental pattern avoids full reloads, satisfying the requirement to extract data incrementally rather than in bulk.

Why this answer

The method being used is change data capture (CDC), specifically timestamp-based CDC. CDC is a technique used to identify and capture changes made to data in a source system since the last extraction, often by using a timestamp column (e.g., last_modified) to select only rows that have changed. This allows for incremental extraction, reducing load and improving efficiency.

Exam trap

DA0-002 often tests the confusion between CDC and full extraction; candidates must recognize that incremental extraction based on a timestamp is a form of CDC.

How to eliminate wrong answers

Option B is wrong because snapshot extraction involves taking a full copy of the data at a point in time, not incremental based on a timestamp. Option C is wrong because full extraction extracts all data every time, which is not incremental. Option D is wrong because manual extraction implies human intervention, not an automated tool-based incremental process.

490
MCQeasy

A data analyst at a retail bank is preparing a daily transaction file for loading into the analytics warehouse. The source system exports dates in the format 'MM/DD/YYYY', but the target warehouse requires ISO 8601 format 'YYYY-MM-DD'. The analyst needs to transform the date column without changing the underlying date value. Which transformation should the analyst perform?

A.Apply a regular expression to reorder the month, day, and year components into YYYY-MM-DD.
B.Change the source system's regional date setting so exports use ISO 8601.
C.Use a date parsing and formatting function to interpret MM/DD/YYYY and output YYYY-MM-DD.
D.Store the date column as a string and let the warehouse interpret the format at query time.
AnswerC

Parsing the source string with the known input format and then formatting it to ISO 8601 preserves the actual date value while meeting the target schema requirement. Native date functions also validate calendar constraints and handle leap years and month lengths correctly. This is the standard, maintainable approach for changing a date representation during data preparation.

Why this answer

Converting a date representation while preserving the value is a standard data transformation task. Using a native parse-and-format function with an explicit input format ensures the calendar date is interpreted correctly and emitted as ISO 8601. Regex reordering, source-system changes, or untyped strings either risk invalid dates, affect unrelated systems, or defer correctness to query time, none of which meets the warehouse loading requirement cleanly.

Exam trap

The trap here is assuming any string manipulation that rearranges characters is equivalent to proper date conversion, when only a date-aware function validates and preserves the actual calendar value.

491
MCQmedium

A healthcare analytics team is acquiring a monthly extract of patient encounter records from a partner hospital. The extract arrives as a compressed CSV with a documented layout, but the team notices that the record count has dropped by roughly 15 percent compared with the prior month and that several encounters near month-end are absent. Which acquisition control should the team apply FIRST to determine whether the issue is a delivery problem or a source-system problem?

A.Apply imputation to estimate the missing encounters so monthly reporting is not delayed.
B.Escalate to the partner hospital's IT department and request a full re-extraction without further investigation.
C.Run a reconciliation check comparing the delivered record count and date range against the agreed extract specification and the prior month's profile.
D.Immediately rewrite the transformation jobs to handle a smaller dataset and reload the warehouse.
AnswerC

A reconciliation check establishes whether the file matches expected volume and coverage before any transformation. Comparing count and date range against the specification and the previous month isolates whether the gap is in delivery or in the source. This is a low-cost, first-line control that produces evidence for the partner conversation and prevents premature changes to downstream logic.

Why this answer

When a recurring extract shows an unexpected volume or coverage change, the first control is reconciliation against the agreed specification and historical profile. That comparison determines whether the file is incomplete in transit or the source system produced fewer records. Only after the cause is known should the team remediate, whether by requesting a corrected file or adjusting downstream processing.

Acting on downstream code or imputing data before diagnosis risks compounding the error.

Exam trap

The trap here is jumping to remediation or imputation when the correct first step is a reconciliation control that establishes where the shortfall occurred.

492
Multi-Selectmedium

Which TWO are examples of leading indicators in a business context? (Select two.)

Select 2 answers
A.Employee turnover rate
B.Net profit margin
C.Customer engagement score
D.Number of qualified leads
E.Monthly revenue
AnswersC, D

Customer engagement score measures current sentiment and activity that precedes future purchasing behaviour, so it predicts later revenue rather than reporting it. That forward-looking quality is what distinguishes leading indicators from lagging ones such as quarterly sales totals.

Why this answer

Leading indicators are forward-looking metrics that predict future performance, and option C (customer engagement score) qualifies because engagement levels today tend to forecast future retention, loyalty, and purchasing behavior. Option D (number of qualified leads) is also a leading indicator since a healthy pipeline of qualified prospects predicts future sales and revenue before those deals close. By contrast, option A (employee turnover rate) is a lagging indicator because it measures past attrition that has already occurred, and options B (net profit margin) and E (monthly revenue) are lagging outcome metrics that report financial results after the fact rather than predicting them.

Exam trap

The trap is that revenue-adjacent metrics like profit margin and monthly revenue feel important and are often mistaken for leading indicators, but they are outcomes (lagging) — the exam tests whether you can distinguish predictive inputs from reported results.

493
MCQmedium

A data analyst is using pandas to read a CSV file named 'sales.csv'. Which line of code correctly reads the file into a DataFrame?

A.import csv; df = csv.read('sales.csv')
B.import pandas as pd; df = pd.read('sales.csv')
C.import numpy as np; df = np.read_csv('sales.csv')
D.import pandas as pd; df = pd.read_csv('sales.csv')
AnswerD

`pd.read_csv('sales.csv')` is pandas' dedicated CSV parser, returning a DataFrame directly from the file path. The import aliases pandas as `pd`, satisfying the stem's requirement to read `sales.csv` into a DataFrame in one line, with no extra arguments needed for a standard comma-delimited file.

Why this answer

The correct pandas idiom is pd.read_csv('sales.csv'), which returns a DataFrame. pandas is conventionally imported as pd, and read_csv is the dedicated CSV parser that handles delimiters, headers, dtypes, and encoding. This is the canonical one-liner every pandas user writes.

Exam trap

The trap is that all four options look syntactically plausible — candidates who don't actually use pandas daily may pick pd.read() or np.read_csv() because they sound reasonable, but only read_csv is the real API.

How to eliminate wrong answers

Option A is wrong because the standard library csv module has no csv.read() function — it exposes csv.reader() and csv.DictReader(), which return iterators of rows, not a DataFrame. Option B is wrong because pandas has no pd.read() method; the correct method name is read_csv (or read_table, read_excel, etc.). Option C is wrong because numpy has no np.read_csv() function — numpy provides np.loadtxt() and np.genfromtxt() for text files, and neither returns a pandas DataFrame.

494
MCQmedium

A regional bank's analytics team maintains a data catalog. A new analyst needs to know which column in the 'loan_applications' table stores the customer's country of residence, what values are permitted, and who owns the table. Which data governance artifact should the analyst consult FIRST to obtain all three pieces of information?

A.The enterprise data dictionary, because it defines each field's business meaning and permissible values
B.The data lineage diagram, because it traces the column's origin and downstream transformations
C.The business glossary, because it lists approved acronyms and metric formulas used across the bank
D.The data catalog, because it combines technical metadata, business definitions, permitted values, and ownership in one searchable inventory
AnswerD

A data catalog is the central inventory that consolidates technical metadata, business definitions, value constraints, and stewardship or ownership assignments for each asset. Searching the 'loan_applications' entry surfaces the column meaning, allowed values, and the accountable owner together, which is exactly the consolidated view this new analyst requires.

Why this answer

A data catalog aggregates metadata from multiple governance artifacts into a single searchable inventory, so it can answer definitional, value-domain, and ownership questions in one place. A data dictionary alone lacks ownership, a business glossary lacks column-level value constraints, and lineage addresses flow rather than meaning. The catalog is the artifact designed to unify these perspectives.

Exam trap

The trap here is assuming a business glossary contains column-level value constraints and table ownership, when it only defines business terminology.

495
MCQhard

A data engineer is designing a system to handle high-velocity clickstream data from a website. The system must allow low-latency writes and support key-value lookups. Which type of database is most appropriate?

A.Graph database (e.g., Neo4j)
B.Document store (e.g., MongoDB)
C.Key-value store (e.g., Redis)
D.Wide-column store (e.g., Cassandra)
AnswerC

A key-value store such as Redis satisfies both stated constraints: it performs low-latency writes by holding data in memory with simple key-based access, and it supports direct key-value lookups without joins or schema overhead. This suits high-velocity clickstream ingestion, where each event maps to a key and must be written and retrieved rapidly.

Why this answer

A key-value store like Redis is optimized for extremely low-latency reads and writes using in-memory data structures, making it ideal for high-velocity clickstream ingestion and fast key-value lookups (e.g., session state, counters, real-time analytics). Its simple key→value model avoids the overhead of document parsing or wide-column coordination, delivering sub-millisecond performance.

Exam trap

The trap is being drawn to wide-column stores because they are 'high write throughput,' but the question's emphasis on low-latency key-value lookups points specifically to an in-memory key-value store.

How to eliminate wrong answers

Option A is wrong because graph databases like Neo4j are optimized for traversing relationships (e.g., social networks, fraud rings), not high-throughput key-value writes. Option B is wrong because document stores like MongoDB store JSON-like documents and are better for flexible schemas than for the raw write velocity and simple lookups of clickstream data. Option D is wrong because wide-column stores like Cassandra handle high write throughput but are designed for distributed, column-family access patterns with higher per-operation latency than in-memory key-value stores, and are not the best fit for pure key-value lookups.

496
MCQeasy

Which of the following data types is characterized by a flexible schema and is commonly represented using JSON or XML?

A.Unstructured data
B.Structured data
C.Semi-structured data
D.Relational data
AnswerC

Semi-structured data lacks a rigid tabular schema yet retains tags or markers separating elements, typically serialised as JSON or XML. This flexibility distinguishes it from structured data, which enforces fixed columns, and unstructured data, which has no defined model.

Why this answer

JSON and XML are examples of semi-structured data, which has a flexible schema unlike structured data (fixed schema) or unstructured data (no schema).

497
MCQhard

A company is merging two databases from different departments. In Database A, customer IDs are integers. In Database B, customer IDs are alphanumeric strings. To merge, the data analyst must reconcile these differences. Which step should be taken first?

A.Drop the ID column and use a surrogate key
B.Convert all IDs to integers using CAST
C.Perform data profiling to understand the ID formats and relationships
D.Create a mapping table based on the first character
AnswerC

Profiling first reveals each database's ID format, value patterns and relationships before any mapping or conversion. Reconciling integer versus alphanumeric IDs requires knowing actual contents and referential links, so profiling satisfies the stem's requirement to understand formats and relationships.

Why this answer

Data profiling is the essential first step before any transformation or mapping. It allows the analyst to examine the actual formats, patterns, and relationships in both ID columns (e.g., whether Database B's alphanumeric IDs contain embedded numeric sequences or consistent prefixes). Without profiling, any conversion or mapping would be based on assumptions that could lead to data loss or incorrect merges.

Exam trap

The trap here is that candidates assume immediate conversion (Option B) is the simplest solution, but the exam tests the principle that data profiling must precede any transformation to avoid irreversible data corruption.

How to eliminate wrong answers

Option A is wrong because dropping the ID column and using a surrogate key discards the existing business meaning and relationships, which may be critical for linking records across departments. Option B is wrong because converting all IDs to integers using CAST will fail on alphanumeric strings that contain non-numeric characters, causing errors or data loss. Option D is wrong because creating a mapping table based solely on the first character is arbitrary and ignores the full ID structure, leading to incorrect or incomplete mappings.

498
MCQhard

A mid-sized e-commerce company stores customer data in a relational database. The database has a table named 'Customers' with columns: CustomerID (primary key), FirstName, LastName, Email, Phone, Address, City, State, ZipCode, and SignUpDate. The company is migrating to a new CRM system that requires a denormalized structure for performance reasons. The new system expects a single table 'CustomerDetails' with columns: CustomerID, FullName (concatenation of first and last name), ContactInfo (JSON object containing email, phone, and address), SignUpDate, and Region (derived from state). The data analyst must design an ETL process to transform the data. During a test run, the analyst notices that some records have missing Phone or Address values. Which of the following is the best approach to handle missing data in the ContactInfo JSON object?

A.Exclude any record with missing Phone or Address from the migration.
B.Set missing values to an empty string in the JSON object.
C.Include the missing fields as null in the JSON object.
D.Replace missing values with 'N/A' string.
AnswerC

Retaining missing fields as explicit nulls preserves the JSON schema and key structure, so downstream consumers can distinguish absent values from omitted keys. This satisfies the denormalised ContactInfo requirement without fabricating data or dropping otherwise valid customer records.

Why this answer

Representing missing fields as null in the JSON object preserves the data structure and allows downstream systems to explicitly handle null values. This approach maintains data integrity without discarding records or introducing ambiguous placeholder strings that could be misinterpreted as actual data.

Exam trap

The trap here is that candidates may confuse 'handling missing data' with 'filling in missing data,' leading them to choose placeholder strings (B or D) instead of preserving the null representation that JSON natively supports.

How to eliminate wrong answers

Option A is wrong because excluding records with missing Phone or Address would result in data loss, violating the migration requirement to preserve all customer data. Option B is wrong because setting missing values to an empty string conflates 'no data' with 'empty data,' which can cause incorrect processing in JSON parsers or CRM logic that expects null for absent values. Option D is wrong because replacing missing values with 'N/A' string introduces a non-standard placeholder that may be treated as valid data, leading to errors in downstream analytics or validation rules.

499
Multi-Selectmedium

A data analyst is cleaning a customer dataset. Which two actions are appropriate for handling duplicate records? (Choose TWO)

Select 2 answers
A.Impute missing values with mean
B.Delete any row with a duplicate email address
C.Remove all rows with identical values in every field
D.Apply Z-score standardization
E.Use a fuzzy matching algorithm to identify near-duplicates
AnswersC, E

Exact-row deduplication removes records where every field matches, eliminating true duplicates while preserving legitimate distinct customers who happen to share some values. This directly satisfies the cleaning goal, since identical rows across all fields carry no additional information and inflate counts and aggregates.

Why this answer

Option C is correct because removing rows whose values are identical across every field eliminates exact duplicate records, which is a standard and safe deduplication step in data cleaning. Option E is correct because fuzzy matching algorithms (e.g., Levenshtein distance or Jaro-Winkler similarity) identify near-duplicates that differ slightly due to typos, formatting, or abbreviations, allowing the analyst to review and consolidate them. Option A is incorrect because mean imputation addresses missing values, not duplicate records.

Option B is incorrect because deleting every row with a duplicate email address is overly aggressive and may remove legitimate distinct customers who share an email. Option D is incorrect because Z-score standardization is a scaling technique for numeric features and does not handle duplicates.

Exam trap

The trap here is confusing data-cleaning categories — candidates may pick mean imputation or Z-score standardization because they sound like 'cleaning' steps, but those address missing values and scaling, not duplicates.

500
MCQhard

A data pipeline log shows the above error. Which data transformation should be applied during acquisition?

A.Skip rows that cause errors
B.Preprocess the string to remove non-numeric characters, then convert to DECIMAL
C.Use CAST(transaction_amount AS DECIMAL(10,2)) in SQL
D.Change the target column type to VARCHAR
AnswerB

Removing non-numeric characters before casting satisfies the acquisition-stage requirement to cleanse malformed values. DECIMAL conversion then preserves precision for monetary figures, unlike FLOAT. This preprocessing step prevents the cast failure recorded in the pipeline log, ensuring the transformation occurs before data lands in the target store.

Why this answer

The error indicates that the pipeline encountered a string with non-numeric characters (e.g., '$1,234.56') when trying to load it into a DECIMAL column. Preprocessing the string to remove non-numeric characters (like currency symbols, commas) before conversion ensures the data is clean and parseable, which is a standard data transformation during acquisition to handle dirty source data.

Exam trap

The trap here is that candidates assume CAST in SQL can handle any string-to-number conversion, but CAST strictly requires a valid numeric string and will throw an error for non-numeric characters, making preprocessing essential.

How to eliminate wrong answers

Option A is wrong because skipping rows that cause errors would result in data loss and is not a proper transformation; it ignores the root cause of the dirty data. Option C is wrong because using CAST(transaction_amount AS DECIMAL(10,2)) in SQL would still fail if the string contains non-numeric characters, as CAST does not automatically strip them. Option D is wrong because changing the target column type to VARCHAR would avoid the conversion error but defeats the purpose of storing numeric data for calculations, leading to data integrity and performance issues.

501
MCQmedium

An e-commerce company uses a star schema for its data warehouse. The fact table 'sales_fact' contains foreign keys to dimension tables: customer_dim, product_dim, time_dim, and store_dim. A business user wants to know the total sales for each product category in the last month. Which join operation is required to retrieve this data?

A.Self-join on the fact table
B.Cross join between fact and dimension tables
C.Inner join between fact table and dimension tables
D.Left outer join between fact and dimension tables
AnswerC

An inner join matches each fact row to its related dimension rows via the foreign keys, letting the query group sales by product category. Because every sales_fact row has valid dimension references, inner joins return all required combinations without dropping matching data.

Why this answer

To retrieve total sales for each product category, you need to join the fact table with the product dimension table to map product keys to categories, and with the time dimension table to filter on the last month. An inner join is correct because it returns only rows where matching keys exist in both tables, which is the standard approach for star-schema queries where all required dimension attributes are present. This ensures that only valid sales transactions with corresponding product and time entries are included in the aggregation.

Exam trap

The trap here is that candidates often confuse the need for a left outer join to 'preserve all fact rows,' but in a well-designed star schema with referential integrity, inner join is sufficient and more performant, and left outer join is only needed when fact rows might lack matching dimension keys (e.g., orphaned records).

How to eliminate wrong answers

Option A is wrong because a self-join on the fact table would match rows within the same table, which is unnecessary here since the required attributes (product category and month) are in dimension tables, not in the fact table itself. Option B is wrong because a cross join between fact and dimension tables would produce a Cartesian product, generating every possible combination of fact rows with dimension rows, leading to massively inflated and incorrect sales totals. Option D is wrong because a left outer join would include fact rows even if there is no matching dimension row (e.g., a product key not in product_dim), which could introduce NULL values for category and potentially skew the aggregation; inner join is the standard for guaranteed referential integrity in a star schema.

502
MCQhard

A sensor records temperature readings in Celsius and a separate sensor records wind speed in meters per second. A data scientist wants to combine these datasets for analysis. Which statement accurately compares these data types?

A.Both are ratio data
B.Temperature is discrete; wind speed is continuous
C.Both are discrete data
D.Temperature is interval; wind speed is ratio
AnswerD

Temperature in Celsius has an arbitrary zero, so only differences are meaningful, making it interval. Wind speed in metres per second has a true zero and supports meaningful ratios, making it ratio. This axis of difference is precisely what the option states.

Why this answer

Temperature measured in Celsius has an arbitrary zero point (0°C does not mean 'no heat'), so it is interval data. Wind speed in meters per second has a true zero point (0 m/s means no wind), making it ratio data. Therefore, option D correctly identifies temperature as interval and wind speed as ratio.

Exam trap

The trap here is confusing interval and ratio data by overlooking the significance of a true zero point, leading candidates to incorrectly classify temperature as ratio data.

How to eliminate wrong answers

Option A is wrong because temperature in Celsius is interval data, not ratio data, due to the lack of a true zero point. Option B is wrong because temperature is continuous (can take any value within a range), not discrete; wind speed is also continuous. Option C is wrong because both temperature and wind speed are continuous data types, not discrete.

503
MCQhard

A healthcare data analyst is presenting findings on patient readmission rates to a group of hospital administrators. The analysis reveals a 15% increase in readmissions over the past quarter for patients aged 65+ from a specific zip code. However, the administrators are skeptical because previous quarterly reports showed no such trend, and they suspect data quality issues. The analyst must communicate this insight effectively while maintaining credibility. Which of the following approaches should the analyst take?

A.Emphasize the statistical significance of the finding and ignore previous reports
B.Present the data without any explanation and let them draw conclusions
C.Remove the demographic detail to avoid controversy
D.Acknowledge the discrepancy and explain possible reasons such as changes in data collection methods or patient population
AnswerD

This approach maintains trust and provides context, making the insight more believable.

Why this answer

It demonstrates the core competency of 'Communicating Data Insights' by acknowledging the discrepancy between the current finding and previous reports, which builds trust with skeptical stakeholders. By explaining possible reasons such as changes in data collection methods or patient population, the analyst maintains credibility and invites collaborative investigation into data quality issues, rather than dismissing concerns or hiding details.

Exam trap

The trap here is that candidates may choose Option A, thinking statistical significance alone validates the finding, but the DA0-001 exam emphasizes that effective communication requires acknowledging and addressing stakeholder concerns about data quality, not just presenting numbers.

How to eliminate wrong answers

Option A is wrong because ignoring previous reports undermines credibility and fails to address the administrators' legitimate skepticism about data quality; statistical significance does not automatically validate data integrity. Option B is wrong because presenting data without explanation shifts the burden of interpretation to the audience, which can lead to misinterpretation and erodes trust, especially when stakeholders have already flagged potential issues. Option C is wrong because removing demographic detail to avoid controversy is unethical and violates the principle of transparency in data communication; it also prevents the administrators from understanding the full context of the readmission trend.

504
MCQmedium

A data analyst is profiling a dataset and finds that the 'email' column contains some NULL values. Which SQL query can be used to count how many rows have a NULL email?

A.SELECT COUNT(email) FROM table WHERE email = NULL
B.SELECT SUM(CASE WHEN email IS NULL THEN 1 END) FROM table
C.SELECT COUNT(ISNULL(email)) FROM table
D.SELECT COUNT(*) FROM table WHERE email IS NULL
AnswerD

`COUNT(*)` tallies every row returned by the `WHERE` clause, and `IS NULL` is the only predicate that reliably tests for the absence of a value, since `email = NULL` evaluates to UNKNOWN and matches nothing. This directly satisfies the stem's requirement to count rows whose email column holds NULL.

Why this answer

SELECT COUNT(*) FROM table WHERE email IS NULL correctly counts rows where email is NULL. COUNT(*) counts all rows in the filtered result set, and IS NULL is the only valid comparison operator for NULL in SQL. This is the standard, portable way to count NULLs.

Exam trap

The trap is the seductive '= NULL' syntax — it looks natural to beginners but is always wrong in SQL, and the exam expects you to know that NULL requires IS NULL.

How to eliminate wrong answers

Option A is wrong because 'email = NULL' never evaluates to TRUE in SQL — NULL comparisons use three-valued logic, so '= NULL' returns UNKNOWN and matches zero rows; also COUNT(email) ignores NULLs anyway. Option B is wrong because SUM(CASE WHEN email IS NULL THEN 1 END) returns NULL when no rows match (SUM of all NULLs is NULL), and it lacks an ELSE 0 clause, so it fails on empty result sets — it's also more verbose than needed. Option C is wrong because ISNULL() is a function that returns a value (e.g., replaces NULL with a substitute), not a boolean predicate; COUNT(ISNULL(email)) counts non-NULL results of the function, which is not the same as counting NULL emails.

505
MCQmedium

A data analyst runs the query: SELECT AVG(salary) FROM employees GROUP BY department HAVING AVG(salary) > 60000. What is the purpose of the HAVING clause?

A.It orders departments by average salary descending.
B.It filters departments where the average salary exceeds $60,000.
C.It returns only the department with the maximum average salary.
D.It filters individual employee rows with salary > 60000 before grouping.
AnswerB

HAVING filters groups after aggregation, so it applies the condition to each department's computed AVG(salary), retaining only those exceeding $60,000. Unlike WHERE, which filters individual rows before grouping, HAVING operates on aggregate results — exactly the constraint the stem requires when filtering on an aggregate function.

Why this answer

HAVING filters groups after aggregation, so HAVING AVG(salary) > 60000 removes entire department groups whose computed average salary does not exceed $60,000. It operates on the aggregated result, not on individual rows, which is why it can reference aggregate functions like AVG.

Exam trap

The trap is confusing WHERE (row-level, pre-aggregation) with HAVING (group-level, post-aggregation); candidates often pick the option that filters individual rows.

How to eliminate wrong answers

Option A is wrong because ordering is done with ORDER BY, not HAVING; HAVING never sorts results. Option C is wrong because HAVING applies a threshold filter, not a top-1 selection — it returns all qualifying departments, and picking the max would require ORDER BY ... LIMIT 1 or a subquery.

Option D is wrong because filtering individual employee rows before grouping is the job of WHERE, which runs before GROUP BY; HAVING runs after aggregation and cannot reference non-aggregated row-level predicates in the same way.

506
MCQmedium

A data analyst at a hospital network is exploring the relationship between patient age and length of stay for 400 discharged patients. A scatterplot shows a roughly linear upward trend, but the analyst wants a single number summarizing both the strength and direction of the association before reporting to clinicians. Which measure should the analyst calculate?

A.The Pearson correlation coefficient between age and length of stay.
B.The coefficient of determination from a model predicting age from length of stay.
C.The chi-square statistic from a contingency table of age and length of stay.
D.The covariance between age and length of stay.
AnswerA

The Pearson correlation coefficient is a unitless value between -1 and 1 that captures both the direction and the strength of a linear association. With a roughly linear scatterplot, it directly answers the analyst's question and is easily communicated to clinicians. Its sign reveals whether older patients tend to stay longer, and its magnitude indicates how tightly the points follow a line.

Why this answer

For two continuous variables with an approximately linear relationship, the Pearson correlation coefficient is the standard single-number summary: it is bounded between -1 and 1, carries direction through its sign, and reflects strength through its magnitude. Covariance is scale-dependent, while R-squared and chi-square discard direction or require arbitrary categorization, so none of them answers the clinician-facing question as directly.

Exam trap

The trap here is confusing covariance with correlation; covariance signals direction but its magnitude changes with measurement units, so it cannot be read as a strength score.

507
Multi-Selectmedium

Which TWO of the following are best practices for designing an accessible data visualization? (Choose 2.)

Select 2 answers
A.Add text labels or patterns to differentiate elements
B.Rely solely on color to convey information
C.Use 3D effects to make charts visually appealing
D.Include animated transitions between views
E.Use colorblind-friendly color palettes
AnswersA, E

Text labels and patterns convey category differences without relying on colour alone, satisfying the accessibility requirement that information not depend on a single sensory channel. This directly addresses colour-blind users, who cannot distinguish series distinguished only by hue, and screen-reader or monochrome-print scenarios.

Why this answer

Option A is correct because adding text labels or patterns (e.g., hatching, shapes, or direct data labels) provides a non-color-dependent way to distinguish data series, which is essential for users with color vision deficiencies or when charts are printed in grayscale. Option E is correct because using colorblind-friendly palettes (e.g., Okabe-Ito or ColorBrewer's colorblind-safe schemes) ensures that the chosen colors remain distinguishable for people with deuteranopia, protanopia, or tritanopia, satisfying WCAG 1.4.1 (Use of Color). Option B is incorrect because relying solely on color to convey information fails accessibility guidelines and excludes users who cannot perceive certain color differences.

Option C is incorrect because 3D effects distort data perception, reduce readability, and add visual clutter without improving accessibility. Option D is incorrect because animated transitions can trigger motion sensitivity issues and are not a recognized accessibility best practice for data visualization.

Exam trap

The trap here is that candidates often think 'colorblind-friendly palette' is sufficient for accessibility, but the exam tests that you must also avoid color-only encoding—so both A and E are needed, while B, C, and D are common distractors that sound like design enhancements but actually harm accessibility.

508
MCQeasy

A data analyst is creating a report to compare the total sales revenue for five different product categories over the last four quarters. The analyst wants to show both the overall total and how each category contributes to that total for each quarter. Which chart type is most appropriate?

A.A pie chart with one slice per category, using the total sales across all quarters.
B.A stacked bar chart with quarters on the x-axis and sales on the y-axis, with segments for each category.
C.A line chart with quarters on the x-axis and sales on the y-axis, with one line per category.
D.A grouped bar chart with quarters on the x-axis and sales on the y-axis, with one bar per category.
AnswerB

A stacked bar chart displays the total sales for each quarter as the full height of the bar, while each segment represents a category's contribution to that total. This directly addresses both requirements: comparing overall totals across quarters and seeing the part-to-whole relationship within each quarter. It is the most appropriate choice for this scenario.

Why this answer

A stacked bar chart is ideal for showing both total values per quarter and the contribution of each category to those totals. It allows viewers to compare overall quarterly sales and see how the product mix changes over time. The other chart types either omit the total, obscure the part-to-whole relationship, or lose the time dimension.

Exam trap

The trap here is confusing a grouped bar chart, which compares individual categories, with a stacked bar chart, which shows part-to-whole relationships and totals.

509
Multi-Selectmedium

A data analyst is cleaning text data in a SQL database. Which THREE string functions are commonly used to standardize and clean text? (Choose three.)

Select 3 answers
A.REPLACE
B.UPPER
C.LENGTH
D.TRIM
E.CONCAT
AnswersA, B, D

REPLACE substitutes specified substrings within a string, letting analysts strip or correct unwanted characters during standardisation. This satisfies the text-cleaning requirement by enabling consistent transformation of messy values, and is a standard SQL string function.

Why this answer

REPLACE is correct because it substitutes specific substrings (e.g., removing stray characters or fixing inconsistent tokens) within a string, which is a core standardization step. UPPER is correct because it converts all characters to uppercase, enforcing consistent casing so values like 'usa' and 'USA' match during cleaning and comparison. TRIM is correct because it removes leading and trailing spaces (or specified characters), eliminating whitespace artifacts that break joins, grouping, and equality checks.

LENGTH does not belong because it only returns the number of characters in a string and does not modify or standardize the data. CONCAT does not belong because it merely joins strings together, which is a transformation for combining values rather than cleaning or standardizing text.

510
MCQhard

A financial analyst is integrating data from multiple stock exchanges. One exchange provides trade timestamps in UTC, another in Eastern Time. The analyst needs accurate time synchronization for time-series analysis. What is the best approach?

A.Keep original timezones and add a timezone offset column
B.Use the local time of the analyst's location
C.Convert all timestamps to a single timezone (e.g., UTC) during ETL
D.Ignore timezone differences if analysis is intraday
AnswerC

Normalising every timestamp to a single timezone such as UTC during ETL removes the offset ambiguity between exchanges, so time-series joins and orderings align correctly. Converting at load time, not query time, satisfies the accurate time synchronisation constraint for analysis.

Why this answer

Converting all timestamps to a single timezone (e.g., UTC) during ETL ensures that all time-series data is directly comparable and sortable without ambiguity. UTC is a global standard that avoids daylight saving time (DST) shifts, making it ideal for financial analysis where precise ordering of trades across exchanges is critical. This approach eliminates the need for runtime timezone conversions, reducing errors and improving query performance.

Exam trap

The trap here is that candidates might think adding a timezone offset column preserves information and is sufficient, but it still requires runtime conversion and can be error-prone with DST; the exam expects recognition that normalization to UTC during ETL is the best practice for time-series analysis.

How to eliminate wrong answers

Option A is wrong because keeping original timezones with an offset column still requires runtime calculations to compare timestamps, and offsets can change with DST, leading to inconsistencies. Option B is wrong because using the analyst's local time introduces an arbitrary reference that varies by location and is not standardized, making cross-exchange analysis unreliable. Option D is wrong because ignoring timezone differences even for intraday analysis can cause misalignment of trades that occur near market open/close across different timezones, leading to incorrect sequence and correlation analysis.

511
Multi-Selecthard

A company is designing a data pipeline to process streaming data from social media feeds. Which THREE of the following are characteristics of streaming data? (Select THREE).

Select 3 answers
A.Data is unbounded and infinite
B.Data is processed in micro-batches
C.Data arrives continuously
D.Data is stored permanently before processing
E.Data is processed in real-time
AnswersA, C, E

Streaming data is unbounded.

Why this answer

Streaming data is inherently unbounded and infinite because social media feeds generate a continuous, never-ending flow of events. Unlike batch data, there is no natural end to the stream; new tweets, posts, or interactions arrive constantly, making the dataset theoretically infinite in size.

Exam trap

The trap here is that candidates confuse processing strategies (like micro-batching) with the inherent nature of streaming data, or they assume streaming data must be stored before processing, which is a batch-oriented mindset.

512
Multi-Selecthard

A data analyst is performing EDA on a dataset with numerical features. Which methods are appropriate for identifying outliers? (Select TWO).

Select 2 answers
A.Mean imputation
B.Pearson correlation coefficient
C.Z-score method
D.Standard deviation alone
E.Interquartile range (IQR) method
AnswersC, E

The z-score method flags values whose standardised distance from the mean exceeds a threshold, typically ±3. It suits numerical features and satisfies the outlier-detection requirement by quantifying deviation in standard deviation units, assuming an approximately normal distribution.

Why this answer

The Z-score method (C) is correct because it quantifies how many standard deviations a value lies from the mean, so observations with |z| above a threshold such as 3 (or 2.5) are flagged as outliers in numerical features. The Interquartile range (IQR) method (E) is also correct because it defines outliers as values below Q1 − 1.5×IQR or above Q3 + 1.5×IQR, making it a robust, distribution-agnostic detection technique. Mean imputation (A) is not an outlier-detection method at all; it is a missing-value handling technique that replaces NaNs with the column mean.

The Pearson correlation coefficient (B) measures the linear relationship between two variables, not the extremeness of individual values, so it cannot identify outliers. Standard deviation alone (D) only describes data spread and, without a rule like the Z-score, does not flag specific observations as outliers.

Exam trap

DA0-002 often tests the confusion between descriptive statistics (mean, standard deviation, correlation) and actual outlier detection rules (Z-score, IQR), tempting candidates to select standard deviation alone as if it were a detection method.

513
MCQhard

A heat map of store sales by region shows very low correlation between advertising spend and revenue, but a scatter plot of the same data shows a strong positive relationship. What is the most likely cause?

A.Data was aggregated incorrectly in the heat map
B.The heat map used an incorrect color scale
C.Outliers were removed only for the scatter plot
D.The chart types are inherently incompatible
AnswerA

Aggregating data into regional totals collapses the underlying variation, obscuring the strong positive relationship visible at finer granularity. The heat map's coarse aggregation masks the correlation that the scatter plot reveals at individual data points.

Why this answer

A heat map that shows low correlation while a scatter plot of the same data shows a strong positive relationship most likely indicates the heat map aggregated the data incorrectly — for example, summing or averaging across regions in a way that masked the underlying per-store relationship. Aggregation can distort or reverse apparent correlations (a form of Simpson's paradox), so the heat map's aggregated view is misleading. The scatter plot at the raw data level reveals the true relationship.

Exam trap

DA0-002 often tests the confusion between visual encoding problems (color scale) and data transformation problems (aggregation) — candidates must recognize that aggregation, not chart aesthetics, is what distorts correlation.

How to eliminate wrong answers

Option B is wrong because an incorrect color scale would misrepresent magnitudes visually but would not create a false impression of low correlation — the underlying aggregated values would still reflect the true relationship. Option C is wrong because removing outliers only for the scatter plot would tend to weaken, not strengthen, the scatter plot's relationship, and there is no evidence outliers were handled differently. Option D is wrong because heat maps and scatter plots are not inherently incompatible — both can represent the same data faithfully if constructed correctly; the issue is the aggregation, not the chart type.

514
MCQmedium

A data analyst is testing whether the average sales amount differs between two regions. Which statistical test is most appropriate?

A.Chi-square test
B.ANOVA
C.Two-sample t-test
D.Paired t-test
AnswerC

A two-sample t-test compares the means of two independent groups, matching the two regions and continuous sales measure. It tests whether the difference in average sales is statistically significant, unlike a paired test, which requires matched observations.

Why this answer

A two-sample t-test compares the means of two independent groups.

515
MCQmedium

A data scientist builds a simple linear regression model to predict house prices based on square footage. The model yields an R-squared value of 0.85. Which statement accurately interprets this result?

A.The slope of the regression line is 0.85
B.85% of the data points lie exactly on the regression line
C.The model explains 85% of the variability in house prices
D.There is a 85% chance that square footage causes higher prices
AnswerC

R-squared measures the proportion of variance in the dependent variable explained by the model. A value of 0.85 means square footage accounts for 85% of house price variability, directly satisfying the stem's constraint of interpreting the reported R-squared value.

Why this answer

R-squared (the coefficient of determination) measures the proportion of variance in the dependent variable explained by the independent variable(s). An R² of 0.85 means 85% of the variability in house prices is accounted for by the square footage in this linear model. It is a goodness-of-fit measure, not a probability, slope, or count of points on the line.

Exam trap

The trap is treating R² as a probability or a count of points on the line — candidates often misread it as '85% chance' or '85% of points fit exactly,' when it strictly measures explained variance.

How to eliminate wrong answers

Option A is wrong because 0.85 is R², not the slope (β₁); the slope is a separate regression coefficient with its own units (price per square foot). Option B is wrong because R² does not measure how many points lie exactly on the line — in real data almost none do; it measures explained variance, not point-on-line counts. Option D is wrong because R² is not a probability and regression does not establish causation — correlation between square footage and price does not prove square footage causes higher prices.

516
Multi-Selecthard

A data analyst is performing a chi-square test of independence on a contingency table of customer satisfaction (satisfied, neutral, dissatisfied) by region (North, South, East, West). Which THREE of the following are necessary assumptions for the test?

Select 3 answers
A.The two variables are categorical
B.The sample size is greater than 30
C.Expected frequencies in each cell are at least 5 (or most cells)
D.The observations are independent
E.The data must be normally distributed
AnswersA, C, D

Chi-square of independence compares observed against expected counts across categories, so both variables must be categorical. Satisfaction and region are nominal groupings, not continuous measurements; treating them as such would violate the test's foundation and invalidate the computed statistic.

Why this answer

Option A is correct because the chi-square test of independence requires both variables to be categorical (nominal or ordinal), which holds here since satisfaction level and region are categorical variables. Option C is correct because the test relies on the chi-square approximation, which is valid when expected cell frequencies are sufficiently large—typically at least 5 in each cell, or in most cells (with no cell below 1) for larger tables. Option D is correct because each observation must be independent, meaning each respondent contributes to only one cell of the contingency table, with no repeated or paired measurements.

Option B is incorrect because there is no fixed sample-size threshold of 30; adequacy is judged by expected frequencies, not raw n. Option E is incorrect because chi-square tests make no normality assumption—they operate on counts of categorical data, not continuous normally distributed variables.

Exam trap

The trap is importing parametric assumptions (normality, n > 30) from t-tests and ANOVA into chi-square, which is a non-parametric test concerned only with categorical counts and expected frequencies.

517
MCQeasy

A dataset contains customer records with a column for 'Phone Number' that should be unique. However, the analyst finds several duplicate phone numbers. Which data quality dimension is primarily affected?

A.Completeness
B.Accuracy
C.Uniqueness
D.Consistency
AnswerC

Duplicate phone numbers violate the requirement that each value in the column be distinct, which is precisely what the uniqueness dimension measures. Completeness, accuracy and consistency concern missing, wrong or conflicting values, not repeated ones.

Why this answer

Uniqueness measures whether each real-world entity appears exactly once in the dataset. Since 'Phone Number' is intended to be a unique identifier per customer, finding duplicate values directly violates that expectation, so the affected dimension is uniqueness. Completeness, accuracy, and consistency describe different properties (missing values, correctness, and uniformity across sources) and are not what duplicate keys violate.

Exam trap

The trap here is conflating uniqueness with accuracy or consistency — candidates see 'duplicate' and think 'wrong data,' but duplicates are a cardinality problem, not a correctness problem.

How to eliminate wrong answers

Option A is wrong because completeness concerns missing or null values, not repeated values — a duplicated phone number is present, not absent. Option B is wrong because accuracy concerns whether a value correctly reflects reality (e.g., a wrong digit), whereas duplicates can each be individually accurate. Option D is wrong because consistency concerns agreement of the same data across systems or formats, not the cardinality of values within one column.

518
MCQmedium

A data analyst runs a query to count the number of customers in each city. The query uses COUNT(*) and GROUP BY city. However, the result includes NULL for some cities. What will COUNT(*) return for a group where the city is NULL?

A.NULL
B.0
C.The number of rows with NULL city
D.The number of non-NULL cities
AnswerC

COUNT(*) counts every row in the group regardless of NULL values, so a group where city is NULL returns the total number of rows having a NULL city. COUNT(city) would instead return zero for that group.

Why this answer

COUNT(*) counts rows, not non-NULL values, so for a group where city IS NULL it returns the number of rows in that group. The NULL city forms its own group under GROUP BY because SQL treats NULLs as equal for grouping purposes. This differs from COUNT(city), which would return 0 for that group because it ignores NULLs.

Exam trap

DA0-002 often tests the difference between COUNT(*) and COUNT(column) with NULLs, tricking candidates into thinking COUNT(*) returns NULL or 0 when the grouped column is NULL.

How to eliminate wrong answers

Option A is wrong because COUNT(*) never returns NULL; it returns an integer row count even for all-NULL groups. Option B is wrong because 0 is what COUNT(city) would return for a NULL group, not COUNT(*), which counts the rows themselves. Option D is wrong because the number of non-NULL cities describes what COUNT(city) would produce across groups, not the row count for the NULL group.

519
MCQmedium

A marketing team runs an A/B test on email subject lines. The p-value is 0.03 with α = 0.05. Which of the following is the correct interpretation?

A.The result is not statistically significant at the 95% confidence level.
B.The probability that the null hypothesis is true is 3%.
C.Fail to reject the null hypothesis; no significant difference.
D.Reject the null hypothesis; there is a statistically significant difference.
AnswerD

With α = 0.05, a p-value of 0.03 falls below the significance threshold, so the null hypothesis is rejected. The result is statistically significant, meaning the observed difference in subject-line performance is unlikely to have arisen from chance alone.

Why this answer

With a p-value of 0.03 and α = 0.05, the p-value is less than the significance level, so we reject the null hypothesis. This indicates a statistically significant difference at the 95% confidence level. The p-value is not the probability that the null hypothesis is true.

Exam trap

DA0-002 often tests the interpretation of p-values, and candidates frequently misinterpret the p-value as the probability that the null hypothesis is true or confuse significance with practical importance.

How to eliminate wrong answers

Option A is wrong because a p-value of 0.03 is less than 0.05, so the result is statistically significant. Option B is wrong because the p-value is not the probability that the null hypothesis is true; it is the probability of observing the data (or more extreme) assuming the null hypothesis is true. Option C is wrong because we reject, not fail to reject, the null hypothesis when p < α.

520
MCQeasy

A market researcher conducts a survey with questions like "What is your favorite brand?" and "How many units do you purchase per year?" Which data types correspond?

A.Qualitative & Quantitative
B.Quantitative & Qualitative
C.Both quantitative
D.Both qualitative
AnswerA

Favourite brand responses are categorical labels, which are qualitative, whereas units purchased per year are numeric counts, which are quantitative. This pairing matches the stem's two questions, distinguishing nominal descriptive data from measurable discrete numerical data.

Why this answer

'favorite brand' is a categorical label (qualitative data), while 'units purchased per year' is a numerical count (quantitative data). The question explicitly pairs these two distinct data types, matching the definition of qualitative (non-numeric categories) and quantitative (numeric measurements).

Exam trap

The trap here is that candidates often confuse the order of the data types in the question, assuming the first listed data type must be quantitative, leading them to select Option B instead of correctly identifying 'favorite brand' as qualitative.

How to eliminate wrong answers

Option B is wrong because it reverses the order: 'favorite brand' is qualitative, not quantitative, and 'units purchased per year' is quantitative, not qualitative. Option C is wrong because 'favorite brand' is not a numeric value; it is a categorical label, so both cannot be quantitative. Option D is wrong because 'units purchased per year' is a numeric count, not a categorical label, so both cannot be qualitative.

521
MCQeasy

A retail company's data analytics team needs to acquire point-of-sale (POS) transaction data from 200 stores daily. Each store sends a CSV file via email at the end of the day. The files often arrive late, have inconsistent column names (e.g., "StoreID", "Store_ID", "store_id"), and occasionally contain corrupted rows. The team manually processes these files, leading to frequent errors and delays. The company wants to automate the acquisition process to ensure data is available by 9 AM the next business day with high quality. Which approach best addresses these issues?

A.Create a script to automatically download email attachments, validate and standardize columns, and flag corrupted rows for review
B.Hire a data entry contractor to manually check and re-enter data
C.Ask stores to use a standardized web form to enter data directly into a cloud database
D.Implement a VPN so stores can connect to the central database and write transactions in real time
AnswerA

Automated download, column standardisation and corrupted-row flagging directly address the three stated problems: late manual handling, inconsistent column names such as StoreID versus store_id, and corrupted rows. Scripted validation enforces quality and delivers data by 9 AM without manual intervention.

Why this answer

It directly addresses all three issues: automating the retrieval of email attachments (handling late arrivals), standardizing inconsistent column names via a script (e.g., mapping 'StoreID', 'Store_ID', 'store_id' to a canonical schema), and implementing validation logic to flag corrupted rows for manual review. This approach ensures data is processed reliably by 9 AM without manual intervention, meeting the automation and quality requirements.

Exam trap

The trap here is that candidates may choose Option C or D because they seem more 'modern' or 'direct,' but they fail to recognize that the question specifically requires handling existing CSV files and late arrivals, which a script-based ETL approach (Option A) directly solves without requiring stores to change their behavior or infrastructure.

How to eliminate wrong answers

Option B is wrong because hiring a data entry contractor introduces manual processing, which is the root cause of delays and errors, and does not automate the acquisition process. Option C is wrong because asking stores to use a standardized web form shifts the burden to 200 stores, which is impractical to enforce uniformly and does not address the existing CSV files or late arrivals; it also introduces new integration complexity without solving the immediate data pipeline issue. Option D is wrong because implementing a VPN for real-time writes requires significant network infrastructure changes, assumes stores have stable high-speed internet, and does not handle the existing CSV files or the need for batch processing by 9 AM; real-time writes also increase the risk of data corruption without validation.

522
Multi-Selecteasy

A data analyst needs to display the distribution of customer ages in a dataset containing 10,000 records. Which TWO chart types are appropriate? (Choose two.)

Select 2 answers
A.Box plot
B.Pie chart
C.Histogram
D.Bar chart
E.Line chart
AnswersA, C

A box plot summarises a numeric distribution through quartiles, median and outliers, making it suitable for comparing age spread across groups. With 10,000 records it condenses the data effectively, satisfying the requirement to display distribution rather than individual values.

Why this answer

A box plot (A) is appropriate because it summarizes the distribution of a continuous numeric variable like age using the median, quartiles, and potential outliers, giving a compact view of spread and skew across the 10,000 records. A histogram (C) is also appropriate because it bins the continuous age values into intervals and displays frequency counts, directly revealing the shape, center, and spread of the age distribution. A pie chart (B) is unsuitable because it shows parts of a whole for categorical data and cannot represent a continuous distribution of ages.

A bar chart (D) is meant for comparing frequencies of discrete categories rather than showing the shape of a continuous distribution. A line chart (E) is designed to show trends over an ordered sequence such as time, not the distribution of a single numeric variable.

523
MCQhard

An organization is acquiring data from an external vendor. The vendor provides a flat file with inconsistent delimiters and missing values. Which step should be performed first in data acquisition?

A.Data integration
B.Data profiling
C.Data transformation
D.Data cleansing
AnswerB

Profiling examines the vendor file's actual structure, delimiter patterns, null rates and value distributions before any transformation. This reveals the specific inconsistencies and missing values the stem describes, so the analyst can design correct parsing and cleansing logic rather than guessing at the file's true shape.

Why this answer

Data profiling is the first step because it examines the data to understand its structure, quality, and issues (like inconsistent delimiters and missing values) before any further processing. Option A (Data integration) is wrong because integration combines data from multiple sources and should follow profiling. Option C (Data transformation) is wrong because transforming data requires first understanding its current state through profiling.

Option D (Data cleansing) is wrong because cleansing is performed after profiling identifies the issues.

524
MCQhard

In logistic regression, the output is a probability between 0 and 1. If the predicted probability for a customer churning is 0.7 and the decision threshold is 0.5, what is the predicted class?

A.Not churn (class 0)
B.Churn (class 1)
C.Both classes equally likely
D.Uncertain, need more data
AnswerB

Logistic regression applies a decision threshold to the predicted probability to assign a class. Since 0.7 exceeds the 0.5 threshold, the observation is classified as the positive outcome, churn (class 1). The 0.5 cutoff is the axis separating class 0 from class 1.

Why this answer

In logistic regression, the predicted class is determined by comparing the predicted probability to the decision threshold. Here the probability is 0.7 and the threshold is 0.5; since 0.7 ≥ 0.5, the model predicts the positive class, which is churn (class 1).

Exam trap

The trap is overcomplicating a simple threshold comparison — candidates sometimes think 0.7 is 'uncertain' or requires more data, forgetting that any probability above the 0.5 threshold maps deterministically to the positive class.

How to eliminate wrong answers

Option A is wrong because predicting 'not churn' would require the probability to be below the 0.5 threshold, but 0.7 exceeds it. Option C is wrong because 'both classes equally likely' corresponds to a probability of exactly 0.5, not 0.7. Option D is wrong because the decision rule is deterministic once the probability and threshold are known — no additional data is needed to assign the class.

525
Drag & Dropmedium

Drag and drop the steps to implement a data classification policy in the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Classification involves defining levels, assigning ownership, labeling, access control, and training.

Page 6

Page 7 of 14

Page 8