Courseiva

CompTIA Data+ (DA0-002) (DA0-002) — Questions 76150

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

Page 1

Page 2 of 14

Page 3
76
Matchingmedium

Match each data governance role to its responsibility.

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

Concepts
Matches

Ensures data quality and adherence to policies

Manages technical environment and data access

Has accountability for specific data assets

Sets strategic direction for data management

Designs data structures and integration processes

Why these pairings

Data Stewards focus on quality and metadata, Data Owners have accountability and access decisions, Data Custodians handle technical security, and Data Governors manage the governance program. Common confusions include mixing Steward with Custodian or Owner.

77
MCQmedium

A data analyst wants to segment customers into groups based on their purchasing behavior. The dataset includes numerical features such as annual income and purchase frequency. Which algorithm is most appropriate for this task?

A.Linear regression
B.K-means clustering
C.Logistic regression
D.Chi-square test
AnswerB

Correct: K-means is unsupervised clustering for segmentation.

Why this answer

K-means clustering is a common algorithm for customer segmentation based on numerical features.

78
MCQhard

A financial analytics firm needs to acquire historical stock market tick data (millions of records per day) from a data vendor. The vendor provides data via FTP in binary format. The firm's existing infrastructure uses on-premise servers with limited storage and processing power. They need to stream the data into a cloud data lake for analysis. However, the binary format is proprietary and requires a licensed decoder. The budget is constrained. Which approach best meets the data acquisition requirements?

A.Negotiate with the vendor to provide an API that outputs JSON
B.Purchase a license for the decoder and set up an ETL job to convert and upload
C.Request the vendor to send data in CSV format via email
D.Use a third-party cloud service that already decodes and normalizes the data for a subscription fee
AnswerB

This allows processing of the binary format and integration with the cloud data lake, with a one-time cost.

Why this answer

Purchasing the decoder license and setting up an ETL job to convert and upload to the cloud directly addresses the format issue and enables streaming to the data lake. Requesting CSV via email is impractical for millions of records. Negotiating for a JSON API is a good idea but may not be available or cost more than the decoder.

Using a third-party service adds recurring costs and may introduce dependency.

79
MCQmedium

To consolidate data from multiple operational databases into a central repository for reporting, a company decides to transform data before loading it into the target system. Which data integration approach is being used?

A.ETL (Extract, Transform, Load)
B.Data virtualization
C.Change data capture
D.ELT (Extract, Load, Transform)
AnswerA

ETL transforms data during the integration process before loading into the target.

Why this answer

The scenario describes transforming data before loading it into the target system, which is the defining characteristic of ETL (Extract, Transform, Load). In ETL, data is extracted from source systems, transformed in a staging area (e.g., cleaning, aggregating, joining), and then loaded into the central repository. This approach is commonly used when the target system (e.g., a data warehouse) requires pre-processed, high-quality data for reporting.

Exam trap

The trap here is that candidates often confuse ETL with ELT, assuming that any transformation before loading is ELT, but the key distinction is that ELT loads raw data first and transforms it later inside the target system, whereas ETL transforms data before it reaches the target.

How to eliminate wrong answers

Option B (Data virtualization) is wrong because it does not physically move or transform data before loading; instead, it creates a virtual layer that queries source systems in real-time, leaving data in place. Option C (Change data capture) is wrong because it is a technique for identifying and capturing only changed data from source systems, not a complete integration approach that includes transformation before loading. Option D (ELT) is wrong because it loads raw data into the target system first and then transforms it within the target, which contradicts the 'transform before loading' requirement in the question.

80
MCQhard

Refer to the exhibit. Which data quality dimension is being violated?

A.Uniqueness
B.Consistency
C.Timeliness
D.Completeness
AnswerB

Consistency ensures data formats and values are uniform; mixed data types violate this.

Why this answer

The exhibit shows the same customer ID (C001) associated with two different customer names ('John Smith' and 'Jon Smith'), which violates the consistency dimension. Consistency requires that data values be free from contradiction and adhere to the same representation rules across the dataset. Here, the conflicting names for the same identifier break referential integrity and data uniformity.

Exam trap

The trap here is that candidates confuse consistency with uniqueness, assuming any conflict between rows must be a duplicate record issue, when in fact consistency violations involve contradictory values for the same identifier across multiple records.

How to eliminate wrong answers

Option A is wrong because uniqueness is about ensuring no duplicate records exist for the same entity, but here the issue is conflicting attribute values for the same ID, not duplicate rows. Option C is wrong because timeliness concerns whether data is up-to-date and available when needed, which is not indicated by the name mismatch. Option D is wrong because completeness checks for missing values, but both records have all fields populated; the problem is contradictory data, not absent data.

81
MCQmedium

When designing a dashboard for executives, which principle is most important to follow to ensure key information is immediately visible?

A.Apply consistent color coding across all charts.
B.Create a visual hierarchy with the most important metric prominently displayed.
C.Use as many colors as possible to highlight different data points.
D.Include all available data to provide complete context.
AnswerB

Visual hierarchy directs attention to the most critical data first.

Why this answer

Visual hierarchy ensures the most important metric is prominently placed and sized to draw attention first.

82
Multi-Selecthard

Which THREE of the following are NoSQL database types?

Select 3 answers
A.Document
B.Hierarchical
C.Relational
D.Key-Value
E.Graph
AnswersA, D, E

Document stores (e.g., MongoDB) are NoSQL.

Why this answer

Document databases, such as MongoDB, store data in flexible, JSON-like documents (BSON in MongoDB's case). This allows for nested structures and schema-less designs, making them a core NoSQL category distinct from relational models.

Exam trap

CompTIA often tests the distinction between legacy database models (hierarchical) and modern NoSQL categories, leading candidates to mistakenly include hierarchical as a NoSQL type due to its non-relational nature.

83
Multi-Selectmedium

Which TWO of the following are common methods for acquiring data from external sources?

Select 2 answers
A.Data warehousing
B.Manual data entry
C.Public APIs
D.Web scraping
E.Direct database connection to an internal server
AnswersC, D

APIs provide structured access to external data.

Why this answer

Public APIs (C) are a common method for acquiring data from external sources because they provide a standardized, programmatic interface (often RESTful over HTTP/HTTPS) for requesting and receiving structured data, such as JSON or XML, from third-party services like social media platforms or weather services. Web scraping (D) is another common method that involves programmatically extracting data from web pages by parsing HTML or DOM structures, often using tools like BeautifulSoup or Selenium, when no API is available.

Exam trap

The trap here is that candidates may confuse data warehousing (a storage/management process) with data acquisition methods, or think manual data entry is a valid external acquisition method, when the exam specifically tests automated, programmatic techniques for pulling data from outside the organization.

84
MCQmedium

A healthcare analytics team is building a dashboard to monitor patient vitals. They receive data from two sources: Source 1 provides 'heart rate' as an integer (beats per minute), and Source 2 provides 'blood pressure' as a ratio (systolic/diastolic, e.g., 120/80). The team wants to create a combined metric called 'cardiac stress index' that uses both heart rate and systolic blood pressure. However, they notice that heart rate data occasionally contains negative values due to sensor errors. The data governance policy requires that all data be valid and meaningful. Which action best addresses the data quality issue while preserving the data types?

A.Convert heart rate to absolute values (remove the negative sign)
B.Keep negative values but set them to NULL to indicate missing data
C.Change heart rate from integer to categorical (e.g., low, normal, high) to avoid negative issues
D.Remove all records with negative heart rate values as they are invalid
AnswerD

Negative heart rates are not physiologically possible, so deletion is appropriate for data quality.

Why this answer

Negative heart rate values are physiologically impossible and violate the data governance policy requiring valid and meaningful data. Removing these records ensures the dashboard only contains accurate, actionable data without altering the original integer data type of heart rate, preserving its numerical integrity for the 'cardiac stress index' calculation.

Exam trap

The trap here is that candidates may choose Option A (converting to absolute values) thinking it 'fixes' the data, but this introduces false data and violates data validity, whereas the correct approach is to remove invalid records to maintain data integrity.

How to eliminate wrong answers

Option A is wrong because converting negative heart rates to absolute values introduces false data, masking sensor errors and potentially skewing the cardiac stress index with artificially inflated readings. Option B is wrong because setting negative values to NULL retains invalid records in the dataset, which can cause calculation errors or missing data handling issues in the dashboard without addressing the root cause of sensor errors. Option C is wrong because changing heart rate from integer to categorical loses granularity and prevents the precise numerical computation required for the cardiac stress index, violating the requirement to preserve data types.

85
Multi-Selecthard

A senior data analyst is advising a team on dashboard design principles. Which THREE of the following are recommended best practices? (Choose three.)

Select 3 answers
A.Apply consistent color coding across all charts for similar metrics.
B.Include every data point to provide complete context.
C.Use clear labels and titles for all charts.
D.Use a variety of colors to make the dashboard visually exciting.
E.Maximize the data-ink ratio by minimizing chartjunk.
AnswersA, C, E

Consistency helps users quickly interpret data.

Why this answer

Maximizing data-ink ratio, using consistent color coding, and providing clear labels and titles are established best practices. Using many colors for variety is not recommended, nor is including every possible data point to avoid clutter.

86
MCQmedium

An analyst needs to count the number of orders per customer but only for customers who have placed more than 5 orders. Which SQL construct allows filtering after aggregation?

A.WHERE COUNT(*) > 5
B.LIMIT 5
C.HAVING COUNT(*) > 5
D.ORDER BY COUNT(*) > 5
AnswerC

HAVING filters groups after aggregation.

Why this answer

HAVING is used to filter groups based on aggregate conditions, unlike WHERE which filters before aggregation.

87
MCQeasy

A data analyst is creating a data story for a marketing campaign results. Which of the following narrative structures is most effective for engaging the audience?

A.Use a question-and-answer format without a clear flow.
B.Present all data points chronologically.
C.Start with the methodology, then data, then results.
D.Start with a key insight or finding, then provide supporting evidence.
AnswerD

Correct. This engages the audience immediately and builds the story around the insight.

Why this answer

Starting with a key insight or finding captures the audience's attention immediately, and then providing supporting evidence builds a compelling narrative that keeps the audience engaged. Option A uses a question-and-answer format without a clear flow, which can be confusing and lacks direction. Option B presents all data points chronologically, which may be monotonous and fail to highlight the most important insights.

Option C starts with methodology, which is technical and may lose the audience before the key findings are presented.

88
Multi-Selecteasy

Which TWO visualization types are suitable for showing the distribution of a single continuous variable?

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

Box plots display summary statistics and distribution shape.

Why this answer

A box plot is correct because it graphically depicts the distribution of a single continuous variable through its five-number summary (minimum, first quartile, median, third quartile, maximum), clearly showing spread, central tendency, and outliers. A histogram is correct because it bins the continuous variable into intervals and displays the frequency of data points within each bin, providing a direct view of the underlying probability distribution.

Exam trap

CompTIA often tests the distinction between visualization types by presenting a line chart as a distractor, tempting candidates to confuse trend visualization with distribution analysis, especially when the continuous variable is time-based.

89
MCQhard

A data analyst needs to design a report for two audiences: executives want a high-level trend, and operational managers need current inventory levels. Which approach best satisfies both?

A.Include all details in one report so everyone sees the same information.
B.Send only the operational dashboard and let executives derive trends.
C.Ask the stakeholders to agree on a single view.
D.Create two separate reports: an executive summary with trends and an operational dashboard with real-time inventory.
AnswerD

Tailors content to each audience's needs.

Why this answer

Providing a summary view for executives and a detailed view for operational managers addresses different needs.

90
MCQmedium

A data analyst needs to determine whether the mean sales of two different regions are significantly different. The samples are independent and the data is normally distributed. Which statistical test should be used?

A.Chi-square test for independence
B.ANOVA
C.Independent samples t-test
D.Paired t-test
AnswerC

This test compares means of two independent groups with normal distribution.

Why this answer

The independent samples t-test is the correct choice because the scenario involves comparing the means of two independent groups (two different regions) with normally distributed data. This test specifically assesses whether the difference between the two sample means is statistically significant, assuming equal or unequal variances as determined by Levene's test.

Exam trap

CompTIA often tests the distinction between independent and paired t-tests, trapping candidates who overlook the 'independent samples' condition and mistakenly choose the paired t-test for any two-group comparison.

How to eliminate wrong answers

Option A is wrong because the Chi-square test for independence is used for categorical data to assess associations between two variables, not for comparing means of continuous data. Option B is wrong because ANOVA is used to compare means among three or more groups, not exactly two independent groups. Option D is wrong because the paired t-test is used for dependent samples (e.g., before-and-after measurements on the same subjects), not for independent samples from different regions.

91
MCQmedium

A data analyst needs to visualize the relationship between two continuous variables, such as sales revenue and advertising spend, to identify potential correlation. Which chart type is most appropriate?

A.Pie chart
B.Line chart
C.Bar chart
D.Scatter plot
AnswerD

Scatter plots show the relationship between two continuous variables and can reveal correlations.

Why this answer

A scatter plot is specifically designed to show the relationship between two continuous variables and can reveal correlations, clusters, or outliers. Option A is wrong because pie charts show proportions of a whole, not relationships between two continuous variables. Option B is wrong because line charts show trends over time, not correlation between two variables.

Option C is wrong because bar charts compare discrete categories, not continuous relationships.

92
Multi-Selecthard

A data scientist is conducting an A/B test with a significance level of 0.05. Which three factors should be considered when calculating the required sample size? (Choose THREE)

Select 3 answers
A.Seasonality of the data
B.Statistical power (e.g., 0.80)
C.Minimum detectable effect size
D.Number of clusters in k-means
E.Significance level (α)
AnswersB, C, E

Higher power requires larger sample.

Why this answer

Sample size calculation depends on desired power, effect size, and significance level.

93
MCQmedium

A dashboard automatically refreshes every hour, but users report stale data. What is the most likely issue?

A.The dashboard is not published
B.The refresh interval is too long
C.The dashboard uses cached data
D.The data source connection is broken
AnswerB

An hourly refresh may be too slow if users need more up-to-date information.

Why this answer

The most likely issue is that the refresh interval is too long. If the dashboard refreshes every hour but users are seeing stale data, the data source may update more frequently than the dashboard's refresh cycle, causing a lag between data changes and dashboard updates. This is a common scheduling mismatch in BI tools like Tableau or Power BI where the refresh interval must align with data source update frequency.

Exam trap

The trap here is that candidates may confuse 'cached data' (which is a normal performance feature) with 'stale data' (which is a scheduling issue), leading them to choose option C instead of recognizing that the refresh interval is the root cause.

How to eliminate wrong answers

Option A is wrong because an unpublished dashboard would not be accessible to users at all, not just show stale data; the issue is about data freshness, not visibility. Option C is wrong because cached data is a normal part of dashboard performance and does not inherently cause staleness; caching can actually improve load times, and the problem is the refresh schedule, not the cache itself. Option D is wrong because a broken data source connection would result in no data or error messages, not stale data; the dashboard is still displaying data, just outdated data.

94
MCQhard

In a Power BI report, a data analyst needs to create a measure that calculates the sum of sales only for products that have a profit margin greater than 10%. Which DAX function should be used to filter the calculation?

A.RELATED
B.CALCULATE
C.FILTER
D.SUMX
AnswerB

CALCULATE changes filter context and can be used with a filter expression to sum only qualifying products.

Why this answer

CALCULATE modifies the filter context and can be combined with FILTER to apply specific conditions. SUMX iterates over a table but without CALCULATE it cannot apply the filter context properly in this scenario.

95
MCQhard

A logistic regression model is used to predict the probability of customer churn. The model's coefficient for the feature 'customer support calls' is 0.8 with a p-value of 0.001. Which interpretation is correct?

A.For each additional support call, the log-odds of churn increase by 0.8, and this effect is statistically significant.
B.The odds of churn are multiplied by 0.8 for each additional call.
C.Support calls have no significant effect on churn.
D.For each additional support call, the probability of churn increases by 80%.
AnswerA

Correct interpretation of logistic regression coefficient.

Why this answer

In logistic regression, a positive coefficient indicates that as the predictor increases, the log-odds of the outcome increase. The p-value being less than 0.05 indicates the effect is statistically significant.

96
MCQhard

In time series decomposition, a data analyst separates a retail sales series into trend, seasonal, and residual components. After decomposition, the residual component shows no pattern and is random. Which of the following best describes the seasonal component?

A.Cyclical variations lasting more than a year.
B.Irregular fluctuations that cannot be predicted.
C.Regular patterns that repeat at fixed intervals.
D.A long-term increase or decrease in sales.
AnswerC

Correct: seasonality is regular periodic patterns.

Why this answer

Seasonality refers to regular, periodic patterns that repeat at fixed intervals (e.g., monthly, quarterly).

97
MCQmedium

A data analyst is preparing a dataset for a predictive model. The dataset contains a feature 'age' with values ranging from 18 to 80, and a feature 'income' ranging from 20,000 to 200,000. To ensure both features contribute equally to distance-based algorithms, which transformation should the analyst apply?

A.Min-max normalization
B.Log transformation
C.Standardization (z-score)
D.Box-Cox transformation
AnswerC

Standardization ensures each feature has mean 0 and std 1, providing equal weight in distance calculations.

Why this answer

Standardization (z-score) transforms features to have a mean of 0 and a standard deviation of 1, which ensures that both 'age' (18–80) and 'income' (20,000–200,000) contribute equally to distance-based algorithms like k-NN or k-means. Unlike min-max normalization, standardization is not affected by outliers and preserves the relative distances between data points, making it the preferred choice when the data does not follow a uniform distribution.

Exam trap

The trap here is that candidates often confuse min-max normalization with standardization, assuming that scaling to a fixed range is sufficient for distance-based algorithms, without considering the impact of outliers or the need for zero mean and unit variance.

How to eliminate wrong answers

Option A is wrong because min-max normalization scales features to a fixed range (e.g., [0,1]), but it is highly sensitive to outliers and does not guarantee equal contribution if the data contains extreme values; it also does not center the data around zero, which can distort distance calculations. Option B is wrong because log transformation is used to reduce skewness in positively skewed data, not to standardize features with different scales; it changes the shape of the distribution and would not make 'age' and 'income' comparable for distance-based algorithms. Option D is wrong because Box-Cox transformation is designed to make data more normally distributed and requires all values to be positive, but it does not standardize features to a common scale; applying it to 'age' and 'income' would not ensure equal contribution to distance metrics.

98
MCQmedium

Refer to the exhibit. What is the impact of the validation result?

A.The staging table is missing the 'age' column, which may cause query errors
B.The validation passed successfully
C.Only duplicates were found
D.The row counts match, so data is complete
AnswerA

Queries expecting the 'age' column will fail in staging.

Why this answer

The validation result shows that the staging table has a different schema than the target table, specifically missing the 'age' column. This mismatch will cause query errors when attempting to insert or query data that references the 'age' column, as the staging table lacks the required column definition. The validation result explicitly flags this schema discrepancy, making option A correct.

Exam trap

CompTIA often tests the misconception that matching row counts alone guarantee data completeness, ignoring critical schema mismatches that cause query failures.

How to eliminate wrong answers

Option B is wrong because the validation result clearly indicates a schema mismatch (missing 'age' column), so the validation did not pass successfully. Option C is wrong because while duplicates may be present, the validation result specifically highlights a missing column, not just duplicates. Option D is wrong because even though row counts match, the schema mismatch means data is incomplete and queries will fail due to the missing 'age' column.

99
MCQeasy

A data analyst calculates the mean, median, and mode of a dataset. Which measure of central tendency is most affected by extreme outliers?

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

The mean is the average and is pulled toward extreme values.

Why this answer

The mean is sensitive to extreme values because it includes all data points in its calculation, whereas median and mode are more robust.

100
MCQeasy

A retail analyst needs to determine the most popular product category. The dataset includes columns: ProductID, Category, SalesDate, QuantitySold, UnitPrice. Which column contains qualitative data?

A.SalesDate
B.QuantitySold
C.UnitPrice
D.Category
AnswerD

Correct. Category is a qualitative variable as it describes a product attribute.

Why this answer

Qualitative data (also called categorical data) represents non-numeric categories or labels. The 'Category' column contains text values such as 'Electronics' or 'Clothing', which are descriptive and cannot be used in arithmetic operations. This makes it the only qualitative column in the dataset.

Exam trap

The trap here is that candidates often mistake dates (SalesDate) for qualitative data because they are not numeric, but dates are actually quantitative interval data with a meaningful order and equal intervals.

How to eliminate wrong answers

Option A is wrong because SalesDate represents a point in time, which is quantitative (interval) data, not qualitative. Option B is wrong because QuantitySold is a numeric count, making it quantitative (discrete) data. Option C is wrong because UnitPrice is a numeric monetary value, making it quantitative (continuous) data.

101
MCQmedium

A data analyst is presenting a story about why customer churn increased last quarter. They start by showing the current churn rate, then identify a key event (a pricing change), and finally show the impact of a proposed retention campaign. This structure follows which narrative arc?

A.Introduction → Methods → Results
B.Hook → Context → Call to action
C.Problem → Solution → Evidence
D.Situation → Complication → Resolution
AnswerD

This matches the described structure.

Why this answer

The situation-complication-resolution arc sets up the current state, introduces a problem, and then presents a solution.

102
Multi-Selecteasy

Which TWO are common mistakes when creating data visualizations?

Select 2 answers
A.Using excessive 3D effects that obscure data
B.Sorting categories alphabetically in a bar chart
C.Choosing a color-blind friendly palette
D.Including a legend to identify chart elements
E.Starting the y-axis at a value other than zero
AnswersA, E

Correct. Excessive 3D effects can distort or hide data, making it hard to interpret accurately.

Why this answer

Options A and E are correct. Excessive 3D effects (A) can obscure or distort data, and truncating the y-axis (E) can mislead viewers by exaggerating differences. Option B is incorrect because sorting alphabetically can aid lookup, not a mistake.

Option C is incorrect because color-blind friendly palettes are a best practice, not a mistake. Option D is incorrect because including a legend is standard good practice.

103
MCQmedium

A retail company wants to identify customer segments based on purchase history and demographics. Which technique is most appropriate for this task?

A.Linear regression
B.K-means clustering
C.Chi-square test
D.Logistic regression
AnswerB

K-means groups similar customers into clusters.

Why this answer

K-means clustering is an unsupervised learning technique designed to segment data into groups based on similarity.

104
MCQhard

In Tableau, an analyst wants to create a parameter that allows users to select a threshold for highlighting products with sales above that value. The parameter is used in a calculated field that returns TRUE if sales exceed the parameter value. Which type of calculated field is this?

A.Table calculation
B.Aggregate calculation
C.Level of Detail expression
D.Boolean calculation
AnswerD

The calculation returns a Boolean value (TRUE/FALSE).

Why this answer

A Boolean calculated field returns TRUE or FALSE based on a condition.

105
MCQmedium

A data scientist is using K-means clustering with k=3. After the first iteration, the centroids are recalculated. Which step occurs next in the algorithm?

A.Calculate the sum of squared errors
B.Stop the algorithm because k is fixed
C.Compute the elbow curve
D.Assign each point to the nearest centroid
AnswerD

After centroid update, points are reassigned based on distance.

Why this answer

In K-means, after recalculating centroids, each point is reassigned to the nearest centroid, then centroids are updated again, iterating until convergence.

106
MCQmedium

In a multiple regression model, one predictor has a high p-value (0.45). What should the analyst consider doing?

A.Transform the predictor
B.Keep the predictor regardless
C.Remove the predictor from the model
D.Increase the sample size
AnswerC

The variable is not significant.

Why this answer

High p-value indicates the predictor is not statistically significant; it may be removed to simplify the model.

107
MCQmedium

A data engineer is designing a system to store raw sensor data from thousands of IoT devices. The data is expected to be used for exploratory analytics and machine learning. Which storage solution is most appropriate?

A.Data lake
B.Relational database
C.Data mart
D.Key-value store
AnswerA

Data lakes store raw, unprocessed data, suitable for IoT sensor data.

Why this answer

A data lake is the most appropriate choice because it can store raw, unprocessed sensor data in its native format (e.g., JSON, Parquet, or binary) without requiring a predefined schema. This flexibility supports exploratory analytics and machine learning workflows where data schemas may evolve or be unknown at ingestion time. Data lakes also scale horizontally to handle the high volume and velocity of data from thousands of IoT devices, unlike traditional storage systems that impose rigid structures or size limits.

Exam trap

The trap here is that candidates often confuse a data lake with a data warehouse or relational database, assuming raw data must be structured immediately, when in fact a data lake's schema-on-read approach is specifically designed for exploratory and machine learning use cases.

How to eliminate wrong answers

Option B is wrong because a relational database enforces a fixed schema and ACID transactions, which are unnecessary for raw sensor data and would introduce significant overhead for high-velocity, schema-on-read workloads. Option C is wrong because a data mart is a subset of data optimized for a specific business function or department, not designed to store raw, exploratory data from thousands of IoT devices. Option D is wrong because a key-value store is optimized for simple lookups by a single key and lacks the query flexibility and analytical capabilities needed for exploratory analytics and machine learning on complex sensor data.

108
MCQeasy

A data architect is designing a schema for a product catalog where each product has a variable number of attributes. Which NoSQL database type is most appropriate?

A.Graph database
B.Document store
C.Key-value store
D.Relational database
AnswerB

Document stores allow flexible schemas, perfect for variable attributes.

Why this answer

A document store (e.g., MongoDB, Couchbase) is the most appropriate choice because it stores data in flexible, self-describing documents (typically JSON or BSON), allowing each product to have a variable number of attributes without requiring a predefined schema. This directly matches the requirement of a product catalog where attributes can differ per product, unlike rigid relational tables that would require complex EAV (Entity-Attribute-Value) patterns or frequent schema migrations.

Exam trap

The trap here is that candidates often confuse 'variable attributes' with 'relationships' and incorrectly choose a graph database, or they assume key-value stores are flexible enough, overlooking the need for queryability on individual attributes.

How to eliminate wrong answers

Option A is wrong because graph databases (e.g., Neo4j) are optimized for highly connected data and relationship traversal, not for storing documents with variable attributes; they would force you to model each attribute as a node or relationship, adding unnecessary complexity. Option C is wrong because key-value stores (e.g., Redis, DynamoDB) treat the entire product as an opaque value, making it impossible to query or index individual attributes without application-level parsing, which defeats the purpose of a catalog. Option D is wrong because relational databases require a fixed schema per table; handling variable attributes would necessitate either many nullable columns, frequent ALTER TABLE statements, or a cumbersome EAV pattern, all of which degrade performance and maintainability.

109
Multi-Selecteasy

A data analyst is designing a dashboard for non-technical managers. Which TWO design principles should be applied? (Choose TWO.)

Select 2 answers
A.Use pie charts for all comparisons.
B.Place the most important metrics at the top.
C.Include complex statistical terms in labels.
D.Provide interactive filters for drill-down.
E.Use consistent color schemes.
AnswersB, E

Prioritizes key information for quick understanding.

Why this answer

Placing the most important metrics at the top follows the principle of visual hierarchy, ensuring that non-technical managers immediately see key performance indicators without scrolling. This aligns with dashboard design best practices for executive audiences, where attention span is limited and decisions rely on top-level data first.

Exam trap

CompTIA often tests the misconception that interactive features like drill-down filters are always beneficial for all audiences, but the trap here is that non-technical managers need simplicity and immediate insight, not exploratory complexity.

110
MCQeasy

A data analyst needs to join two tables in a SQL database: Orders and Customers. The analyst wants to include all orders, even if there is no matching customer record. Which type of join should be used?

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

LEFT JOIN returns all orders, including those without matching customers.

Why this answer

A LEFT JOIN returns all rows from the left table (Orders) and the matching rows from the right table (Customers). If there is no match, NULL values are returned for the right table's columns. This satisfies the requirement to include all orders, even those without a matching customer record.

Exam trap

The trap here is that candidates often confuse LEFT JOIN with RIGHT JOIN, mistakenly thinking they need to 'keep all customers' instead of 'keep all orders,' or they overcomplicate the requirement by choosing FULL OUTER JOIN when only one side needs to be preserved.

How to eliminate wrong answers

Option A (RIGHT JOIN) is wrong because it returns all rows from the right table (Customers) and matching rows from the left table (Orders), which would include all customers, not all orders. Option B (FULL OUTER JOIN) is wrong because it returns all rows from both tables, including unmatched rows from both sides, which is unnecessary when the requirement is specifically to keep all orders. Option D (INNER JOIN) is wrong because it returns only rows where there is a match in both tables, which would exclude orders without a matching customer record.

111
MCQmedium

A data analyst wants to show the correlation between advertising spend and website traffic. Which chart type should they use?

A.Area chart
B.Scatter plot
C.Bar chart
D.Line chart
AnswerB

Scatter plots display the correlation between two variables.

Why this answer

Scatter plots are designed to show the relationship between two numerical variables.

112
MCQmedium

A business analyst wants to compare the proportion of total sales contributed by each product category in the current year. Which visualization is most suitable?

A.Pie chart
B.Scatter plot
C.Line chart
D.Histogram
AnswerA

Pie charts are ideal for displaying proportions of a whole.

Why this answer

A pie chart effectively shows the proportion of each category as part of a whole, which is ideal for comparing the contribution of each product category to total sales. Option B (scatter plot) is used to show relationships between two variables, not proportions. Option C (line chart) is best for trends over time.

Option D (histogram) shows the distribution of a continuous variable.

113
MCQmedium

A data analyst is examining the distribution of customer ages in a dataset. The ages are: 22, 25, 29, 30, 31, 34, 35, 37, 40, 42, 45, 50, 55, 60, 65. Which measure of central tendency would be least affected by an outlier if a value of 120 is incorrectly recorded as age 120?

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

The median is not affected by outliers.

Why this answer

The median is resistant to outliers because it is the middle value when data are sorted. The mean is sensitive to extreme values, and the mode may not change but is not a robust measure of central tendency. The range is a measure of spread, not central tendency.

114
MCQeasy

A data analyst wants to show the sales trend for a product over the past 12 months. Which chart type is most appropriate?

A.Line chart
B.Bar chart
C.Pie chart
D.Histogram
AnswerA

Line charts effectively show trends over time.

Why this answer

A line chart is the most appropriate choice because it explicitly shows data points over a continuous time interval, making it ideal for visualizing the sales trend over 12 months. The x-axis represents time (months), and the y-axis represents sales values, allowing the audience to easily see upward, downward, or cyclical patterns. This aligns with the core principle of time-series visualization, where line charts excel at highlighting trends and changes over sequential periods.

Exam trap

The trap here is that candidates often confuse a histogram with a line chart because both use bars or lines to represent data, but a histogram is strictly for frequency distributions of continuous data, not for time-series trends.

How to eliminate wrong answers

Option B (Bar chart) is wrong because bar charts are better suited for comparing discrete categories or individual values, not for showing a continuous trend over time; they can obscure the sequential flow and make it harder to detect gradual changes. Option C (Pie chart) is wrong because pie charts display parts of a whole (proportions) at a single point in time, and they cannot represent a trend or time series across 12 months. Option D (Histogram) is wrong because histograms show the distribution of a continuous variable by binning data into intervals, not the progression of a single metric over time; using a histogram for a time series would misrepresent the data's temporal order.

115
Multi-Selecthard

A data scientist is merging retail transaction data from online and in-store sources. Which THREE steps are required to ensure data consistency?

Select 3 answers
A.Ensure product IDs are standardized across sources
B.Convert all monetary amounts to a common currency
C.Remove all transactions with missing customer ID
D.Synchronize timestamps to a single time zone
E.Merge data using only store location
AnswersA, B, D

Standard IDs prevent mismatches.

Why this answer

Options A (standardize product IDs), B (convert monetary amounts to a common currency), and D (synchronize timestamps to a single time zone) are essential for data consistency when merging online and in-store transaction data. Option C (remove all transactions with missing customer ID) is not required and may discard useful data; missing customer IDs can be handled in other ways. Option E (merge using only store location) is insufficient as it ignores other identifiers and may cause mismatches.

116
Multi-Selecteasy

A company is implementing a centralized reporting layer to replace departmental spreadsheets. Which TWO benefits are most directly achieved?

Select 2 answers
A.Improved data lineage
B.Elimination of all data errors
C.Single version of truth
D.Reduced need for data governance
E.Faster report generation
AnswersA, C

Centralized systems often include metadata tracking origins.

Why this answer

A centralized reporting layer ensures a single version of truth and improves data lineage by tracking data origins.

117
MCQhard

A data engineer needs to acquire data from a legacy mainframe system that does not support modern APIs or direct database connectivity. Which approach is most feasible?

A.Re-platform the mainframe to a modern system
B.Use a database gateway
C.Use FTP to transfer flat files
D.Manual data entry
AnswerC

FTP is a standard, simple method for file transfer from legacy systems.

Why this answer

FTP (File Transfer Protocol, RFC 959) is a widely supported, low-overhead method for transferring flat files (e.g., CSV, EBCDIC-encoded text) from legacy mainframe systems that lack modern APIs or direct database connectivity. Mainframes like IBM z/OS natively support FTP, allowing the data engineer to schedule periodic file exports without requiring system modernization or complex middleware.

Exam trap

The trap here is that candidates may assume a database gateway (Option B) is always the best integration approach, but the question explicitly denies direct database connectivity, making FTP the only practical option that leverages existing mainframe capabilities without major infrastructure changes.

How to eliminate wrong answers

Option A is wrong because re-platforming the mainframe to a modern system is a costly, high-risk, and time-consuming project that far exceeds the scope of a simple data acquisition task; it introduces unnecessary complexity and potential downtime. Option B is wrong because a database gateway typically requires the mainframe to support ODBC/JDBC or similar database connectivity protocols, which the question explicitly states is not available. Option D is wrong because manual data entry is error-prone, unscalable, and impractical for any reasonable volume of data, violating basic data integrity and efficiency requirements.

118
Multi-Selectmedium

A data analyst is creating a dashboard to display monthly sales trends for the past two years. The dataset includes monthly sales figures with seasonal fluctuations. The analyst wants to highlight both the overall trend and the seasonal patterns effectively. Which TWO chart types are most appropriate for this purpose? (Select two.)

Select 2 answers
A.Line chart
B.Stacked area chart
C.Scatter plot
D.Bar chart
E.Pie chart
AnswersA, D

Correct. Line charts are ideal for showing trends over time, such as monthly sales trends.

Why this answer

A line chart (A) clearly shows the overall trend over time, while a bar chart (D) allows easy comparison of monthly values, revealing seasonal peaks and troughs. A stacked area chart (B) can show cumulative trends but makes individual monthly comparisons difficult. A scatter plot (C) is for correlations, not time series.

A pie chart (E) is for parts of a whole and not suitable for trends.

119
MCQhard

In a multiple regression model with three predictors, the coefficient for one predictor is 5.2 with a p-value of 0.001. Which of the following is the best interpretation?

A.The predictor explains 5.2% of the variance in the dependent variable.
B.A one-unit increase in the predictor decreases the dependent variable by 5.2 units, on average.
C.The model is not a good fit because one predictor is significant.
D.The predictor has a statistically significant effect on the dependent variable, controlling for other variables.
AnswerD

p < 0.05 indicates significance, and 'holding constant' is key.

Why this answer

The coefficient indicates the change in the dependent variable for a one-unit increase in the predictor, holding other predictors constant.

120
MCQeasy

Refer to the exhibit. A data analyst wants to create a visualization that best shows the trend of sales over time for each department. Which chart type should be used?

A.Stacked bar chart.
B.Pie chart for each quarter.
C.Line chart with multiple lines.
D.Grouped bar chart.
AnswerC

Multiple line charts clearly show the trend for each department over time.

Why this answer

A line chart with multiple lines is the best choice because it clearly shows the trend of sales over time for each department, with time on the x-axis and sales on the y-axis. Each line represents a department, making it easy to compare trends across departments while preserving the continuous nature of time. This aligns with the goal of visualizing trends, as line charts excel at showing changes over a continuous interval.

Exam trap

CompTIA often tests the distinction between showing trends over time versus comparing discrete categories; the trap here is that candidates may choose a grouped bar chart (Option D) because it can display multiple departments, but they overlook that bars are better for comparing values at specific points rather than showing the continuous flow of time.

How to eliminate wrong answers

Option A is wrong because a stacked bar chart shows part-to-whole relationships over time, but it obscures individual department trends by stacking values on top of each other, making it difficult to compare the trend of each department separately. Option B is wrong because a pie chart for each quarter shows proportions within a single time period, not trends over time; pie charts are designed for static composition, not continuous temporal changes. Option D is wrong because a grouped bar chart compares discrete categories side by side, but it does not effectively convey the continuous trend of sales over time; the gaps between bars can make it harder to perceive the overall direction of change for each department.

121
MCQmedium

A marketing manager wants to visualize the conversion rate at each stage of a sales funnel, from leads to closed deals. The data shows the number of prospects at each stage. Which chart type is most appropriate for this pipeline analysis?

A.Treemap
B.Waterfall chart
C.Funnel chart
D.Stacked bar chart
AnswerC

Funnel charts visualize sequential stages and the decreasing value at each step, ideal for conversion funnels.

Why this answer

A funnel chart is specifically designed to show progressive reduction as data moves through stages of a process.

122
Multi-Selecthard

A data analyst is presenting a complex statistical analysis to a group of data scientists. The audience is highly knowledgeable. Which TWO approaches are most appropriate? (Choose two.)

Select 2 answers
A.Avoid mentioning uncertainty to maintain confidence
B.Use basic visualizations like pie charts
C.Include technical details and methodology
D.Present assumptions and limitations of the analysis
E.Simplify the findings to avoid confusion
AnswersC, D

Technical details are expected and valued.

Why this answer

Data scientists expect rigorous technical depth; including methodology and technical details aligns with their expertise and allows them to evaluate the analysis's validity. In a highly knowledgeable audience, omitting such details would undermine credibility and hinder peer review.

Exam trap

CompTIA often tests the misconception that simplifying findings is always best for any audience, but the trap here is that highly knowledgeable audiences require technical precision and transparency, not oversimplification.

123
MCQmedium

A company wants to determine if there is a significant difference in the average sales revenue between two different store layouts. They collect sales data from 30 stores with Layout A and 30 stores with Layout B. Which statistical test is most appropriate for comparing the means of these two independent groups?

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

Correct for comparing means of two independent groups.

Why this answer

The two-sample t-test (independent t-test) compares the means of two independent groups. A paired t-test would be for dependent samples, ANOVA for three or more groups, and chi-square for categorical variables.

124
Multi-Selectmedium

A data analyst is preparing a data storytelling presentation for a non-technical audience. Which THREE techniques are most effective for communicating insights?

Select 3 answers
A.Using relevant visuals such as charts and graphs.
B.Including raw data tables for reference.
C.Adding complex statistical terms to demonstrate expertise.
D.Highlighting the most important finding with annotations.
E.Using a clear narrative with a beginning, middle, and end.
AnswersA, D, E

Visuals make data more accessible and memorable.

Why this answer

Data storytelling for non-technical audiences relies on visuals like charts and graphs to make complex data patterns immediately understandable, reducing cognitive load and enabling faster insight absorption. Effective visuals should be simple, clearly labeled, and directly tied to the narrative, avoiding clutter that could confuse the audience.

Exam trap

The trap here is that candidates often confuse 'data completeness' with 'effective communication,' selecting raw data tables (Option B) thinking they provide transparency, when in fact they hinder comprehension for non-technical stakeholders.

125
MCQmedium

A sales manager wants to display the contribution of each product category to total revenue, with a maximum of six categories. Which chart type is most suitable?

A.Histogram
B.Pie chart
C.Box plot
D.Scatter plot
AnswerB

Pie charts effectively show proportions with few categories.

Why this answer

A pie or donut chart is ideal for part-to-whole relationships with a limited number of categories (5-7 slices).

126
MCQhard

A database has a table 'Orders' with columns OrderID (PK), CustomerID, OrderDate, and a table 'OrderDetails' with OrderID (FK), ProductID, Quantity. To ensure that every OrderID in OrderDetails exists in Orders, which integrity constraint is enforced?

A.Entity integrity
B.Domain integrity
C.User-defined integrity
D.Referential integrity
AnswerD

Referential integrity ensures foreign key values match primary key values.

Why this answer

Referential integrity, enforced via a foreign key constraint, ensures that values in the foreign key column (OrderID in OrderDetails) match values in the primary key column of the referenced table (Orders).

127
MCQmedium

A sales dashboard shows monthly revenue but the bars are very tall for some months and very short for others, making comparisons difficult. Which visualization modification would best improve readability?

A.Change bar colors to gradient
B.Apply a logarithmic scale on the y-axis
C.Add more horizontal gridlines
D.Use a 3D bar chart for depth
AnswerB

Log scale compresses wide ranges so differences are visible.

Why this answer

A logarithmic scale compresses the y-axis so that large values are displayed proportionally to small values, making it easier to compare relative changes across months with vastly different revenue figures. This is particularly useful when the data spans several orders of magnitude, as it prevents tall bars from dominating the view and short bars from being barely visible.

Exam trap

CompTIA often tests the misconception that adding decorative elements (like colors or 3D effects) improves readability, when the real issue is the scale of the data, and candidates may overlook the logarithmic scale as a legitimate axis transformation.

How to eliminate wrong answers

Option A is wrong because changing bar colors to a gradient does not address the scale disparity; it only adds visual noise without improving the comparability of bar heights. Option C is wrong because adding more horizontal gridlines does not change the axis scaling; it merely adds reference lines that do not help when the tall bars already dwarf the short ones. Option D is wrong because using a 3D bar chart introduces perspective distortion that can misrepresent the actual bar heights, making comparisons even more difficult rather than improving readability.

128
Multi-Selecthard

A data analyst is troubleshooting a map visualization that shows null values for some regions. Which TWO actions should the analyst take to resolve the issue?

Select 2 answers
A.Check that latitude and longitude fields are properly geocoded.
B.Verify that the data source includes all region names.
C.Add a filter to exclude null values.
D.Change the mark type from Map to Pie.
E.Remove the color encoding from profit.
AnswersA, B

Improper geocoding can cause null regions; verifying geocoding resolves the issue.

Why this answer

Improper geocoding of latitude and longitude fields can result in null values on a map. Option B is correct because missing region names in the data source cause nulls; verifying and correcting the data source resolves the issue. Option C is incorrect because filtering out nulls hides the problem without fixing the underlying data.

Option D is incorrect because changing the mark type does not address missing data. Option E is incorrect because removing color encoding only alters the visual appearance, not the data integrity.

129
MCQhard

A data analyst is creating a presentation for the board of directors. The board members have varying levels of data literacy. The analyst wants to ensure that the key insight—that customer satisfaction scores have declined by 15% due to longer wait times—is understood by everyone. Which approach is best?

A.Include a complex statistical model showing the correlation.
B.Show a scatter plot of wait time vs. satisfaction.
C.Provide raw data in a spreadsheet for review.
D.Use a simple annotated line chart with a clear callout on the decline.
AnswerD

An annotated line chart clearly shows the trend and the decline, with annotations guiding viewers to the key insight.

Why this answer

A simple annotated line chart with a clear callout on the decline is intuitive and draws attention to the key insight. Options A, B, and C are either too complex or not focused.

130
MCQmedium

An analyst creates a bar chart showing average sales by region. They want to ensure that the y-axis starts at zero to avoid misleading interpretation. This practice aligns with which dashboard design principle?

A.Appropriate precision
B.Visual hierarchy
C.Clear labels and titles
D.Data-ink ratio
AnswerA

Starting axes at zero avoids misleading precision in bar lengths.

Why this answer

Starting the y-axis at zero is a fundamental practice to ensure that the visual representation of data (bar heights) accurately reflects the actual values, preventing exaggeration or minimization of differences. This principle directly supports 'Appropriate Precision' by maintaining the integrity of the data visualization and avoiding misleading interpretations, which is a key consideration in dashboard design.

Exam trap

The trap here is confusing 'Appropriate Precision' (a data integrity principle) with 'Visual Hierarchy' (a layout principle) or 'Data-Ink Ratio' (a minimalist design principle).

How to eliminate wrong answers

Option B (Visual hierarchy) is wrong because visual hierarchy refers to the arrangement of elements to guide the viewer's eye by importance (e.g., size, color, position), not to the technical scaling of axes. Option C (Clear labels and titles) is wrong because while labels and titles are crucial for context, they do not address the specific mathematical requirement of axis scaling to prevent distortion. Option D (Data-ink ratio) is wrong because data-ink ratio focuses on minimizing non-data ink (e.g., gridlines, borders) to maximize clarity, not on the starting point of the y-axis.

131
MCQmedium

A logistics company receives GPS tracking data from fleet vehicles at 1-second intervals via a cellular network. The data is used to optimize routes and monitor driver behavior. Recently, the data acquisition system has been missing updates for some vehicles when they pass through tunnels or remote areas. The data team notices gaps during these periods. The company needs a solution to ensure near-real-time data continuity. What should they do?

A.Use a hybrid approach that combines cellular and Wi-Fi networks
B.Implement a store-and-forward mechanism that buffers data on the vehicle's onboard unit and uploads when connectivity resumes
C.Increase the frequency of data transmission to every 0.5 seconds
D.Switch to a satellite-based GPS system
AnswerB

Buffering ensures data is not lost and is transmitted later, providing continuity despite temporary outages.

Why this answer

A store-and-forward mechanism buffers GPS data locally on the vehicle's onboard unit during connectivity loss (e.g., in tunnels) and automatically uploads the backlog when cellular connectivity resumes. This ensures data continuity without requiring real-time transmission, directly addressing the intermittent connectivity issue while maintaining near-real-time updates.

Exam trap

The trap here is that candidates confuse the data source (GPS) with the transmission method, thinking satellite GPS solves connectivity issues, when the real problem is the cellular network's coverage gaps, not the positioning technology.

How to eliminate wrong answers

Option A is wrong because Wi-Fi networks are not suitable for fleet vehicles in motion; they have limited range and are not available in tunnels or remote areas, so combining them with cellular does not solve the core problem of coverage gaps. Option C is wrong because increasing transmission frequency to 0.5 seconds would exacerbate data loss during connectivity gaps and increase bandwidth/cost without addressing the root cause of missing updates. Option D is wrong because switching to satellite-based GPS only changes the positioning source, not the data transmission method; the vehicle still needs a network to send data, and satellite communication (e.g., Iridium) is expensive, high-latency, and not typically used for high-frequency GPS telemetry in logistics.

132
Multi-Selecthard

An organization uses a data warehouse for analytics. Which two characteristics are typical of a data warehouse compared to a data lake? (Select TWO.)

Select 2 answers
A.Optimized for complex queries and reporting
B.Typically uses ELT process
C.Stores raw data in native format
D.Uses schema-on-write
E.Supports all data types including unstructured
AnswersA, D

Data warehouses are designed for analytics.

Why this answer

A data warehouse is optimized for complex queries and reporting (A) because it uses schema-on-write (D), meaning data is transformed and structured before loading to support fast analytical queries. In contrast, a data lake uses schema-on-read and stores raw data. ELT is typical of data lakes, not data warehouses.

Exam trap

The trap here is that candidates often confuse the ETL/ELT processes, incorrectly associating ELT with data warehouses, or assume data warehouses can handle all data types like unstructured data, which is a key differentiator of data lakes.

133
MCQhard

A time series dataset has several missing months of data. Which chart type will present the most honest picture of the trend?

A.Area chart with interpolation
B.Line chart with gaps for missing months
C.Bar chart with zero values for missing months
D.Scatter plot with connected lines
AnswerB

Gaps indicate unknown values without interpolation.

Why this answer

Line charts with gaps explicitly show missing periods, avoiding false continuity.

134
MCQeasy

A data analyst needs to present the results of a customer segmentation analysis to the marketing team. The analysis identified four segments based on purchasing behavior. Which visualization is most effective for showing the characteristics of each segment?

A.Histogram
B.Heatmap
C.Radar chart
D.Scatter plot
AnswerC

Radar charts display multiple variables for each segment on a common scale.

Why this answer

A radar chart is the most effective visualization for comparing multiple quantitative variables across different categories, such as the purchasing behavior characteristics of each customer segment. It allows the marketing team to see the profile of each segment at a glance by plotting each characteristic on a separate axis radiating from a central point, making it easy to identify strengths, weaknesses, and similarities between segments.

Exam trap

The trap here is that candidates often choose a scatter plot or heatmap because they are more common in exploratory analysis, but the question specifically asks for showing the characteristics (multiple attributes) of each segment, which is best served by a radar chart's multi-axis comparison.

How to eliminate wrong answers

Option A is wrong because a histogram is used to show the distribution of a single continuous variable (e.g., frequency of purchase amounts) and cannot display multiple characteristics for multiple segments simultaneously. Option B is wrong because a heatmap is best for showing the magnitude of a single value across two categorical dimensions (e.g., segment vs. time period) but does not allow direct comparison of multiple distinct characteristics per segment. Option D is wrong because a scatter plot is designed to show the relationship between two continuous variables (e.g., age vs. spending) and cannot effectively display the multi-attribute profile of each segment.

135
MCQhard

A data scientist builds a logistic regression model to predict customer churn (yes/no). The model outputs a probability of 0.75 for a particular customer. Which of the following best describes this output?

A.The customer will definitely churn.
B.There is a 75% chance the customer will churn.
C.The odds of churning are 0.75 to 1.
D.The model is 75% accurate.
AnswerB

Probability interpretation.

Why this answer

Logistic regression outputs a probability between 0 and 1, interpreted as the likelihood of the positive class (churn = yes).

136
MCQmedium

A company's database has a table 'orders' with columns: order_id, customer_id, order_date, and total_amount. A data analyst needs to identify customers who have placed more than 5 orders in the past year. Which data concept should be used to group orders by customer and count them?

A.Joining with other tables
B.Filtering with WHERE clause
C.Sorting with ORDER BY
D.Aggregation with GROUP BY
AnswerD

GROUP BY groups rows and aggregation functions compute counts.

Why this answer

The requirement to count orders per customer requires grouping rows by customer_id and then applying a count function. The GROUP BY clause in SQL aggregates rows that share a common value (customer_id) into summary rows, and the COUNT function tallies the number of orders per group. This is the standard approach for such 'per-customer' aggregations.

Exam trap

The trap here is that candidates confuse filtering (WHERE) with aggregation (GROUP BY), thinking that a WHERE clause alone can count orders per customer, when in fact WHERE only filters rows and cannot produce grouped counts.

How to eliminate wrong answers

Option A is wrong because joining with other tables merges columns from multiple tables but does not group or count rows; it would not produce a count of orders per customer. Option B is wrong because filtering with a WHERE clause restricts rows before any grouping but does not aggregate or count; it cannot produce a count of orders per customer. Option C is wrong because sorting with ORDER BY only arranges the result set order and has no effect on grouping or counting rows.

137
MCQhard

A data team is communicating findings from a machine learning model that predicts equipment failure. The model has high accuracy but low recall. Which of the following statements is the most accurate way to communicate the model's performance to the maintenance team?

A."The model has a high precision, so when it alerts, it is usually correct, but it may miss some failures."
B."The model rarely misses a failure, but may have false positives."
C."The model has a high precision but low recall, so it misses many failures."
D."The model is highly reliable and catches almost all failures."
AnswerC

Correct. This accurately communicates the trade-off between precision and recall.

Why this answer

It directly states that the model has high precision but low recall, which means that when the model predicts a failure, it is likely correct (few false positives), but it fails to identify many actual failures (many false negatives). This is the most accurate way to communicate the trade-off to the maintenance team, as it clearly indicates that the model will miss some failures despite its high accuracy.

Exam trap

CompTIA often tests the confusion between accuracy and recall; candidates mistakenly assume high accuracy implies high recall, but accuracy can be high even with low recall if the class imbalance is severe (e.g., many non-failure cases dominate the metric).

How to eliminate wrong answers

Option A is wrong because it describes high precision correctly but omits the critical low recall issue; saying 'it may miss some failures' understates the severity of low recall, which means the model misses many failures, not just some. Option B is wrong because it describes high recall ('rarely misses a failure') and high false positives, which is the opposite of the given scenario (high accuracy, low recall). Option D is wrong because it claims the model 'catches almost all failures,' which directly contradicts low recall; a model with low recall misses a significant portion of actual failures.

138
MCQmedium

A retail company is migrating its on-premises data warehouse to a cloud data warehouse. The current ETL process extracts data from a transactional database (SQL Server) and a web analytics system (JSON logs). The ETL runs nightly and takes 6 hours. The business requires that the new cloud warehouse support real-time reporting with data latency of less than 15 minutes. The data engineer proposes using change data capture (CDC) from the SQL Server database and streaming the JSON logs via a message queue. However, management is concerned about cost and complexity. The engineer must design a solution that meets the latency requirement while minimizing operational overhead. Which approach should the engineer recommend?

A.Export the SQL Server data to flat files every 15 minutes and use a cloud storage trigger to load
B.Continue with nightly batch loads but increase the frequency to every hour
C.Implement CDC for the SQL Server database and stream the JSON logs via a message queue to the cloud warehouse
D.Use a data virtualization tool to query the source systems directly without moving data
AnswerC

CDC provides real-time changes; streaming handles JSON logs with low latency.

Why this answer

CDC captures only changed rows from SQL Server, minimizing data volume and enabling near-real-time ingestion, while streaming JSON logs via a message queue (e.g., Apache Kafka or Amazon Kinesis) provides sub-15-minute latency. This combination meets the latency requirement without the overhead of full batch exports or complex virtualization, addressing management's cost and complexity concerns.

Exam trap

The trap here is that candidates may choose Option A or D because they seem simpler, but they fail to meet the strict latency requirement or introduce hidden operational complexity, while Option C's CDC and streaming approach is the only one that balances low latency with minimal overhead.

How to eliminate wrong answers

Option A is wrong because exporting SQL Server data to flat files every 15 minutes introduces latency from file generation, cloud storage upload, and trigger-based loading, which can easily exceed the 15-minute requirement and adds operational overhead for file management. Option B is wrong because increasing nightly batch loads to hourly still results in up to 60-minute latency, failing the 15-minute requirement, and does not address the need for real-time streaming of JSON logs. Option D is wrong because data virtualization queries source systems directly, which can cause performance degradation on the transactional SQL Server and web analytics system, and does not provide a persistent, low-latency data pipeline to the cloud warehouse.

139
MCQmedium

A data analyst is using pandas in Python to clean a dataset. Which method is most appropriate to replace missing numerical values with the median of the column?

A.df.fillna(df.median())
B.df.interpolate()
C.df.dropna()
D.df.replace(np.nan, df.mean())
AnswerA

fillna with median replaces nulls with median.

Why this answer

fillna with median replaces missing values with median.

140
MCQmedium

A data analyst at a marketing firm is tasked with segmenting customers based on their purchasing behavior. The dataset contains 10,000 customers with features such as annual spend, frequency of purchases, recency of last purchase, and average order value. The analyst decides to use k-means clustering. After standardizing the features, the analyst runs k-means with k=3, k=4, and k=5, and computes the silhouette score for each: k=3: 0.45, k=4: 0.52, k=5: 0.48. The analyst also plots the elbow curve and observes that the within-cluster sum of squares (WCSS) decreases sharply from k=2 to k=4, then levels off. Based on these results, what is the most appropriate number of clusters?

A.k=4
B.k=2
C.k=3
D.k=5
AnswerA

Highest silhouette score and elbow point.

Why this answer

The silhouette score is highest at k=4 (0.52), indicating that clusters are well-separated and cohesive. The elbow curve shows WCSS decreasing sharply up to k=4 and then leveling off, suggesting that k=4 captures the optimal trade-off between model complexity and variance explained. Together, these metrics point to k=4 as the most appropriate number of clusters.

Exam trap

The trap here is that candidates might rely solely on the elbow curve and pick k=3 or k=5, ignoring the silhouette score which directly measures cluster quality and clearly favors k=4.

How to eliminate wrong answers

Option B (k=2) is wrong because the elbow curve shows a sharp decrease in WCSS from k=2 to k=4, meaning k=2 would underfit the data and miss meaningful segmentation. Option C (k=3) is wrong because its silhouette score (0.45) is lower than k=4 (0.52), indicating poorer cluster separation and cohesion. Option D (k=5) is wrong because its silhouette score (0.48) is lower than k=4, and the elbow curve shows WCSS leveling off after k=4, so adding a fifth cluster introduces unnecessary complexity without significant improvement.

141
Multi-Selectmedium

Which TWO of the following chart types are appropriate for showing the distribution of a continuous variable? (Choose 2.)

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

Shows distribution summary with quartiles and outliers.

Why this answer

A box plot is correct because it visually summarizes the distribution of a continuous variable through its five-number summary (minimum, first quartile, median, third quartile, maximum), clearly showing spread, central tendency, and potential outliers. This makes it ideal for distribution analysis in data visualization contexts like the DA0-001 exam.

Exam trap

The trap here is that candidates often confuse bar charts with histograms, mistakenly thinking bar charts can show continuous distributions, but bar charts require categorical x-axis values and have gaps between bars, while histograms use continuous intervals with no gaps.

142
Multi-Selectmedium

A data analyst is evaluating data quality for a customer database. Which TWO dimensions of data quality are most directly affected by duplicate customer records?

Select 2 answers
A.Consistency
B.Accuracy
C.Timeliness
D.Completeness
E.Uniqueness
AnswersB, E

Duplicates can cause inaccurate counts and misrepresent entity.

Why this answer

Duplicates reduce accuracy (records may be incorrect) and uniqueness (each entity should appear once).

143
MCQmedium

A data analyst is tasked with extracting data from a legacy system that outputs fixed-width text files. The analyst needs to parse these files into a structured format. Which tool or method is most appropriate for this task?

A.A spreadsheet application
B.An ETL tool with a graphical interface
C.A scripting language such as Python
D.SQL
AnswerC

Python provides libraries and string manipulation ideal for parsing fixed-width files.

Why this answer

Python is the most appropriate choice because fixed-width text files require precise column slicing based on character positions, which Python's string slicing and libraries like `struct` or `pandas.read_fwf` handle natively. Unlike graphical ETL tools or spreadsheets, Python provides programmatic control to define exact field widths, handle edge cases like missing delimiters, and process large files efficiently without manual intervention.

Exam trap

The trap here is that candidates assume a graphical ETL tool is always the best for data extraction, but the question specifically tests the ability to handle unstructured or semi-structured legacy formats where scripting provides the necessary precision and automation.

How to eliminate wrong answers

Option A is wrong because spreadsheet applications like Excel are designed for delimited data (e.g., CSV) and lack built-in functionality to parse fixed-width columns without manual column splitting, which is error-prone and impractical for large datasets. Option B is wrong because while ETL tools can parse fixed-width files, they typically require defining column widths in a graphical interface, which is less flexible and harder to automate than a scripting language for legacy systems with inconsistent formatting. Option D is wrong because SQL operates on structured data within a database and cannot directly parse raw fixed-width text files; it would require the data to be pre-processed into a table format first.

144
Multi-Selectmedium

A data analyst is creating a weekly KPI email for executives. Which TWO attributes are most important for this type of report?

Select 2 answers
A.Allowing interactive drill-down
B.Providing an executive summary with key metrics
C.Including raw data tables
D.Including real-time data
E.Automating delivery on a fixed schedule
AnswersB, E

Executives need a quick overview of key metrics.

Why this answer

Scheduled reports for executives should be concise and automated, with clear headline metrics and context.

145
Multi-Selectmedium

A data analyst is creating a dashboard for a retail company. Which TWO of the following are considered Key Performance Indicators (KPIs) tied to strategic objectives?

Select 2 answers
A.Average handle time per call
B.Number of products in inventory
C.Daily number of customer service calls
D.Year-over-year revenue growth
E.Customer retention rate
AnswersD, E

Revenue growth is a strategic KPI.

Why this answer

KPIs are tied to strategic goals; revenue growth and customer retention align with high-level business strategy.

146
MCQhard

A data analyst is presenting a time-series chart of monthly sales to executives. The sales dropped sharply in March due to a one-time supply chain disruption. Which storytelling technique would best help the audience understand this anomaly?

A.Add an annotation explaining the supply chain disruption
B.Remove the March data point to avoid confusion
C.Use a different chart type to hide the drop
D.Use a moving average to smooth the drop
AnswerA

Correct. Annotations provide context for key events.

Why this answer

Adding an annotation directly on the chart provides immediate context for the March sales drop, allowing executives to understand the anomaly without leaving the visualization. This technique follows the principle of 'contextual annotation' in data storytelling, where key events are marked to prevent misinterpretation of trends. It preserves data integrity while clarifying the cause, which is essential for accurate decision-making.

Exam trap

The trap here is that candidates may choose to smooth or remove the anomaly (options B or D) to make the chart look cleaner, failing to recognize that ethical data storytelling requires explaining, not hiding, significant events.

How to eliminate wrong answers

Option B is wrong because removing the March data point distorts the dataset, hiding a legitimate event and potentially leading to incorrect trend analysis or forecasting. Option C is wrong because using a different chart type to hide the drop is deceptive and violates ethical data presentation standards, as it obscures a significant anomaly rather than explaining it. Option D is wrong because a moving average smooths out short-term fluctuations, which would mask the sharp drop and prevent the audience from recognizing the one-time disruption, defeating the purpose of anomaly explanation.

147
Drag & Dropmedium

Drag and drop the steps to conduct a hypothesis test in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

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

Why this order

Hypothesis testing involves stating hypotheses, setting alpha, collecting data, computing test statistic, and making a decision.

148
MCQmedium

A data analyst needs to sample 1000 customers from a database of 100,000 customers for a survey, ensuring every customer has an equal chance of selection. Which sampling method is most appropriate?

A.Cluster sampling
B.Stratified sampling
C.Systematic sampling
D.Simple random sampling
AnswerD

Equal probability for all.

Why this answer

Simple random sampling gives each individual an equal chance of being selected.

149
MCQmedium

A data analyst is tasked with visualizing the distribution of customer ages across different regions. The dataset contains outliers. Which chart type best displays the distribution and highlights outliers?

A.Box plot
B.Violin plot
C.Histogram
D.Bar chart
AnswerA

Box plot displays distribution spread and outliers as individual points beyond whiskers.

Why this answer

A box plot explicitly shows median, quartiles, and outliers, making it ideal for distribution and outlier detection. Histogram shows distribution but not outliers clearly. Violin plot is similar but more complex.

Bar chart is not for distribution.

150
MCQmedium

A data analyst needs to retrieve current weather data from a third-party service. The service provides an endpoint that returns data in JSON format over HTTP. Which data source type is being used?

A.Streaming data
B.Flat file
C.Web scraping
D.API
AnswerD

REST API provides structured data via HTTP.

Why this answer

The data analyst is retrieving data from a third-party service via an HTTP endpoint that returns JSON. This is the classic definition of an API (Application Programming Interface) — specifically a RESTful web API — which allows programmatic access to structured data over HTTP using standard methods like GET. The JSON format confirms it is an API response, not a file or stream.

Exam trap

The trap here is that candidates confuse 'web scraping' (Option C) with API consumption because both involve HTTP, but scraping parses unstructured HTML while an API returns structured JSON, and CompTIA often tests this distinction by describing a direct JSON endpoint to lure test-takers into selecting web scraping.

How to eliminate wrong answers

Option A is wrong because streaming data implies a continuous, real-time flow of data (e.g., from Kafka, WebSockets, or sensor feeds), whereas the question describes a single request-response retrieval over HTTP. Option B is wrong because a flat file (e.g., CSV, TSV, or fixed-width) is a static file stored locally or on a file server, not an HTTP endpoint that returns JSON dynamically. Option C is wrong because web scraping involves parsing raw HTML from a web page to extract data, not consuming a structured JSON response from a dedicated API endpoint.

Page 1

Page 2 of 14

Page 3