Databricks Certified Machine Learning Associate Practice Test 48
Question 470
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A fraud model flags one hundred transactions but only twenty flagged transactions are truly fraudulent. 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.
- The reported precision correctly evaluates to twenty percent for this example.
- The reported best hyperparameters correspond to the intended model-quality direction.
- Compute cross-validation work from the sum of valid parameter combinations.
- Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it.
- Precision measures true positives divided by all predicted positives, not by all actual positives.
- Calculate precision as TP over TP plus FP and compare against alert-review capacity.
Explanation
Correct Answers
A:The reported precision correctly evaluates to twenty percent for this example. A fraud model flags one hundred transactions but only twenty flagged transactions are truly fraudulent. The reported situation is: A fraud model flags one hundred transactions but only twenty flagged transactions are truly fraudulent.
E:Precision measures true positives divided by all predicted positives, not by all actual positives. A fraud model flags one hundred transactions but only twenty flagged transactions are truly fraudulent.
F:Calculate precision as TP over TP plus FP and compare against alert-review capacity. Inspect TP, FP, FN, TN definitions and the label treated as positive.
Incorrect Answers
B:The reported best hyperparameters correspond to the intended model-quality direction. The option addresses Interpret Hyperopt fmin objective and search space, which is distinct from the Compute precision from confusion matrix values issue here.
C:Compute cross-validation work from the sum of valid parameter combinations. That concerns Count only valid grid combinations, while this case turns on Compute precision from confusion matrix values.
D:Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it. It addresses Use class weights for costly false negatives, not the Compute precision from confusion matrix values requirement described.
Question 471
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly. 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.
- F1 summarizes the harmonic balance of precision and recall at a chosen threshold.
- Model selection metrics are only comparable when validation population, label definition and measurement method match.
- Recall is the fraction of actual positive cases detected and matters when missed positives carry high cost.
- ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities.
Explanation
Correct Answer
A:F1 summarizes the harmonic balance of precision and recall at a chosen threshold. Inspect class distribution, precision, recall and stakeholder costs of each error type. Report F1 with the confusion matrix and business-relevant class metrics.
Incorrect Answers
B:Model selection metrics are only comparable when validation population, label definition and measurement method match. That is a Compare candidate models under matched evaluation conditions consideration; the immediate issue lies in Select F1 when precision and recall both matter.
C:Recall is the fraction of actual positive cases detected and matters when missed positives carry high cost. It does not test the Select F1 when precision and recall both matter condition; it instead concerns Choose recall for missed-critical-event cost.
D:ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities. The option addresses Distinguish ROC AUC from log loss, which is distinct from the Select F1 when precision and recall both matter issue here.
Question 472
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly. 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 class distribution, precision, recall and stakeholder costs of each error type.
- Compare training score, validation score, feature relevance and candidate complexity.
- Check the loss sign, search space, trial results, selected metric and supported runtime compatibility.
- Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior.
Explanation
Correct Answer
A:Inspect class distribution, precision, recall and stakeholder costs of each error type. F1 summarizes the harmonic balance of precision and recall at a chosen threshold. The selected model balances errors according to the documented review objective.
Incorrect Answers
B:Compare training score, validation score, feature relevance and candidate complexity. The scenario calls for Select F1 when precision and recall both matter reasoning rather than a Identify underfitting from weak train and validation scores analysis.
C:Check the loss sign, search space, trial results, selected metric and supported runtime compatibility. Although useful for Interpret Hyperopt fmin objective and search space, this does not establish the requested Select F1 when precision and recall both matter result.
D:Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior. That is a Use class weights for costly false negatives consideration; the immediate issue lies in Select F1 when precision and recall both matter.
Question 473
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly. 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.
- Use random search or narrow a justified grid to meet the compute budget.
- Report F1 with the confusion matrix and business-relevant class metrics.
- Construct and fit a pipeline containing the preprocessing transformer and final estimator using training data only.
- Budget the full repeated-fit count and isolate the optional final production refit.
Explanation
Correct Answer
B:Report F1 with the confusion matrix and business-relevant class metrics. F1 summarizes the harmonic balance of precision and recall at a chosen threshold. Inspect class distribution, precision, recall and stakeholder costs of each error type.
Incorrect Answers
A:Use random search or narrow a justified grid to meet the compute budget. It addresses Compare grid search with random search under bounded budget, not the Select F1 when precision and recall both matter requirement described.
C:Construct and fit a pipeline containing the preprocessing transformer and final estimator using training data only. This would be pertinent to Fit preprocessing and estimator in one training pipeline, but does not resolve the stated Select F1 when precision and recall both matter issue.
D:Budget the full repeated-fit count and isolate the optional final production refit. The scenario calls for Select F1 when precision and recall both matter reasoning rather than a Distinguish repeated cross-validation from single pass analysis.
Question 474
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly. 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 class distribution, precision, recall and stakeholder costs of each error type.
- The optimizer selects later trials using recorded earlier observations and identifies a validated candidate.
- Inspect minority prevalence, precision-recall curve, confusion matrix and analyst review capacity.
- The selected model balances errors according to the documented review objective.
- Inspect executor concurrency, checkpoint destinations, shared objects and logs for collisions.
Explanation
Correct Answers
A:Inspect class distribution, precision, recall and stakeholder costs of each error type. A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly.
D:The selected model balances errors according to the documented review objective. A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly.
Incorrect Answers
B:The optimizer selects later trials using recorded earlier observations and identifies a validated candidate. That concerns Use Bayesian search for sequential optimization budget, while this case turns on Select F1 when precision and recall both matter.
C:Inspect minority prevalence, precision-recall curve, confusion matrix and analyst review capacity. It addresses Choose precision recall under severe imbalance, not the Select F1 when precision and recall both matter requirement described.
E:Inspect executor concurrency, checkpoint destinations, shared objects and logs for collisions. This would be pertinent to Parallelize hyperparameter trials without sharing mutable fitted state, but does not resolve the stated Select F1 when precision and recall both matter issue.
Question 475
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly. 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.
- Pipelines fit learned transformations from training data and apply them consistently to validation samples.
- Report F1 with the confusion matrix and business-relevant class metrics.
- Tune the threshold and report recall with corresponding precision under the safety constraint.
- F1 summarizes the harmonic balance of precision and recall at a chosen threshold.
- The reported best hyperparameters correspond to the intended model-quality direction.
- The selected model balances errors according to the documented review objective.
Explanation
Correct Answers
B:Report F1 with the confusion matrix and business-relevant class metrics. Inspect class distribution, precision, recall and stakeholder costs of each error type.
D:F1 summarizes the harmonic balance of precision and recall at a chosen threshold. A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly.
F:The selected model balances errors according to the documented review objective. A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly. The reported situation is: A classifier is evaluated exclusively on accuracy even though both false alarms and missed positives are costly.
Incorrect Answers
A:Pipelines fit learned transformations from training data and apply them consistently to validation samples. That is a Fit preprocessing and estimator in one training pipeline consideration; the immediate issue lies in Select F1 when precision and recall both matter.
C:Tune the threshold and report recall with corresponding precision under the safety constraint. The option addresses Choose recall for missed-critical-event cost, which is distinct from the Select F1 when precision and recall both matter issue here.
E:The reported best hyperparameters correspond to the intended model-quality direction. It addresses Interpret Hyperopt fmin objective and search space, not the Select F1 when precision and recall both matter requirement described.
Question 476
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss. 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.
- Stratified cross-validation maintains approximate class proportions across folds for classification evaluation.
- ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities.
- High variance often manifests as a large gap between training and unseen-data performance.
- Hyperopt fmin minimizes its objective, so maximization targets need an appropriate transformation such as negative score.
Explanation
Correct Answer
B:ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities. Compare scored probabilities, class labels, ROC curve and probability calibration. Evaluate both discrimination and probability quality for the planned decision use.
Incorrect Answers
A:Stratified cross-validation maintains approximate class proportions across folds for classification evaluation. The scenario calls for Distinguish ROC AUC from log loss reasoning rather than a Use stratified folds for rare classification target analysis.
C:High variance often manifests as a large gap between training and unseen-data performance. That is a Identify overfitting through train validation gap consideration; the immediate issue lies in Distinguish ROC AUC from log loss.
D:Hyperopt fmin minimizes its objective, so maximization targets need an appropriate transformation such as negative score. It does not test the Distinguish ROC AUC from log loss condition; it instead concerns Interpret Hyperopt fmin objective and search space.
Question 477
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss. 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 requested output units, target distribution and the loss function of candidate estimators.
- Compare scored probabilities, class labels, ROC curve and probability calibration.
- Inspect minority prevalence, precision-recall curve, confusion matrix and analyst review capacity.
- Count combinations within each dictionary, then add the counts across grids.
Explanation
Correct Answer
B:Compare scored probabilities, class labels, ROC curve and probability calibration. ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities. The approved model meets ranking and probabilistic calibration criteria appropriate to its use.
Incorrect Answers
A:Compare requested output units, target distribution and the loss function of candidate estimators. The relevant distinction here is Distinguish ROC AUC from log loss; Select regression for continuous numerical target is a separate concern.
C:Inspect minority prevalence, precision-recall curve, confusion matrix and analyst review capacity. The scenario calls for Distinguish ROC AUC from log loss reasoning rather than a Choose precision recall under severe imbalance analysis.
D:Count combinations within each dictionary, then add the counts across grids. Although useful for Count only valid grid combinations, this does not establish the requested Distinguish ROC AUC from log loss result. The observed condition is: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss.
Question 478
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss. 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.
- Apply an appropriate inverse transform such as expm1 when the target was log1p.
- Construct and fit a pipeline containing the preprocessing transformer and final estimator using training data only.
- Re-evaluate candidates on the same unbiased holdout with the same metric definitions.
- Evaluate both discrimination and probability quality for the planned decision use.
Explanation
Correct Answer
D:Evaluate both discrimination and probability quality for the planned decision use. ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities. Compare scored probabilities, class labels, ROC curve and probability calibration.
Incorrect Answers
A:Apply an appropriate inverse transform such as expm1 when the target was log1p. That concerns Restore units after log-target prediction, while this case turns on Distinguish ROC AUC from log loss.
B:Construct and fit a pipeline containing the preprocessing transformer and final estimator using training data only. It addresses Fit preprocessing and estimator in one training pipeline, not the Distinguish ROC AUC from log loss requirement described.
C:Re-evaluate candidates on the same unbiased holdout with the same metric definitions. The relevant distinction here is Distinguish ROC AUC from log loss; Compare candidate models under matched evaluation conditions is a separate concern.
Question 479
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss. 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.
- Check the loss sign, search space, trial results, selected metric and supported runtime compatibility.
- The approved model meets ranking and probabilistic calibration criteria appropriate to its use.
- Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
- Evaluation reports classification metrics and the output can drive the stated retention decision.
- Compare scored probabilities, class labels, ROC curve and probability calibration.
Explanation
Correct Answers
B:The approved model meets ranking and probabilistic calibration criteria appropriate to its use. A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss.
E:Compare scored probabilities, class labels, ROC curve and probability calibration. A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss.
Incorrect Answers
A:Check the loss sign, search space, trial results, selected metric and supported runtime compatibility. It does not test the Distinguish ROC AUC from log loss condition; it instead concerns Interpret Hyperopt fmin objective and search space.
C: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 Distinguish ROC AUC from log loss.
D:Evaluation reports classification metrics and the output can drive the stated retention decision. It addresses Select binary classification instead of regression, not the Distinguish ROC AUC from log loss requirement described.
Question 480
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss. 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.
- The selected model meets a documented minimum sensitivity without uncontrollable alert burden.
- Evaluate both discrimination and probability quality for the planned decision use.
- ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities.
- The approved model meets ranking and probabilistic calibration criteria appropriate to its use.
- Report F1 with the confusion matrix and business-relevant class metrics.
- When the target is log transformed, predictions require the correct inverse transform before business interpretation.
Explanation
Correct Answers
B:Evaluate both discrimination and probability quality for the planned decision use. Compare scored probabilities, class labels, ROC curve and probability calibration.
C:ROC AUC tests ranking across thresholds, while log loss penalizes incorrect and overconfident probabilities. A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss.
D:The approved model meets ranking and probabilistic calibration criteria appropriate to its use. A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss. The reported situation is: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss.
Incorrect Answers
A:The selected model meets a documented minimum sensitivity without uncontrollable alert burden. Although useful for Choose recall for missed-critical-event cost, this does not establish the requested Distinguish ROC AUC from log loss result.
E: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 Distinguish ROC AUC from log loss.
F:When the target is log transformed, predictions require the correct inverse transform before business interpretation. It addresses Restore units after log-target prediction, not the Distinguish ROC AUC from log loss requirement described. The observed condition is: A binary model ranks positive cases reasonably but outputs overconfident probabilities and performs poorly on log loss.