Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free CompTIA DataAI Certification Exam DY0-001 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 9 Total 85 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Mathematics and Statistics

Skill tested: Select a statistical test that accounts for repeated measurements within subjects.

A clinical analytics team compares a continuous biomarker measured before and after an intervention in 42 participants. Each participant provides both measurements, the distribution of within-person differences is approximately symmetric, and there are no other treatment groups. The team wants to test whether the mean biomarker changed, while preserving the pairing of observations. Which analysis is most appropriate?

Correct Answer: B. A paired t-test on the within-participant differences
Explanation:

The paired t-test analyzes one difference per participant, so it accounts for the dependence between that participant's two measurements and directly tests whether the mean difference is zero. The stated symmetry of the differences supports this approach. An independent t-test and an ordinary one-way ANOVA treat observations as independent, violating the design. Categorizing a continuous biomarker discards information and a chi-squared test would address categorical counts, not the mean change.

Question 2

New Single answer

Topic: Mathematics and Statistics

Skill tested: Interpret ROC-AUC and confusion-matrix tradeoffs when choosing a classification threshold.

A fraud team evaluates a binary classifier whose scores rank transactions effectively, but its current threshold misses too many confirmed fraud cases. False positives require manual review, and the review team has spare capacity; however, the model must not be retrained before the next release. The team needs a decision rule that increases recall and can be justified using held-out validation data. Which action is most appropriate?

Correct Answer: D. Lower the threshold, then select a suitable operating point from the validation ROC curve and confusion matrix
Explanation:

Lowering the threshold generally classifies more transactions as positive, increasing recall while also potentially increasing false positives. The validation ROC curve shows the tradeoff across thresholds, and the confusion matrix quantifies the resulting counts at a chosen operating point. Spare review capacity makes accepting more false positives plausible. Raising the threshold usually reduces recall; maximizing specificity does not necessarily increase recall. Training-set accuracy or loss does not provide the requested held-out operating-point assessment.

Question 3

New Single answer

Topic: Modeling, Analysis, and Outcomes

Skill tested: Identify seasonality and choose an appropriate temporal aggregation for exploratory analysis.

A retailer sees large weekly fluctuations in daily demand and suspects a yearly seasonal pattern. Its current dashboard plots all daily observations for four years, making the long-term pattern difficult to distinguish from day-of-week effects. The forecasting team needs an exploratory view that preserves the annual cycle and avoids mistaking weekday composition for trend. Which next step is best?

Correct Answer: A. Decompose the dated series into trend, seasonal, and residual components using an appropriate seasonal period, and inspect weekday effects separately
Explanation:

A time-series decomposition separates the longer-term trend, recurring seasonal structure, and residual variation, provided the seasonal period matches the data's cadence and pattern. Inspecting weekday effects separately helps distinguish weekly behavior from a yearly cycle. Annual totals collapse the within-year pattern, while removing weekends changes the observed demand process and can bias conclusions. Standardizing each year independently can erase meaningful level changes and discards the temporal ordering needed for this analysis.

Question 4

New Multiple answers

Topic: Modeling, Analysis, and Outcomes

Skill tested: Prevent leakage during temporal validation and select evaluation data at the correct granularity.

A utility predicts next-day demand from weather forecasts and historical meter readings. The source table contains one row per meter per day, and readings from the same meter are strongly correlated. Several candidate features are computed from rolling windows, and the organization will deploy the model to forecast future dates for both existing and newly added meters. The team must estimate future performance without allowing future information into training or splitting near-duplicate observations across partitions. Which TWO design choices are most appropriate? Select TWO.

Correct Answer: B. Fit preprocessing and feature-selection steps on the training partition only, then apply the fitted transformations to later partitions; C. Use a chronological train/validation/test split, ensuring every feature for a prediction date uses only information available by that date
Explanation:

A chronological split reflects deployment on future dates, and time-aware feature construction prevents later observations from leaking into predictors for earlier forecasts. Fitting imputation, scaling, feature selection, or similar learned preprocessing only on training data prevents information from validation and test partitions influencing the model. Random row splitting can mix temporal neighbors and produce an optimistic estimate. Computing full-dataset rolling features can leak future readings, and repeatedly tuning against the final test period turns that test set into training feedback.

Question 5

New Single answer

Topic: Modeling, Analysis, and Outcomes

Skill tested: Choose transformations and diagnostics to address heteroskedasticity in regression residuals.

A logistics company models shipment cost from distance, weight, and route characteristics. Residual plots show that the spread of residuals increases sharply with fitted cost, while the conditional mean relationship appears approximately linear. Cost values are positive, and stakeholders primarily need accurate proportional predictions and interpretable effects. Which approach is the best next step?

Correct Answer: D. Log-transform the response, refit the model, and inspect residual diagnostics on the transformed scale
Explanation:

Increasing residual spread with fitted values is a common sign of heteroskedasticity. Since costs are positive and proportional prediction is important, modeling log cost is a reasonable candidate: it can stabilize variance and express effects in relative terms. The transformed model still requires residual checks and careful interpretation when converting predictions back to the original scale. A polynomial addresses mean nonlinearity, not necessarily changing variance. Deleting valid expensive shipments biases the model, and a chi-squared test is not the appropriate diagnostic here.

Question 6

New Multiple answers

Topic: Machine Learning

Skill tested: Configure neural-network regularization and training procedures to reduce overfitting.

An image-classification model performs well on training data but substantially worse on a separately held-out validation set. The dataset is moderately sized, the model is implemented in TensorFlow, and the architecture must remain unchanged for compatibility with a production inference service. The team can modify training configuration and regularization, but the validation set must remain a reliable measure of generalization. Which TWO actions are most appropriate? Select TWO.

Correct Answer: C. Use early stopping based on validation performance, while retaining a separate untouched test set for final evaluation; E. Apply dropout during training and disable its stochastic masking during inference
Explanation:

Training-time dropout regularizes the network by randomly omitting activations, while inference uses the learned model without stochastic dropout masking. Early stopping can limit overfitting by selecting a training point based on validation performance; a separate untouched test set is still needed for final unbiased evaluation. Fitting weights or normalization statistics using validation data compromises its role in model selection. Increasing capacity and pursuing perfect training accuracy may worsen overfitting, and inference-only dropout does not provide the intended training regularization.

Question 7

New Single answer

Topic: Machine Learning

Skill tested: Select a leakage-resistant strategy for tuning a model on imbalanced classification data.

A lender has a highly imbalanced default dataset and is comparing regularization strengths for logistic regression. The positive class is rare, and the team wants an estimate of model selection performance that is less sensitive to which defaults land in a fold. All preprocessing, including imputation and scaling, must be included in the evaluation process. Which procedure is most appropriate?

Correct Answer: D. Create stratified cross-validation folds and fit preprocessing separately within each training fold while tuning regularization
Explanation:

Stratified folds help preserve the rare-class proportion in each partition, making fold-level comparisons more stable. Preprocessing must be fitted within each training fold and then applied to that fold's validation data; otherwise, statistics from held-out rows leak into training. Scaling the full dataset first leaks information, and oversampling before splitting can place duplicates or related samples in both training and validation folds. The final test set should not be used to choose hyperparameters, because doing so biases its reported score.

Question 8

New Single answer

Topic: Operations and Processes

Skill tested: Design reproducible data-lineage controls for an automated model-training pipeline.

A manufacturer retrains a defect-detection model weekly from production images and inspector labels. An audit found that the team cannot determine which source images, label corrections, code revision, or configuration produced a deployed model. The pipeline must remain automated, support rollback, and preserve traceability without retaining duplicate raw image files indefinitely. What should the team implement first?

Correct Answer: C. Assign each run an immutable identifier and record versioned data references, label changes, code revision, configuration, and resulting model artifact
Explanation:

An immutable run record links a model artifact to the exact data references, label state, code, and configuration that produced it. Versioned references or manifests can provide traceability without requiring indefinite duplication of large raw files. Keeping only the latest artifact destroys rollback and reproducibility; a metric alone cannot identify training inputs or implementation. Retaining raw images in a container is not a substitute for lineage and leaves labels and code changes untracked.

Question 9

New Multiple answers

Topic: Operations and Processes

Skill tested: Select operational controls for safely deploying and monitoring a production model.

A subscription service deploys a churn model through a containerized API. The model influences retention offers, so unexpected changes in input distributions or prediction rates can create material cost. The team needs a controlled release, an immediate recovery path, and ongoing detection of operational or data-quality degradation. Which THREE practices best meet these requirements? Select THREE.

Correct Answer: A. Promote a versioned container through automated tests and a staged rollout before broad production traffic; C. Monitor service health and relevant input or prediction distributions against documented baselines; E. Retain the prior known-good deployment and define a tested rollback procedure
Explanation:

Automated tests and staged promotion reduce release risk, while versioned images make the deployed artifact identifiable. Keeping the prior known-good version and testing rollback gives the service a practical recovery path. Monitoring both service health and relevant data or prediction distributions can reveal infrastructure failures and model or input drift. Replacing an image in place removes useful release traceability, and a successful build does not establish model quality or eliminate the need for production monitoring.

Question 10

New Single answer

Topic: Specialized Applications of Data Science

Skill tested: Choose text representations suited to interpretable document classification with sparse features.

A compliance team classifies short support messages into a fixed set of policy categories. It has a limited labeled corpus, needs features that analysts can inspect, and cannot deploy a large embedding model because of inference and governance constraints. A linear classifier is already approved for production. Which text-representation approach best fits these requirements?

Correct Answer: A. Use TF-IDF features from tokenized messages, then train the approved linear classifier
Explanation:

Tokenization followed by TF-IDF creates a sparse, inspectable representation that weights terms by their importance across documents. It works naturally with linear classifiers and is a practical fit for a limited corpus and constrained inference environment. Exact-message one-hot encoding offers little generalization because nearly every message becomes a unique feature. Training a large contextual model conflicts with the resource and governance constraints, while message length alone discards most category-relevant content.

Question 11

New Single answer

Topic: Specialized Applications of Data Science

Skill tested: Distinguish object detection from object tracking in a video analytics pipeline.

A warehouse uses fixed cameras to monitor forklifts entering restricted aisles. The system must identify each forklift in video frames and maintain a consistent identity across successive frames so it can measure dwell time. It must also trigger an alert if a tracked forklift remains in a restricted area beyond a specified duration. Which design best meets the requirement?

Correct Answer: B. Use object detection to locate forklifts per frame, then associate detections across frames with a tracking method and evaluate track duration
Explanation:

Object detection identifies and localizes forklifts in individual frames; tracking associates those detections across time so the system can estimate persistent identity and dwell duration. The alert can then be based on a track's time in the restricted region. OCR extracts text rather than maintaining vehicle identity. Independent frame classification cannot reliably connect the same forklift across frames, and inference-time random augmentation neither creates a valid tracking association nor supports stable duration measurement.