Databricks Certified Machine Learning Associate Practice Test 37
Question 360
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A marketing dataset has customer behavior vectors but no trustworthy segment labels, yet the team requests supervised classification. 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.
- Unsupervised clustering discovers structure without requiring known target class labels.
- MAE averages absolute prediction errors and is less sensitive to large residuals than RMSE.
- Minority-class recall improves within the approved false-positive and intervention constraints.
- Evaluate a suitable clustering algorithm with feature normalization and business interpretability review.
- Resulting groups are coherent under documented metrics and usable for the intended analysis.
- Construct and fit a pipeline containing the preprocessing transformer and final estimator using training data only.
Explanation
Correct Answers
A:Unsupervised clustering discovers structure without requiring known target class labels. A marketing dataset has customer behavior vectors but no trustworthy segment labels, yet the team requests supervised classification.
D:Evaluate a suitable clustering algorithm with feature normalization and business interpretability review. Check whether the dataset includes a defined target, feature scales and cluster quality criteria.
E:Resulting groups are coherent under documented metrics and usable for the intended analysis. A marketing dataset has customer behavior vectors but no trustworthy segment labels, yet the team requests supervised classification. The reported situation is: A marketing dataset has customer behavior vectors but no trustworthy segment labels, yet the team requests supervised classification.
Incorrect Answers
B:MAE averages absolute prediction errors and is less sensitive to large residuals than RMSE. This would be pertinent to Prefer MAE when outlier tolerance is important, but does not resolve the stated Choose unsupervised clustering without target labels issue.
C:Minority-class recall improves within the approved false-positive and intervention constraints. The scenario calls for Choose unsupervised clustering without target labels reasoning rather than a Use class weights for costly false negatives analysis.
F:Construct and fit a pipeline containing the preprocessing transformer and final estimator using training data only. It does not test the Choose unsupervised clustering without target labels condition; it instead concerns Fit preprocessing and estimator in one training pipeline.
Question 361
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy. 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.
- GridSearchCV evaluates the Cartesian product of candidate choices on each fold, before optional final refit.
- GridSearchCV interprets a list of parameter grids as a union of separate Cartesian products.
- High variance often manifests as a large gap between training and unseen-data performance.
- Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it.
Explanation
Correct Answer
D:Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it. Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior. Tune supported class weights or a cost-sensitive objective using stratified training validation.
Incorrect Answers
A:GridSearchCV evaluates the Cartesian product of candidate choices on each fold, before optional final refit. That concerns Count grid-search fits excluding optional refit, while this case turns on Use class weights for costly false negatives.
B:GridSearchCV interprets a list of parameter grids as a union of separate Cartesian products. It addresses Count only valid grid combinations, not the Use class weights for costly false negatives requirement described.
C:High variance often manifests as a large gap between training and unseen-data performance. The relevant distinction here is Use class weights for costly false negatives; Identify overfitting through train validation gap is a separate concern.
Question 362
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy. 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.
- Inspect TP, FP, FN, TN definitions and the label treated as positive.
- Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior.
- Inspect target transform, estimator output, inverse function and expected units.
Explanation
Correct Answer
C:Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior. Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it. Minority-class recall improves within the approved false-positive and intervention constraints.
Incorrect Answers
A:Inspect the target definition, labeled outcomes and intended decision threshold. It does not test the Use class weights for costly false negatives condition; it instead concerns Select binary classification instead of regression.
B: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 class weights for costly false negatives issue here.
D:Inspect target transform, estimator output, inverse function and expected units. It addresses Restore units after log-target prediction, not the Use class weights for costly false negatives requirement described. The observed condition is: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy.
Question 363
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy. 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.
- Select a loss and reporting metric aligned with the actual cost of ordinary versus rare error.
- Tune the threshold and report recall with corresponding precision under the safety constraint.
- Tune supported class weights or a cost-sensitive objective using stratified training validation.
- Calculate precision as TP over TP plus FP and compare against alert-review capacity.
Explanation
Correct Answer
C:Tune supported class weights or a cost-sensitive objective using stratified training validation. Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it. Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior.
Incorrect Answers
A:Select a loss and reporting metric aligned with the actual cost of ordinary versus rare error. Although useful for Prefer MAE when outlier tolerance is important, this does not establish the requested Use class weights for costly false negatives result.
B:Tune the threshold and report recall with corresponding precision under the safety constraint. That is a Choose recall for missed-critical-event cost consideration; the immediate issue lies in Use class weights for costly false negatives.
D:Calculate precision as TP over TP plus FP and compare against alert-review capacity. The option addresses Compute precision from confusion matrix values, which is distinct from the Use class weights for costly false negatives issue here.
Question 364
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy. 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.
- Recorded model fits match candidates times folds times repeats, plus any final refit.
- Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior.
- Check whether the dataset includes a defined target, feature scales and cluster quality criteria.
- Minority-class recall improves within the approved false-positive and intervention constraints.
- Review split identifiers, data timestamps, metric calculation and target encoding for each candidate.
Explanation
Correct Answers
B:Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior. A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy.
D:Minority-class recall improves within the approved false-positive and intervention constraints. A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy.
Incorrect Answers
A:Recorded model fits match candidates times folds times repeats, plus any final refit. This would be pertinent to Distinguish repeated cross-validation from single pass, but does not resolve the stated Use class weights for costly false negatives issue.
C:Check whether the dataset includes a defined target, feature scales and cluster quality criteria. Although useful for Choose unsupervised clustering without target labels, this does not establish the requested Use class weights for costly false negatives result.
E:Review split identifiers, data timestamps, metric calculation and target encoding for each candidate. It does not test the Use class weights for costly false negatives condition; it instead concerns Compare candidate models under matched evaluation conditions.
Question 365
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy. 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.
- Tune supported class weights or a cost-sensitive objective using stratified training validation.
- Pipelines fit learned transformations from training data and apply them consistently to validation samples.
- Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it.
- Each validation window occurs after its training history and reflects the intended forecast delay.
- Evaluate a suitable clustering algorithm with feature normalization and business interpretability review.
- Minority-class recall improves within the approved false-positive and intervention constraints.
Explanation
Correct Answers
A:Tune supported class weights or a cost-sensitive objective using stratified training validation. Inspect confusion matrix, class frequencies, false-negative costs and threshold behavior.
C:Cost-sensitive learning can penalize minority-class errors more heavily when the objective warrants it. A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy.
F:Minority-class recall improves within the approved false-positive and intervention constraints. A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy. The reported situation is: A fraudulent-transaction model sees only one fraudulent purchase per hundred examples and reports high overall accuracy.
Incorrect Answers
B:Pipelines fit learned transformations from training data and apply them consistently to validation samples. The relevant distinction here is Use class weights for costly false negatives; Fit preprocessing and estimator in one training pipeline is a separate concern.
D:Each validation window occurs after its training history and reflects the intended forecast delay. The scenario calls for Use class weights for costly false negatives reasoning rather than a Choose time-series validation over random folds analysis.
E:Evaluate a suitable clustering algorithm with feature normalization and business interpretability review. Although useful for Choose unsupervised clustering without target labels, this does not establish the requested Use class weights for costly false negatives result.
Question 366
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics. 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.
- Imbalanced classification requires precision, recall, costs and threshold trade-offs beyond raw accuracy.
- Transformers learn or apply feature transformations, while predictive estimators produce fitted target predictions.
- Resampling must be applied within each training fold to avoid duplicate examples leaking into validation.
- Model selection metrics are only comparable when validation population, label definition and measurement method match.
Explanation
Correct Answer
C:Resampling must be applied within each training fold to avoid duplicate examples leaking into validation. Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership. Place supported resampling inside a training-only pipeline evaluated with stratified folds.
Incorrect Answers
A:Imbalanced classification requires precision, recall, costs and threshold trade-offs beyond raw accuracy. The option addresses Choose precision recall under severe imbalance, which is distinct from the Avoid oversampling before cross-validation split issue here.
B:Transformers learn or apply feature transformations, while predictive estimators produce fitted target predictions. That concerns Differentiate sklearn estimator from transformer, while this case turns on Avoid oversampling before cross-validation split.
D:Model selection metrics are only comparable when validation population, label definition and measurement method match. The relevant distinction here is Avoid oversampling before cross-validation split; Compare candidate models under matched evaluation conditions is a separate concern.
Question 367
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics. 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.
- Count combinations within each dictionary, then add the counts across grids.
- Inspect target transform, estimator output, inverse function and expected units.
- Examine residual sum of squares, reference mean, split and metric implementation.
- Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
Explanation
Correct Answer
D:Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership. Resampling must be applied within each training fold to avoid duplicate examples leaking into validation. Cross-validation scores no longer depend on repeated minority records crossing fold boundaries.
Incorrect Answers
A:Count combinations within each dictionary, then add the counts across grids. That is a Count only valid grid combinations consideration; the immediate issue lies in Avoid oversampling before cross-validation split.
B:Inspect target transform, estimator output, inverse function and expected units. It does not test the Avoid oversampling before cross-validation split condition; it instead concerns Restore units after log-target prediction.
C:Examine residual sum of squares, reference mean, split and metric implementation. The option addresses Interpret R squared with poor baseline performance, which is distinct from the Avoid oversampling before cross-validation split issue here.
Question 368
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics. 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.
- Place supported resampling inside a training-only pipeline evaluated with stratified folds.
- Log or serialize the complete supported fitted pipeline with its dependencies.
- Convert predictions and labels consistently to the selected scale before computing MAE.
- Use random search or narrow a justified grid to meet the compute budget.
Explanation
Correct Answer
A:Place supported resampling inside a training-only pipeline evaluated with stratified folds. Resampling must be applied within each training fold to avoid duplicate examples leaking into validation. Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
Incorrect Answers
B:Log or serialize the complete supported fitted pipeline with its dependencies. Although useful for Persist fitted full pipeline not just classifier coefficients, this does not establish the requested Avoid oversampling before cross-validation split result.
C:Convert predictions and labels consistently to the selected scale before computing MAE. That is a Evaluate predictions on the intended target scale consideration; the immediate issue lies in Avoid oversampling before cross-validation split.
D:Use random search or narrow a justified grid to meet the compute budget. It does not test the Avoid oversampling before cross-validation split condition; it instead concerns Compare grid search with random search under bounded budget.
Question 369
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics. 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.
- Cross-validation scores no longer depend on repeated minority records crossing fold boundaries.
- Review sequential transforms, fitted state, train-only fitting and serialization requirements.
- Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
- Compare serialized object contents, model input signature and downstream raw-feature transformation.
- A controlled rerun produces an interpretable trial history and selected objective value.
Explanation
Correct Answers
A:Cross-validation scores no longer depend on repeated minority records crossing fold boundaries. A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics.
C:Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership. A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics.
Incorrect Answers
B:Review sequential transforms, fitted state, train-only fitting and serialization requirements. This would be pertinent to Construct reproducible sklearn training pipeline, but does not resolve the stated Avoid oversampling before cross-validation split issue. The observed condition is: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics.
D:Compare serialized object contents, model input signature and downstream raw-feature transformation. Although useful for Persist fitted full pipeline not just classifier coefficients, this does not establish the requested Avoid oversampling before cross-validation split result.
E:A controlled rerun produces an interpretable trial history and selected objective value. That is a Preserve trial reproducibility for Hyperopt search consideration; the immediate issue lies in Avoid oversampling before cross-validation split.
Question 370
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics. 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.
- Recorded model fits match candidates times folds times repeats, plus any final refit.
- Apply an appropriate inverse transform such as expm1 when the target was log1p.
- Resampling must be applied within each training fold to avoid duplicate examples leaking into validation.
- Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation.
- Cross-validation scores no longer depend on repeated minority records crossing fold boundaries.
- Place supported resampling inside a training-only pipeline evaluated with stratified folds.
Explanation
Correct Answers
C:Resampling must be applied within each training fold to avoid duplicate examples leaking into validation. A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics.
E:Cross-validation scores no longer depend on repeated minority records crossing fold boundaries. A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics. The reported situation is: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics.
F:Place supported resampling inside a training-only pipeline evaluated with stratified folds. Compare entity identifiers, repeated record hashes, resampling steps and cross-validation fold membership.
Incorrect Answers
A:Recorded model fits match candidates times folds times repeats, plus any final refit. That concerns Distinguish repeated cross-validation from single pass, while this case turns on Avoid oversampling before cross-validation split. The observed condition is: A data scientist duplicates rare fraud events before separating training folds and gets nearly perfect validation metrics.
B:Apply an appropriate inverse transform such as expm1 when the target was log1p. It addresses Restore units after log-target prediction, not the Avoid oversampling before cross-validation split requirement described.
D:Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation. This would be pertinent to Use ColumnTransformer for mixed numeric and categorical columns, but does not resolve the stated Avoid oversampling before cross-validation split issue.