Databricks Certified Machine Learning Associate Practice Test 40
Question 390
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A classifier notebook relies on a manual sequence of null filling, encoding and model fitting spread across several cells. 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.
- Create a versioned sklearn Pipeline with ordered preprocessing and classifier stages.
- A fitted pipeline can bind preprocessing and estimator stages into a reproducible training and inference workflow.
- When the target is log transformed, predictions require the correct inverse transform before business interpretation.
- A fresh process loads the pipeline and predicts correctly from raw reference inputs.
- Use an appropriate cross-validation strategy with transformations fitted within each fold.
- The optimizer selects later trials using recorded earlier observations and identifies a validated candidate.
Explanation
Correct Answers
A:Create a versioned sklearn Pipeline with ordered preprocessing and classifier stages. Review sequential transforms, fitted state, train-only fitting and serialization requirements.
B:A fitted pipeline can bind preprocessing and estimator stages into a reproducible training and inference workflow. A classifier notebook relies on a manual sequence of null filling, encoding and model fitting spread across several cells.
D:A fresh process loads the pipeline and predicts correctly from raw reference inputs. A classifier notebook relies on a manual sequence of null filling, encoding and model fitting spread across several cells. The reported situation is: A classifier notebook relies on a manual sequence of null filling, encoding and model fitting spread across several cells.
Incorrect Answers
C:When the target is log transformed, predictions require the correct inverse transform before business interpretation. It does not test the Construct reproducible sklearn training pipeline condition; it instead concerns Restore units after log-target prediction.
E:Use an appropriate cross-validation strategy with transformations fitted within each fold. That concerns Prefer cross-validation when sample size is limited, while this case turns on Construct reproducible sklearn training pipeline. The reported situation is: A classifier notebook relies on a manual sequence of null filling, encoding and model fitting spread across several cells.
F:The optimizer selects later trials using recorded earlier observations and identifies a validated candidate. It addresses Use Bayesian search for sequential optimization budget, not the Construct reproducible sklearn training pipeline requirement described. The observed condition is: A classifier notebook relies on a manual sequence of null filling, encoding and model fitting spread across several cells.
Question 391
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting. 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.
- Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation.
- Transformers learn or apply feature transformations, while predictive estimators produce fitted target predictions.
- GridSearchCV evaluates the Cartesian product of candidate choices on each fold, before optional final refit.
- Temporal prediction evaluation must preserve chronology so future information never enters earlier training periods.
Explanation
Correct Answer
A:Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation. Inspect column dtypes, missingness, selected transformers and the feature-name mapping. Build a ColumnTransformer routing numeric values to numeric processing and categories to a fitted encoder.
Incorrect Answers
B:Transformers learn or apply feature transformations, while predictive estimators produce fitted target predictions. The scenario calls for Use ColumnTransformer for mixed numeric and categorical columns reasoning rather than a Differentiate sklearn estimator from transformer analysis.
C:GridSearchCV evaluates the Cartesian product of candidate choices on each fold, before optional final refit. Although useful for Count grid-search fits excluding optional refit, this does not establish the requested Use ColumnTransformer for mixed numeric and categorical columns result.
D:Temporal prediction evaluation must preserve chronology so future information never enters earlier training periods. That is a Choose time-series validation over random folds consideration; the immediate issue lies in Use ColumnTransformer for mixed numeric and categorical columns.
Question 392
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting. 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 serialized object contents, model input signature and downstream raw-feature transformation.
- Check the loss sign, search space, trial results, selected metric and supported runtime compatibility.
- Inspect column dtypes, missingness, selected transformers and the feature-name mapping.
- Review sequential transforms, fitted state, train-only fitting and serialization requirements.
Explanation
Correct Answer
C:Inspect column dtypes, missingness, selected transformers and the feature-name mapping. Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation. Training completes on mixed features and serving reproduces the same output feature schema.
Incorrect Answers
A:Compare serialized object contents, model input signature and downstream raw-feature transformation. It addresses Persist fitted full pipeline not just classifier coefficients, not the Use ColumnTransformer for mixed numeric and categorical columns requirement described.
B:Check the loss sign, search space, trial results, selected metric and supported runtime compatibility. The relevant distinction here is Use ColumnTransformer for mixed numeric and categorical columns; Interpret Hyperopt fmin objective and search space is a separate concern.
D:Review sequential transforms, fitted state, train-only fitting and serialization requirements. The scenario calls for Use ColumnTransformer for mixed numeric and categorical columns reasoning rather than a Construct reproducible sklearn training pipeline analysis. The observed condition is: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting.
Question 393
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting. 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.
- Interpret RMSE with business units and compare against an accepted baseline.
- Log or serialize the complete supported fitted pipeline with its dependencies.
- Build a ColumnTransformer routing numeric values to numeric processing and categories to a fitted encoder.
- Multiply candidate combinations by folds and separately account for the refit step.
Explanation
Correct Answer
C:Build a ColumnTransformer routing numeric values to numeric processing and categories to a fitted encoder. Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation. Inspect column dtypes, missingness, selected transformers and the feature-name mapping.
Incorrect Answers
A:Interpret RMSE with business units and compare against an accepted baseline. The option addresses Relate RMSE to target units and large errors, which is distinct from the Use ColumnTransformer for mixed numeric and categorical columns issue here.
B:Log or serialize the complete supported fitted pipeline with its dependencies. That concerns Persist fitted full pipeline not just classifier coefficients, while this case turns on Use ColumnTransformer for mixed numeric and categorical columns.
D:Multiply candidate combinations by folds and separately account for the refit step. The relevant distinction here is Use ColumnTransformer for mixed numeric and categorical columns; Count grid-search fits excluding optional refit is a separate concern.
Question 394
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting. 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.
- Training completes on mixed features and serving reproduces the same output feature schema.
- Check target units, residual magnitudes, target range and baseline error.
- Inspect column dtypes, missingness, selected transformers and the feature-name mapping.
- The published error uses matching revenue units and is reproducible.
- Compare requested output units, target distribution and the loss function of candidate estimators.
Explanation
Correct Answers
A:Training completes on mixed features and serving reproduces the same output feature schema. A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting.
C:Inspect column dtypes, missingness, selected transformers and the feature-name mapping. A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting.
Incorrect Answers
B:Check target units, residual magnitudes, target range and baseline error. It does not test the Use ColumnTransformer for mixed numeric and categorical columns condition; it instead concerns Relate RMSE to target units and large errors.
D:The published error uses matching revenue units and is reproducible. That concerns Evaluate predictions on the intended target scale, while this case turns on Use ColumnTransformer for mixed numeric and categorical columns.
E:Compare requested output units, target distribution and the loss function of candidate estimators. It addresses Select regression for continuous numerical target, not the Use ColumnTransformer for mixed numeric and categorical columns requirement described.
Question 395
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting. 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.
- Build a ColumnTransformer routing numeric values to numeric processing and categories to a fitted encoder.
- Training completes on mixed features and serving reproduces the same output feature schema.
- Run a supported sequential search with a documented evaluation objective and budget.
- Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation.
- Resampling must be applied within each training fold to avoid duplicate examples leaking into validation.
- The decision maker understands the practical magnitude and severity sensitivity of model errors.
Explanation
Correct Answers
A:Build a ColumnTransformer routing numeric values to numeric processing and categories to a fitted encoder. Inspect column dtypes, missingness, selected transformers and the feature-name mapping.
B:Training completes on mixed features and serving reproduces the same output feature schema. A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting. The reported situation is: A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting.
D:Mixed-type datasets often require separate numeric and categorical preprocessing paths before estimation. A model uses StandardScaler on a dataset containing raw string product categories and fails during fitting.
Incorrect Answers
C:Run a supported sequential search with a documented evaluation objective and budget. That is a Use Bayesian search for sequential optimization budget consideration; the immediate issue lies in Use ColumnTransformer for mixed numeric and categorical columns.
E:Resampling must be applied within each training fold to avoid duplicate examples leaking into validation. The option addresses Avoid oversampling before cross-validation split, which is distinct from the Use ColumnTransformer for mixed numeric and categorical columns issue here.
F:The decision maker understands the practical magnitude and severity sensitivity of model errors. That concerns Relate RMSE to target units and large errors, while this case turns on Use ColumnTransformer for mixed numeric and categorical columns.
Question 396
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs. 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.
- Regression predicts continuous outcomes when the business target is a numeric measurement.
- Transformers learn or apply feature transformations, while predictive estimators produce fitted target predictions.
- The complete preprocessing-plus-estimator pipeline is the unit needed for consistent inference.
- Repeated cross-validation re-evaluates each candidate over every fold of every repetition.
Explanation
Correct Answer
C:The complete preprocessing-plus-estimator pipeline is the unit needed for consistent inference. Compare serialized object contents, model input signature and downstream raw-feature transformation. Log or serialize the complete supported fitted pipeline with its dependencies.
Incorrect Answers
A:Regression predicts continuous outcomes when the business target is a numeric measurement. The relevant distinction here is Persist fitted full pipeline not just classifier coefficients; Select regression for continuous numerical target is a separate concern.
B:Transformers learn or apply feature transformations, while predictive estimators produce fitted target predictions. This would be pertinent to Differentiate sklearn estimator from transformer, but does not resolve the stated Persist fitted full pipeline not just classifier coefficients issue.
D:Repeated cross-validation re-evaluates each candidate over every fold of every repetition. Although useful for Distinguish repeated cross-validation from single pass, this does not establish the requested Persist fitted full pipeline not just classifier coefficients result.
Question 397
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs. 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.
- Measure worker resource needs, CPU and memory availability, cluster capacity and queue wait.
- Compare serialized object contents, model input signature and downstream raw-feature transformation.
- Inspect column dtypes, missingness, selected transformers and the feature-name mapping.
- Compute candidate combination count and the allowed number of fits with cross-validation.
Explanation
Correct Answer
B:Compare serialized object contents, model input signature and downstream raw-feature transformation. The complete preprocessing-plus-estimator pipeline is the unit needed for consistent inference. Predictions on a known raw reference batch match those from the original training session.
Incorrect Answers
A:Measure worker resource needs, CPU and memory availability, cluster capacity and queue wait. That concerns Bound tuning concurrency against cluster capacity, while this case turns on Persist fitted full pipeline not just classifier coefficients.
C:Inspect column dtypes, missingness, selected transformers and the feature-name mapping. The relevant distinction here is Persist fitted full pipeline not just classifier coefficients; Use ColumnTransformer for mixed numeric and categorical columns is a separate concern.
D:Compute candidate combination count and the allowed number of fits with cross-validation. This would be pertinent to Compare grid search with random search under bounded budget, but does not resolve the stated Persist fitted full pipeline not just classifier coefficients issue.
Question 398
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. The observed issue is: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs. 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.
- Create a versioned sklearn Pipeline with ordered preprocessing and classifier stages.
- Run a supported sequential search with a documented evaluation objective and budget.
- Compute cross-validation work from the sum of valid parameter combinations.
- Log or serialize the complete supported fitted pipeline with its dependencies.
Explanation
Correct Answer
D:Log or serialize the complete supported fitted pipeline with its dependencies. The complete preprocessing-plus-estimator pipeline is the unit needed for consistent inference. Compare serialized object contents, model input signature and downstream raw-feature transformation.
Incorrect Answers
A:Create a versioned sklearn Pipeline with ordered preprocessing and classifier stages. It does not test the Persist fitted full pipeline not just classifier coefficients condition; it instead concerns Construct reproducible sklearn training pipeline.
B:Run a supported sequential search with a documented evaluation objective and budget. The option addresses Use Bayesian search for sequential optimization budget, which is distinct from the Persist fitted full pipeline not just classifier coefficients 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 Persist fitted full pipeline not just classifier coefficients. The observed condition is: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs.
Question 399
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs. 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.
- The decision maker understands the practical magnitude and severity sensitivity of model errors.
- Compare serialized object contents, model input signature and downstream raw-feature transformation.
- Inspect target transform, estimator output, inverse function and expected units.
- Count combinations within each dictionary, then add the counts across grids.
- Predictions on a known raw reference batch match those from the original training session.
Explanation
Correct Answers
B:Compare serialized object contents, model input signature and downstream raw-feature transformation. An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs.
E:Predictions on a known raw reference batch match those from the original training session. An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs.
Incorrect Answers
A:The decision maker understands the practical magnitude and severity sensitivity of model errors. Although useful for Relate RMSE to target units and large errors, this does not establish the requested Persist fitted full pipeline not just classifier coefficients result.
C:Inspect target transform, estimator output, inverse function and expected units. It does not test the Persist fitted full pipeline not just classifier coefficients condition; it instead concerns Restore units after log-target prediction.
D:Count combinations within each dictionary, then add the counts across grids. The option addresses Count only valid grid combinations, which is distinct from the Persist fitted full pipeline not just classifier coefficients issue here.
Question 400
During a Databricks model development review, a data scientist evaluates algorithms, tuning, training pipelines and metrics. A separate control validation examines: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs. 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.
- Log or serialize the complete supported fitted pipeline with its dependencies.
- Recorded model fits match candidates times folds times repeats, plus any final refit.
- Interpret RMSE with business units and compare against an accepted baseline.
- A fitted pipeline can bind preprocessing and estimator stages into a reproducible training and inference workflow.
- The complete preprocessing-plus-estimator pipeline is the unit needed for consistent inference.
- Predictions on a known raw reference batch match those from the original training session.
Explanation
Correct Answers
A:Log or serialize the complete supported fitted pipeline with its dependencies. Compare serialized object contents, model input signature and downstream raw-feature transformation.
E:The complete preprocessing-plus-estimator pipeline is the unit needed for consistent inference. An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs.
F:Predictions on a known raw reference batch match those from the original training session. An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs. The reported situation is: An API reloads a saved classifier but forgets that the training process had scaled and encoded its inputs.
Incorrect Answers
B:Recorded model fits match candidates times folds times repeats, plus any final refit. The scenario calls for Persist fitted full pipeline not just classifier coefficients reasoning rather than a Distinguish repeated cross-validation from single pass analysis.
C:Interpret RMSE with business units and compare against an accepted baseline. Although useful for Relate RMSE to target units and large errors, this does not establish the requested Persist fitted full pipeline not just classifier coefficients result.
D:A fitted pipeline can bind preprocessing and estimator stages into a reproducible training and inference workflow. That is a Construct reproducible sklearn training pipeline consideration; the immediate issue lies in Persist fitted full pipeline not just classifier coefficients.