Databricks Certified Machine Learning Associate Practice Test 45
Question 440
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A forecasting model randomly shuffles future sales observations into training folds before predicting past months. Changes require named owner approval and safe rollback. The acceptance review requires three complementary roles: governing principle, bounded corrective action and measurable result. Select EXACTLY THREE: the governing technical principle, proportionate action AND independently verifiable success result.
- Predictions are reported in original unit scale with correct error calculation.
- Each validation window occurs after its training history and reflects the intended forecast delay.
- Use forward-chaining or a suitable time-aware validation design instead of random shuffling.
- Use an appropriate cross-validation strategy with transformations fitted within each fold.
- Pipelines fit learned transformations from training data and apply them consistently to validation samples.
- Temporal prediction evaluation must preserve chronology so future information never enters earlier training periods.
Explanation
Correct Answers
B:Each validation window occurs after its training history and reflects the intended forecast delay. A forecasting model randomly shuffles future sales observations into training folds before predicting past months. The reported situation is: A forecasting model randomly shuffles future sales observations into training folds before predicting past months.
C:Use forward-chaining or a suitable time-aware validation design instead of random shuffling. Inspect split dates, group dependencies, feature availability and forecast horizons.
F:Temporal prediction evaluation must preserve chronology so future information never enters earlier training periods. A forecasting model randomly shuffles future sales observations into training folds before predicting past months.
Incorrect Answers
A:Predictions are reported in original unit scale with correct error calculation. The scenario calls for Choose time-series validation over random folds reasoning rather than a Restore units after log-target prediction analysis. The observed condition is: A forecasting model randomly shuffles future sales observations into training folds before predicting past months.
D:Use an appropriate cross-validation strategy with transformations fitted within each fold. It does not test the Choose time-series validation over random folds condition; it instead concerns Prefer cross-validation when sample size is limited.
E:Pipelines fit learned transformations from training data and apply them consistently to validation samples. The option addresses Fit preprocessing and estimator in one training pipeline, which is distinct from the Choose time-series validation over random folds issue here.
Question 441
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator. The review distinguishes symptoms from root cause. The team must select the technical principle that explains the requirement, not a neighboring unrelated feature. Which underlying Databricks or machine-learning principle BEST explains the stated need? Choose ONE best answer.
- MAE averages absolute prediction errors and is less sensitive to large residuals than RMSE.
- Sequential Bayesian optimization uses prior observations to guide subsequent promising parameter trials.
- R-squared compares residual squared error against a constant-mean baseline and may be negative on holdout data.
- Validation should refit learned preprocessing separately inside each training fold to avoid leakage.
Explanation
Correct Answer
D:Validation should refit learned preprocessing separately inside each training fold to avoid leakage. Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation. Cross-validate the whole pipeline, not only the final fitted estimator.
Incorrect Answers
A:MAE averages absolute prediction errors and is less sensitive to large residuals than RMSE. The relevant distinction here is Fit pipeline transforms inside each cross-validation fold; Prefer MAE when outlier tolerance is important is a separate concern.
B:Sequential Bayesian optimization uses prior observations to guide subsequent promising parameter trials. This would be pertinent to Use Bayesian search for sequential optimization budget, but does not resolve the stated Fit pipeline transforms inside each cross-validation fold issue.
C:R-squared compares residual squared error against a constant-mean baseline and may be negative on holdout data. The scenario calls for Fit pipeline transforms inside each cross-validation fold reasoning rather than a Interpret R squared with poor baseline performance analysis.
Question 442
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator. The review distinguishes symptoms from root cause. The team needs the most discriminating technical evidence before changing the solution, not an unsupported assumption. Which diagnostic check BEST distinguishes the actual cause or requirement? Choose ONE best answer.
- Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
- Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation.
- Examine residual sum of squares, reference mean, split and metric implementation.
- Trace inverse transformation and units at the evaluation function inputs.
Explanation
Correct Answer
B:Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation. Validation should refit learned preprocessing separately inside each training fold to avoid leakage. Every fold's validation rows remain absent from fitted preprocessing statistics.
Incorrect Answers
A:Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership. That concerns Avoid oversampling before cross-validation split, while this case turns on Fit pipeline transforms inside each cross-validation fold.
C:Examine residual sum of squares, reference mean, split and metric implementation. The relevant distinction here is Fit pipeline transforms inside each cross-validation fold; Interpret R squared with poor baseline performance is a separate concern.
D:Trace inverse transformation and units at the evaluation function inputs. This would be pertinent to Evaluate predictions on the intended target scale, but does not resolve the stated Fit pipeline transforms inside each cross-validation fold issue.
Question 443
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator. The review distinguishes symptoms from root cause. The owner requires a proportionate, authorized technical correction that can be verified independently. Which scoped solution approach BEST resolves the issue without unnecessary operational risk? Choose ONE best answer.
- Assign distinct trial identifiers and isolated output paths before authorized parallel execution.
- Convert predictions and labels consistently to the selected scale before computing MAE.
- Cross-validate the whole pipeline, not only the final fitted estimator.
- Tune supported class weights or a cost-sensitive objective using stratified training validation.
Explanation
Correct Answer
C:Cross-validate the whole pipeline, not only the final fitted estimator. Validation should refit learned preprocessing separately inside each training fold to avoid leakage. Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation.
Incorrect Answers
A:Assign distinct trial identifiers and isolated output paths before authorized parallel execution. It does not test the Fit pipeline transforms inside each cross-validation fold condition; it instead concerns Parallelize hyperparameter trials without sharing mutable fitted state.
B:Convert predictions and labels consistently to the selected scale before computing MAE. The option addresses Evaluate predictions on the intended target scale, which is distinct from the Fit pipeline transforms inside each cross-validation fold issue here.
D:Tune supported class weights or a cost-sensitive objective using stratified training validation. It addresses Use class weights for costly false negatives, not the Fit pipeline transforms inside each cross-validation fold requirement described.
Question 444
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator. Changes require named owner approval and safe rollback. The reviewer requests two independent contributions: one direct diagnostic and a measurable post-change result. Select EXACTLY TWO: the case-specific pre-change evidence check AND the independent post-change acceptance outcome.
- Inspect fit ordering, the scaler parameters and how holdout rows were handled.
- Inspect target transform, estimator output, inverse function and expected units.
- Every fold's validation rows remain absent from fitted preprocessing statistics.
- Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation.
- The approved model meets ranking and probabilistic calibration criteria appropriate to its use.
Explanation
Correct Answers
C:Every fold's validation rows remain absent from fitted preprocessing statistics. A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator.
D:Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation. A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator.
Incorrect Answers
A:Inspect fit ordering, the scaler parameters and how holdout rows were handled. Although useful for Fit preprocessing and estimator in one training pipeline, this does not establish the requested Fit pipeline transforms inside each cross-validation fold result.
B:Inspect target transform, estimator output, inverse function and expected units. That is a Restore units after log-target prediction consideration; the immediate issue lies in Fit pipeline transforms inside each cross-validation fold. The observed condition is: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator.
E:The approved model meets ranking and probabilistic calibration criteria appropriate to its use. That concerns Distinguish ROC AUC from log loss, while this case turns on Fit pipeline transforms inside each cross-validation fold.
Question 445
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator. Changes require named owner approval and safe rollback. The acceptance review requires three complementary roles: governing principle, bounded corrective action and measurable result. Select EXACTLY THREE: the governing technical principle, proportionate action AND independently verifiable success result.
- A controlled rerun produces an interpretable trial history and selected objective value.
- Report F1 with the confusion matrix and business-relevant class metrics.
- Validation should refit learned preprocessing separately inside each training fold to avoid leakage.
- Every fold's validation rows remain absent from fitted preprocessing statistics.
- High bias or inadequate model capacity can cause both training and unseen-data performance to remain weak.
- Cross-validate the whole pipeline, not only the final fitted estimator.
Explanation
Correct Answers
C:Validation should refit learned preprocessing separately inside each training fold to avoid leakage. A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator.
D:Every fold's validation rows remain absent from fitted preprocessing statistics. A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator. The reported situation is: A categorical encoder is fitted once using the entire dataset before a five-fold validation of the estimator.
F:Cross-validate the whole pipeline, not only the final fitted estimator. Inspect the sklearn Pipeline boundaries and whether preprocessing fit occurs before or during cross-validation.
Incorrect Answers
A:A controlled rerun produces an interpretable trial history and selected objective value. This would be pertinent to Preserve trial reproducibility for Hyperopt search, but does not resolve the stated Fit pipeline transforms inside each cross-validation fold issue.
B:Report F1 with the confusion matrix and business-relevant class metrics. The scenario calls for Fit pipeline transforms inside each cross-validation fold reasoning rather than a Select F1 when precision and recall both matter analysis.
E:High bias or inadequate model capacity can cause both training and unseen-data performance to remain weak. It does not test the Fit pipeline transforms inside each cross-validation fold condition; it instead concerns Identify underfitting from weak train and validation scores.
Question 446
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A rare-disease classifier receives random folds where one validation subset contains no positive cases. The review distinguishes symptoms from root cause. The team must select the technical principle that explains the requirement, not a neighboring unrelated feature. Which underlying Databricks or machine-learning principle BEST explains the stated need? Choose ONE best answer.
- Cross-validation evaluates across several held-out folds to estimate variability rather than one split outcome.
- R-squared compares residual squared error against a constant-mean baseline and may be negative on holdout data.
- Recall is the fraction of actual positive cases detected and matters when missed positives carry high cost.
- Stratified cross-validation maintains approximate class proportions across folds for classification evaluation.
Explanation
Correct Answer
D:Stratified cross-validation maintains approximate class proportions across folds for classification evaluation. Check class counts per fold and whether the rare class has sufficient examples. Use a compatible stratified split and adjust fold count if positive examples are too few.
Incorrect Answers
A:Cross-validation evaluates across several held-out folds to estimate variability rather than one split outcome. It addresses Prefer cross-validation when sample size is limited, not the Use stratified folds for rare classification target requirement described.
B:R-squared compares residual squared error against a constant-mean baseline and may be negative on holdout data. The relevant distinction here is Use stratified folds for rare classification target; Interpret R squared with poor baseline performance is a separate concern.
C:Recall is the fraction of actual positive cases detected and matters when missed positives carry high cost. This would be pertinent to Choose recall for missed-critical-event cost, but does not resolve the stated Use stratified folds for rare classification target issue.
Question 447
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A rare-disease classifier receives random folds where one validation subset contains no positive cases. The review distinguishes symptoms from root cause. The team needs the most discriminating technical evidence before changing the solution, not an unsupported assumption. Which diagnostic check BEST distinguishes the actual cause or requirement? Choose ONE best answer.
- Inspect the target definition, labeled outcomes and intended decision threshold.
- Review sequential transforms, fitted state, train-only fitting and serialization requirements.
- Check class counts per fold and whether the rare class has sufficient examples.
- Inspect objective noise, feasible parameter ranges, trial history and time cost per fit.
Explanation
Correct Answer
C:Check class counts per fold and whether the rare class has sufficient examples. Stratified cross-validation maintains approximate class proportions across folds for classification evaluation. Each valid fold supports meaningful minority-class metrics without losing its positive class.
Incorrect Answers
A:Inspect the target definition, labeled outcomes and intended decision threshold. The option addresses Select binary classification instead of regression, which is distinct from the Use stratified folds for rare classification target issue here.
B:Review sequential transforms, fitted state, train-only fitting and serialization requirements. That concerns Construct reproducible sklearn training pipeline, while this case turns on Use stratified folds for rare classification target.
D:Inspect objective noise, feasible parameter ranges, trial history and time cost per fit. The relevant distinction here is Use stratified folds for rare classification target; Use Bayesian search for sequential optimization budget is a separate concern.
Question 448
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A rare-disease classifier receives random folds where one validation subset contains no positive cases. The review distinguishes symptoms from root cause. The owner requires a proportionate, authorized technical correction that can be verified independently. Which scoped solution approach BEST resolves the issue without unnecessary operational risk? Choose ONE best answer.
- Multiply candidate combinations by folds and separately account for the refit step.
- Assign distinct trial identifiers and isolated output paths before authorized parallel execution.
- Use a compatible stratified split and adjust fold count if positive examples are too few.
- Report F1 with the confusion matrix and business-relevant class metrics.
Explanation
Correct Answer
C:Use a compatible stratified split and adjust fold count if positive examples are too few. Stratified cross-validation maintains approximate class proportions across folds for classification evaluation. Check class counts per fold and whether the rare class has sufficient examples.
Incorrect Answers
A:Multiply candidate combinations by folds and separately account for the refit step. That is a Count grid-search fits excluding optional refit consideration; the immediate issue lies in Use stratified folds for rare classification target.
B:Assign distinct trial identifiers and isolated output paths before authorized parallel execution. It does not test the Use stratified folds for rare classification target condition; it instead concerns Parallelize hyperparameter trials without sharing mutable fitted state.
D:Report F1 with the confusion matrix and business-relevant class metrics. That concerns Select F1 when precision and recall both matter, while this case turns on Use stratified folds for rare classification target.
Question 449
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A rare-disease classifier receives random folds where one validation subset contains no positive cases. Changes require named owner approval and safe rollback. The reviewer requests two independent contributions: one direct diagnostic and a measurable post-change result. Select EXACTLY TWO: the case-specific pre-change evidence check AND the independent post-change acceptance outcome.
- Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
- Minority-class recall improves within the approved false-positive and intervention constraints.
- Each valid fold supports meaningful minority-class metrics without losing its positive class.
- Check class counts per fold and whether the rare class has sufficient examples.
- Inspect TP, FP, FN, TN definitions and the label treated as positive.
Explanation
Correct Answers
C:Each valid fold supports meaningful minority-class metrics without losing its positive class. A rare-disease classifier receives random folds where one validation subset contains no positive cases.
D:Check class counts per fold and whether the rare class has sufficient examples. A rare-disease classifier receives random folds where one validation subset contains no positive cases.
Incorrect Answers
A:Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership. The scenario calls for Use stratified folds for rare classification target reasoning rather than a Avoid oversampling before cross-validation split analysis.
B:Minority-class recall improves within the approved false-positive and intervention constraints. Although useful for Use class weights for costly false negatives, this does not establish the requested Use stratified folds for rare classification target result.
E:Inspect TP, FP, FN, TN definitions and the label treated as positive. The option addresses Compute precision from confusion matrix values, which is distinct from the Use stratified folds for rare classification target issue here.
Question 450
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A rare-disease classifier receives random folds where one validation subset contains no positive cases. Changes require named owner approval and safe rollback. The acceptance review requires three complementary roles: governing principle, bounded corrective action and measurable result. Select EXACTLY THREE: the governing technical principle, proportionate action AND independently verifiable success result.
- Repeated cross-validation re-evaluates each candidate over every fold of every repetition.
- Each valid fold supports meaningful minority-class metrics without losing its positive class.
- Use a compatible stratified split and adjust fold count if positive examples are too few.
- The model meets a documented precision-recall target within operational alert capacity.
- Place supported resampling inside a training-only pipeline evaluated with stratified folds.
- Stratified cross-validation maintains approximate class proportions across folds for classification evaluation.
Explanation
Correct Answers
B:Each valid fold supports meaningful minority-class metrics without losing its positive class. A rare-disease classifier receives random folds where one validation subset contains no positive cases. The reported situation is: A rare-disease classifier receives random folds where one validation subset contains no positive cases.
C:Use a compatible stratified split and adjust fold count if positive examples are too few. Check class counts per fold and whether the rare class has sufficient examples.
F:Stratified cross-validation maintains approximate class proportions across folds for classification evaluation. A rare-disease classifier receives random folds where one validation subset contains no positive cases.
Incorrect Answers
A:Repeated cross-validation re-evaluates each candidate over every fold of every repetition. The relevant distinction here is Use stratified folds for rare classification target; Distinguish repeated cross-validation from single pass is a separate concern.
D:The model meets a documented precision-recall target within operational alert capacity. Although useful for Choose precision recall under severe imbalance, this does not establish the requested Use stratified folds for rare classification target result.
E:Place supported resampling inside a training-only pipeline evaluated with stratified folds. That is a Avoid oversampling before cross-validation split consideration; the immediate issue lies in Use stratified folds for rare classification target.