Databricks Certified Machine Learning Associate Practice Test 33
Question 320
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A model fails at inference when a new store region appears outside the training categories. 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.
- Fitted encoders are learned from the training partition and applied unchanged to evaluation data.
- Configure an approved unknown-category treatment and validate pipeline compatibility.
- Use representative profiling and targeted Spark aggregates before finalizing the feature treatment.
- Validation metrics and distribution checks show acceptable impact and consistent transformations.
- Previously unseen categories produce a documented safe encoding rather than a runtime failure.
- Categorical encoders must define how unseen categories are handled during serving.
Explanation
Correct Answers
B:Configure an approved unknown-category treatment and validate pipeline compatibility. Check vocabulary learned at training, unknown handling policy and source changes.
E:Previously unseen categories produce a documented safe encoding rather than a runtime failure. A model fails at inference when a new store region appears outside the training categories. The reported situation is: A model fails at inference when a new store region appears outside the training categories.
F:Categorical encoders must define how unseen categories are handled during serving. A model fails at inference when a new store region appears outside the training categories.
Incorrect Answers
A:Fitted encoders are learned from the training partition and applied unchanged to evaluation data. It addresses Avoid fitting encoders on held-out test data, not the Handle unseen categories in fitted one-hot pipeline requirement described.
C:Use representative profiling and targeted Spark aggregates before finalizing the feature treatment. This would be pertinent to Use data profile visualization only when appropriately supported, but does not resolve the stated Handle unseen categories in fitted one-hot pipeline issue.
D:Validation metrics and distribution checks show acceptable impact and consistent transformations. The scenario calls for Handle unseen categories in fitted one-hot pipeline reasoning rather than a Distinguish mean and median under symmetric distribution analysis.
Question 321
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A student selects one-hot categories by combining training and holdout data before splitting their experiment. 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.
- Fitted encoders are learned from the training partition and applied unchanged to evaluation data.
- Histograms summarize continuous numeric values into intervals and expose skew and potential modes.
- Spark DataFrame summary or descriptive methods provide basic distribution indicators that need interpretation in context.
- Imputation may be biased when missingness correlates with groups or outcomes and needs domain review.
Explanation
Correct Answer
A:Fitted encoders are learned from the training partition and applied unchanged to evaluation data. Inspect preprocessing fit operations, split order and encoder category list provenance. Put the encoder inside a pipeline fitted only on training observations.
Incorrect Answers
B:Histograms summarize continuous numeric values into intervals and expose skew and potential modes. That concerns Choose appropriate histogram for continuous values, while this case turns on Avoid fitting encoders on held-out test data.
C:Spark DataFrame summary or descriptive methods provide basic distribution indicators that need interpretation in context. It addresses Use Spark DataFrame summary statistics for EDA, not the Avoid fitting encoders on held-out test data requirement described.
D:Imputation may be biased when missingness correlates with groups or outcomes and needs domain review. The relevant distinction here is Avoid fitting encoders on held-out test data; Check missing-not-at-random before simple imputation is a separate concern.
Question 322
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A student selects one-hot categories by combining training and holdout data before splitting their experiment. 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.
- Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
- Inspect preprocessing fit operations, split order and encoder category list provenance.
- Inspect segment-by-region counts, encoding dictionary and category frequencies.
- Review variable type, chosen bin widths, counts and visually hidden extremes.
Explanation
Correct Answer
B:Inspect preprocessing fit operations, split order and encoder category list provenance. Fitted encoders are learned from the training partition and applied unchanged to evaluation data. The held-out evaluation remains untouched by vocabulary learning until scoring.
Incorrect Answers
A:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. That is a Apply interquartile range screening on skewed values consideration; the immediate issue lies in Avoid fitting encoders on held-out test data.
C:Inspect segment-by-region counts, encoding dictionary and category frequencies. The option addresses Compare categorical features with contingency table, which is distinct from the Avoid fitting encoders on held-out test data issue here.
D:Review variable type, chosen bin widths, counts and visually hidden extremes. That concerns Choose appropriate histogram for continuous values, while this case turns on Avoid fitting encoders on held-out test data. The observed condition is: A student selects one-hot categories by combining training and holdout data before splitting their experiment.
Question 323
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A student selects one-hot categories by combining training and holdout data before splitting their experiment. 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.
- Put the encoder inside a pipeline fitted only on training observations.
- Create a distribution plot with defensible binning and compare summary quantiles.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- Exclude unsuitable raw identifiers or use a justified alternative feature representation.
Explanation
Correct Answer
A:Put the encoder inside a pipeline fitted only on training observations. Fitted encoders are learned from the training partition and applied unchanged to evaluation data. Inspect preprocessing fit operations, split order and encoder category list provenance.
Incorrect Answers
B:Create a distribution plot with defensible binning and compare summary quantiles. Although useful for Choose appropriate histogram for continuous values, this does not establish the requested Avoid fitting encoders on held-out test data result.
C:Encode payment methods with a fitted categorical transformer and controlled unknown handling. That is a Recognize appropriate use of one-hot with linear model consideration; the immediate issue lies in Avoid fitting encoders on held-out test data.
D:Exclude unsuitable raw identifiers or use a justified alternative feature representation. It does not test the Avoid fitting encoders on held-out test data condition; it instead concerns Avoid one-hot explosion for very high-cardinality identifiers.
Question 324
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A student selects one-hot categories by combining training and holdout data before splitting their experiment. 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.
- Conditional category frequencies describe the relationship without pretending identifiers are ordinal.
- Compute group means, standard deviations and the intended threshold multipliers.
- Inspect preprocessing fit operations, split order and encoder category list provenance.
- Compare predictive performance and fairness with and without an indicator under the same split.
- The held-out evaluation remains untouched by vocabulary learning until scoring.
Explanation
Correct Answers
C:Inspect preprocessing fit operations, split order and encoder category list provenance. A student selects one-hot categories by combining training and holdout data before splitting their experiment.
E:The held-out evaluation remains untouched by vocabulary learning until scoring. A student selects one-hot categories by combining training and holdout data before splitting their experiment.
Incorrect Answers
A:Conditional category frequencies describe the relationship without pretending identifiers are ordinal. The relevant distinction here is Avoid fitting encoders on held-out test data; Compare categorical features with contingency table is a separate concern.
B:Compute group means, standard deviations and the intended threshold multipliers. This would be pertinent to Identify standard-deviation outlier boundaries, but does not resolve the stated Avoid fitting encoders on held-out test data issue.
D:Compare predictive performance and fairness with and without an indicator under the same split. Although useful for Use missing indicator with median-imputed feature, this does not establish the requested Avoid fitting encoders on held-out test data result.
Question 325
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A student selects one-hot categories by combining training and holdout data before splitting their experiment. 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.
- Put the encoder inside a pipeline fitted only on training observations.
- Fitted encoders are learned from the training partition and applied unchanged to evaluation data.
- The held-out evaluation remains untouched by vocabulary learning until scoring.
- One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators.
- Missing departments resolve to a meaningful valid label or approved unknown code.
- Use an IQR-based review rule with documented exceptions for legitimate high values.
Explanation
Correct Answers
A:Put the encoder inside a pipeline fitted only on training observations. Inspect preprocessing fit operations, split order and encoder category list provenance.
B:Fitted encoders are learned from the training partition and applied unchanged to evaluation data. A student selects one-hot categories by combining training and holdout data before splitting their experiment.
C:The held-out evaluation remains untouched by vocabulary learning until scoring. A student selects one-hot categories by combining training and holdout data before splitting their experiment. The reported situation is: A student selects one-hot categories by combining training and holdout data before splitting their experiment.
Incorrect Answers
D:One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators. This would be pertinent to Recognize appropriate use of one-hot with linear model, but does not resolve the stated Avoid fitting encoders on held-out test data issue.
E:Missing departments resolve to a meaningful valid label or approved unknown code. The scenario calls for Avoid fitting encoders on held-out test data reasoning rather than a Choose mode for nominal category imputation analysis.
F:Use an IQR-based review rule with documented exceptions for legitimate high values. Although useful for Apply interquartile range screening on skewed values, this does not establish the requested Avoid fitting encoders on held-out test data result.
Question 326
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token. 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.
- One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal.
- Categorical profiling requires counts and frequencies rather than assuming numerical moments apply to labels.
- Median imputation is often more robust to extreme numeric values than mean imputation in skewed data.
- Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid.
Explanation
Correct Answer
A:One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal. Measure cardinality, frequency distribution, expected future identifiers and memory costs. Exclude unsuitable raw identifiers or use a justified alternative feature representation.
Incorrect Answers
B:Categorical profiling requires counts and frequencies rather than assuming numerical moments apply to labels. The option addresses Distinguish numeric summary from categorical frequency, which is distinct from the Avoid one-hot explosion for very high-cardinality identifiers issue here.
C:Median imputation is often more robust to extreme numeric values than mean imputation in skewed data. That concerns Prefer median for skewed numeric imputation, while this case turns on Avoid one-hot explosion for very high-cardinality identifiers.
D:Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid. It addresses Apply log transformation to positive long-tailed features, not the Avoid one-hot explosion for very high-cardinality identifiers requirement described.
Question 327
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token. 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 category frequency, missing-value origin and unknown-category business meaning.
- Measure cardinality, frequency distribution, expected future identifiers and memory costs.
- Compute group means, standard deviations and the intended threshold multipliers.
- Compare Spark schema types, frequency counts and missing values for the status category.
Explanation
Correct Answer
B:Measure cardinality, frequency distribution, expected future identifiers and memory costs. One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal. Training memory and validation behavior improve without dependence on row-specific IDs.
Incorrect Answers
A:Review category frequency, missing-value origin and unknown-category business meaning. Although useful for Choose mode for nominal category imputation, this does not establish the requested Avoid one-hot explosion for very high-cardinality identifiers result.
C:Compute group means, standard deviations and the intended threshold multipliers. It does not test the Avoid one-hot explosion for very high-cardinality identifiers condition; it instead concerns Identify standard-deviation outlier boundaries.
D:Compare Spark schema types, frequency counts and missing values for the status category. The option addresses Distinguish numeric summary from categorical frequency, which is distinct from the Avoid one-hot explosion for very high-cardinality identifiers issue here.
Question 328
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token. 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.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- Investigate the collection process and evaluate missingness-aware modeling or constrained imputation.
- Plot paired continuous values and compute a justified association measure.
- Exclude unsuitable raw identifiers or use a justified alternative feature representation.
Explanation
Correct Answer
D:Exclude unsuitable raw identifiers or use a justified alternative feature representation. One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal. Measure cardinality, frequency distribution, expected future identifiers and memory costs.
Incorrect Answers
A:Encode payment methods with a fitted categorical transformer and controlled unknown handling. This would be pertinent to Recognize appropriate use of one-hot with linear model, but does not resolve the stated Avoid one-hot explosion for very high-cardinality identifiers issue.
B:Investigate the collection process and evaluate missingness-aware modeling or constrained imputation. The scenario calls for Avoid one-hot explosion for very high-cardinality identifiers reasoning rather than a Check missing-not-at-random before simple imputation analysis.
C:Plot paired continuous values and compute a justified association measure. Although useful for Compare continuous features with scatter evidence, this does not establish the requested Avoid one-hot explosion for very high-cardinality identifiers result.
Question 329
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token. 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 paired observations, scatter plots, extreme leverage points and correlation assumptions.
- Check label type, class counts, percentages and whether categories are missing or encoded inconsistently.
- All transformed values remain valid and inference applies the same approved mapping.
- Training memory and validation behavior improve without dependence on row-specific IDs.
- Measure cardinality, frequency distribution, expected future identifiers and memory costs.
Explanation
Correct Answers
D:Training memory and validation behavior improve without dependence on row-specific IDs. A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token.
E:Measure cardinality, frequency distribution, expected future identifiers and memory costs. A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token.
Incorrect Answers
A:Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions. It addresses Compare continuous features with scatter evidence, not the Avoid one-hot explosion for very high-cardinality identifiers requirement described.
B:Check label type, class counts, percentages and whether categories are missing or encoded inconsistently. The relevant distinction here is Avoid one-hot explosion for very high-cardinality identifiers; Use categorical bar plots for class imbalance is a separate concern.
C:All transformed values remain valid and inference applies the same approved mapping. This would be pertinent to Avoid log transforms for signed values without a defined mapping, but does not resolve the stated Avoid one-hot explosion for very high-cardinality identifiers issue.
Question 330
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token. 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.
- Exclude unsuitable raw identifiers or use a justified alternative feature representation.
- Plot paired continuous values and compute a justified association measure.
- One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal.
- Training memory and validation behavior improve without dependence on row-specific IDs.
- Imputation may be biased when missingness correlates with groups or outcomes and needs domain review.
Explanation
Correct Answers
B:Exclude unsuitable raw identifiers or use a justified alternative feature representation. Measure cardinality, frequency distribution, expected future identifiers and memory costs.
D:One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal. A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token.
E:Training memory and validation behavior improve without dependence on row-specific IDs. A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token. The reported situation is: A dataset has a unique customer token for each row but the team proposes a one-hot vector for every token.
Incorrect Answers
A:All transformed values remain valid and inference applies the same approved mapping. The option addresses Avoid log transforms for signed values without a defined mapping, which is distinct from the Avoid one-hot explosion for very high-cardinality identifiers issue here.
C:Plot paired continuous values and compute a justified association measure. It addresses Compare continuous features with scatter evidence, not the Avoid one-hot explosion for very high-cardinality identifiers requirement described.
F:Imputation may be biased when missingness correlates with groups or outcomes and needs domain review. The scenario calls for Avoid one-hot explosion for very high-cardinality identifiers reasoning rather than a Check missing-not-at-random before simple imputation analysis.