Databricks Certified Machine Learning Associate Practice Test 35
Question 340
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A fraud loss feature has a long positive tail that dominates squared-error training and visual scales. 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.
- Imputation may be biased when missingness correlates with groups or outcomes and needs domain review.
- Build a labeled count plot with class percentages before selecting validation metrics.
- Apply a justified positive-domain log or log1p transform with recorded inverse semantics.
- Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid.
- Removed rows match the documented statistical rule without deleting legitimate rare events blindly.
- The transformed distribution and holdout quality improve without invalid inputs.
Explanation
Correct Answers
C:Apply a justified positive-domain log or log1p transform with recorded inverse semantics. Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
D:Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid. A fraud loss feature has a long positive tail that dominates squared-error training and visual scales.
F:The transformed distribution and holdout quality improve without invalid inputs. A fraud loss feature has a long positive tail that dominates squared-error training and visual scales. The reported situation is: A fraud loss feature has a long positive tail that dominates squared-error training and visual scales.
Incorrect Answers
A:Imputation may be biased when missingness correlates with groups or outcomes and needs domain review. That is a Check missing-not-at-random before simple imputation consideration; the immediate issue lies in Apply log transformation to positive long-tailed features.
B:Build a labeled count plot with class percentages before selecting validation metrics. It does not test the Apply log transformation to positive long-tailed features condition; it instead concerns Use categorical bar plots for class imbalance.
E:Removed rows match the documented statistical rule without deleting legitimate rare events blindly. It addresses Identify standard-deviation outlier boundaries, not the Apply log transformation to positive long-tailed features requirement described.
Question 341
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately. 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.
- IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds.
- Standard logarithms require strictly positive inputs; signed features need a separately justified transformation.
- Discrete category counts are best displayed with a category-frequency representation such as a bar chart.
- Standard-deviation screening compares values with a documented mean and standard deviation under suitable distribution assumptions.
Explanation
Correct Answer
B:Standard logarithms require strictly positive inputs; signed features need a separately justified transformation. Check range, missingness, zero and negative counts and the model's required scale. Keep the signed feature or select a documented transform that is defined over its support.
Incorrect Answers
A:IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds. The scenario calls for Avoid log transforms for signed values without a defined mapping reasoning rather than a Apply interquartile range screening on skewed values analysis.
C:Discrete category counts are best displayed with a category-frequency representation such as a bar chart. That is a Use categorical bar plots for class imbalance consideration; the immediate issue lies in Avoid log transforms for signed values without a defined mapping.
D:Standard-deviation screening compares values with a documented mean and standard deviation under suitable distribution assumptions. It does not test the Avoid log transforms for signed values without a defined mapping condition; it instead concerns Identify standard-deviation outlier boundaries.
Question 342
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately. 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 symmetry, missingness rate, variance and representative outliers in the training partition.
- Review variable type, chosen bin widths, counts and visually hidden extremes.
- Check range, missingness, zero and negative counts and the model's required scale.
- Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
Explanation
Correct Answer
C:Check range, missingness, zero and negative counts and the model's required scale. Standard logarithms require strictly positive inputs; signed features need a separately justified transformation. All transformed values remain valid and inference applies the same approved mapping.
Incorrect Answers
A:Inspect symmetry, missingness rate, variance and representative outliers in the training partition. The relevant distinction here is Avoid log transforms for signed values without a defined mapping; Distinguish mean and median under symmetric distribution is a separate concern.
B:Review variable type, chosen bin widths, counts and visually hidden extremes. This would be pertinent to Choose appropriate histogram for continuous values, but does not resolve the stated Avoid log transforms for signed values without a defined mapping issue.
D:Review model family, nominal attribute meaning, cardinality and coefficient interpretation. Although useful for Recognize appropriate use of one-hot with linear model, this does not establish the requested Avoid log transforms for signed values without a defined mapping result.
Question 343
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately. 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 a documented categorical imputation strategy learned from training data.
- Keep the signed feature or select a documented transform that is defined over its support.
- Investigate the collection process and evaluate missingness-aware modeling or constrained imputation.
- Compute supported Spark summary statistics and inspect distributions before choosing preprocessing rules.
Explanation
Correct Answer
B:Keep the signed feature or select a documented transform that is defined over its support. Standard logarithms require strictly positive inputs; signed features need a separately justified transformation. Check range, missingness, zero and negative counts and the model's required scale.
Incorrect Answers
A:Use a documented categorical imputation strategy learned from training data. That concerns Choose mode for nominal category imputation, while this case turns on Avoid log transforms for signed values without a defined mapping.
C:Investigate the collection process and evaluate missingness-aware modeling or constrained imputation. The relevant distinction here is Avoid log transforms for signed values without a defined mapping; Check missing-not-at-random before simple imputation is a separate concern.
D:Compute supported Spark summary statistics and inspect distributions before choosing preprocessing rules. This would be pertinent to Use Spark DataFrame summary statistics for EDA, but does not resolve the stated Avoid log transforms for signed values without a defined mapping issue.
Question 344
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately. 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 range, missingness, zero and negative counts and the model's required scale.
- All transformed values remain valid and inference applies the same approved mapping.
- Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
- Identical reference input rows receive identical transformed values across batches.
- Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
Explanation
Correct Answers
A:Check range, missingness, zero and negative counts and the model's required scale. A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately.
B:All transformed values remain valid and inference applies the same approved mapping. A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately.
Incorrect Answers
C:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. That concerns Apply interquartile range screening on skewed values, while this case turns on Avoid log transforms for signed values without a defined mapping.
D:Identical reference input rows receive identical transformed values across batches. It addresses Impute training and serving from one fitted statistic, not the Avoid log transforms for signed values without a defined mapping requirement described.
E:Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs. The relevant distinction here is Avoid log transforms for signed values without a defined mapping; Apply log transformation to positive long-tailed features is a separate concern.
Question 345
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately. 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.
- All transformed values remain valid and inference applies the same approved mapping.
- Keep the signed feature or select a documented transform that is defined over its support.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- Spark DataFrame summary or descriptive methods provide basic distribution indicators that need interpretation in context.
- A reviewer can assess direction, spread and outlier influence of the actual pairing.
- Standard logarithms require strictly positive inputs; signed features need a separately justified transformation.
Explanation
Correct Answers
A:All transformed values remain valid and inference applies the same approved mapping. A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately. The reported situation is: A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately.
B:Keep the signed feature or select a documented transform that is defined over its support. Check range, missingness, zero and negative counts and the model's required scale.
F:Standard logarithms require strictly positive inputs; signed features need a separately justified transformation. A financial net-flow feature contains refunds as negative numbers and an analyst applies ordinary natural logarithm indiscriminately.
Incorrect Answers
C:Encode payment methods with a fitted categorical transformer and controlled unknown handling. It does not test the Avoid log transforms for signed values without a defined mapping condition; it instead concerns Recognize appropriate use of one-hot with linear model.
D:Spark DataFrame summary or descriptive methods provide basic distribution indicators that need interpretation in context. The option addresses Use Spark DataFrame summary statistics for EDA, which is distinct from the Avoid log transforms for signed values without a defined mapping issue here.
E:A reviewer can assess direction, spread and outlier influence of the actual pairing. That concerns Compare continuous features with scatter evidence, while this case turns on Avoid log transforms for signed values without a defined mapping.
Question 346
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor. 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.
- Binary classification estimates membership in discrete classes and uses classification evaluation rather than numeric-error metrics.
- Temporal prediction evaluation must preserve chronology so future information never enters earlier training periods.
- MAE averages absolute prediction errors and is less sensitive to large residuals than RMSE.
- Regression predicts continuous outcomes when the business target is a numeric measurement.
Explanation
Correct Answer
A:Binary classification estimates membership in discrete classes and uses classification evaluation rather than numeric-error metrics. Inspect the target definition, labeled outcomes and intended decision threshold. Train an appropriate classifier and compare its predictions against held-out churn labels.
Incorrect Answers
B:Temporal prediction evaluation must preserve chronology so future information never enters earlier training periods. The scenario calls for Select binary classification instead of regression reasoning rather than a Choose time-series validation over random folds analysis.
C:MAE averages absolute prediction errors and is less sensitive to large residuals than RMSE. Although useful for Prefer MAE when outlier tolerance is important, this does not establish the requested Select binary classification instead of regression result.
D:Regression predicts continuous outcomes when the business target is a numeric measurement. That is a Select regression for continuous numerical target consideration; the immediate issue lies in Select binary classification instead of regression.
Question 347
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor. 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.
- Review sequential transforms, fitted state, train-only fitting and serialization requirements.
- Inspect the target definition, labeled outcomes and intended decision threshold.
- Count combinations within each dictionary, then add the counts across grids.
- Compare serialized object contents, model input signature and downstream raw-feature transformation.
Explanation
Correct Answer
B:Inspect the target definition, labeled outcomes and intended decision threshold. Binary classification estimates membership in discrete classes and uses classification evaluation rather than numeric-error metrics. Evaluation reports classification metrics and the output can drive the stated retention decision.
Incorrect Answers
A:Review sequential transforms, fitted state, train-only fitting and serialization requirements. It addresses Construct reproducible sklearn training pipeline, not the Select binary classification instead of regression requirement described.
C:Count combinations within each dictionary, then add the counts across grids. This would be pertinent to Count only valid grid combinations, but does not resolve the stated Select binary classification instead of regression issue.
D:Compare serialized object contents, model input signature and downstream raw-feature transformation. The scenario calls for Select binary classification instead of regression reasoning rather than a Persist fitted full pipeline not just classifier coefficients analysis.
Question 348
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor. 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.
- Increase justified model capacity or improve useful features with controlled validation.
- Train an appropriate classifier and compare its predictions against held-out churn labels.
- Convert predictions and labels consistently to the selected scale before computing MAE.
- Calculate precision as TP over TP plus FP and compare against alert-review capacity.
Explanation
Correct Answer
B:Train an appropriate classifier and compare its predictions against held-out churn labels. Binary classification estimates membership in discrete classes and uses classification evaluation rather than numeric-error metrics. Inspect the target definition, labeled outcomes and intended decision threshold.
Incorrect Answers
A:Increase justified model capacity or improve useful features with controlled validation. The option addresses Identify underfitting from weak train and validation scores, which is distinct from the Select binary classification instead of regression issue here.
C:Convert predictions and labels consistently to the selected scale before computing MAE. It addresses Evaluate predictions on the intended target scale, not the Select binary classification instead of regression requirement described. The observed condition is: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor.
D:Calculate precision as TP over TP plus FP and compare against alert-review capacity. The relevant distinction here is Select binary classification instead of regression; Compute precision from confusion matrix values is a separate concern.
Question 349
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor. 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 whether the dataset includes a defined target, feature scales and cluster quality criteria.
- Evaluation reports classification metrics and the output can drive the stated retention decision.
- Inspect the target definition, labeled outcomes and intended decision threshold.
- Predictions are reported in original unit scale with correct error calculation.
- Inspect column dtypes, missingness, selected transformers and the feature-name mapping.
Explanation
Correct Answers
B:Evaluation reports classification metrics and the output can drive the stated retention decision. A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor.
C:Inspect the target definition, labeled outcomes and intended decision threshold. A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor.
Incorrect Answers
A:Check whether the dataset includes a defined target, feature scales and cluster quality criteria. That is a Choose unsupervised clustering without target labels consideration; the immediate issue lies in Select binary classification instead of regression.
D:Predictions are reported in original unit scale with correct error calculation. That concerns Restore units after log-target prediction, while this case turns on Select binary classification instead of regression.
E:Inspect column dtypes, missingness, selected transformers and the feature-name mapping. It addresses Use ColumnTransformer for mixed numeric and categorical columns, not the Select binary classification instead of regression requirement described.
Question 350
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor. 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.
- Train an appropriate classifier and compare its predictions against held-out churn labels.
- A controlled rerun produces an interpretable trial history and selected objective value.
- Evaluation reports classification metrics and the output can drive the stated retention decision.
- R-squared compares residual squared error against a constant-mean baseline and may be negative on holdout data.
- Use a compatible stratified split and adjust fold count if positive examples are too few.
- Binary classification estimates membership in discrete classes and uses classification evaluation rather than numeric-error metrics.
Explanation
Correct Answers
A:Train an appropriate classifier and compare its predictions against held-out churn labels. Inspect the target definition, labeled outcomes and intended decision threshold.
C:Evaluation reports classification metrics and the output can drive the stated retention decision. A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor. The reported situation is: A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor.
F:Binary classification estimates membership in discrete classes and uses classification evaluation rather than numeric-error metrics. A subscription team needs to predict whether an account will churn, but its prototype optimizes a continuous-price regressor.
Incorrect Answers
B:A controlled rerun produces an interpretable trial history and selected objective value. Although useful for Preserve trial reproducibility for Hyperopt search, this does not establish the requested Select binary classification instead of regression result.
D:R-squared compares residual squared error against a constant-mean baseline and may be negative on holdout data. It does not test the Select binary classification instead of regression condition; it instead concerns Interpret R squared with poor baseline performance.
E:Use a compatible stratified split and adjust fold count if positive examples are too few. The option addresses Use stratified folds for rare classification target, which is distinct from the Select binary classification instead of regression issue here.