Databricks Certified Machine Learning Associate Practice Test 34
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.
Question 331
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships. 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.
- Discrete category counts are best displayed with a category-frequency representation such as a bar chart.
- Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations.
- One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators.
- One-hot encoding represents nominal categories without imposing arbitrary numeric order.
Explanation
Correct Answer
C:One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators. Review model family, nominal attribute meaning, cardinality and coefficient interpretation. Encode payment methods with a fitted categorical transformer and controlled unknown handling.
Incorrect Answers
A: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 Recognize appropriate use of one-hot with linear model.
B:Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations. It does not test the Recognize appropriate use of one-hot with linear model condition; it instead concerns Use data profile visualization only when appropriately supported.
D:One-hot encoding represents nominal categories without imposing arbitrary numeric order. That concerns One-hot encode nominal categories without ordinal order, while this case turns on Recognize appropriate use of one-hot with linear model.
Question 332
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships. 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 missing rates by source, population segment and outcome under appropriate privacy controls.
- Check vocabulary learned at training, unknown handling policy and source changes.
- Inspect row counts, null counts, summary percentiles, standard deviation and skew-sensitive measures.
- Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
Explanation
Correct Answer
D:Review model family, nominal attribute meaning, cardinality and coefficient interpretation. One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators. The fitted model uses indicators without implying a hierarchy between payment channels.
Incorrect Answers
A:Compare missing rates by source, population segment and outcome under appropriate privacy controls. The scenario calls for Recognize appropriate use of one-hot with linear model reasoning rather than a Check missing-not-at-random before simple imputation analysis.
B:Check vocabulary learned at training, unknown handling policy and source changes. Although useful for Handle unseen categories in fitted one-hot pipeline, this does not establish the requested Recognize appropriate use of one-hot with linear model result.
C:Inspect row counts, null counts, summary percentiles, standard deviation and skew-sensitive measures. That is a Use Spark DataFrame summary statistics for EDA consideration; the immediate issue lies in Recognize appropriate use of one-hot with linear model.
Question 333
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships. The review distinguishes symptoms from root cause. The owner requires a proportionate, authorized technical correction that can be verified independently. Which scoped solution approach BEST resolves the issue without unnecessary operational risk? Choose ONE best answer.
- Apply a justified standardized boundary and verify behavior for skewed or heavy-tailed groups.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- Fit a median imputer on training observations and apply it consistently to validation and serving.
- Keep the signed feature or select a documented transform that is defined over its support.
Explanation
Correct Answer
B:Encode payment methods with a fitted categorical transformer and controlled unknown handling. One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators. Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
Incorrect Answers
A:Apply a justified standardized boundary and verify behavior for skewed or heavy-tailed groups. The relevant distinction here is Recognize appropriate use of one-hot with linear model; Identify standard-deviation outlier boundaries is a separate concern.
C:Fit a median imputer on training observations and apply it consistently to validation and serving. The scenario calls for Recognize appropriate use of one-hot with linear model reasoning rather than a Prefer median for skewed numeric imputation analysis.
D:Keep the signed feature or select a documented transform that is defined over its support. Although useful for Avoid log transforms for signed values without a defined mapping, this does not establish the requested Recognize appropriate use of one-hot with linear model result.
Question 334
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships. 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.
- Residual group error is measured and missingness handling has a documented justification.
- Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates.
- The fitted model uses indicators without implying a hierarchy between payment channels.
- Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
- Compare Spark schema types, frequency counts and missing values for the status category.
Explanation
Correct Answers
C:The fitted model uses indicators without implying a hierarchy between payment channels. A model using linear regression treats payment method names as ordered integers, creating false numeric relationships.
D:Review model family, nominal attribute meaning, cardinality and coefficient interpretation. A model using linear regression treats payment method names as ordered integers, creating false numeric relationships.
Incorrect Answers
A:Residual group error is measured and missingness handling has a documented justification. That concerns Check missing-not-at-random before simple imputation, while this case turns on Recognize appropriate use of one-hot with linear model.
B:Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates. It addresses Keep outlier filtering inside training split, not the Recognize appropriate use of one-hot with linear model requirement described. The observed condition is: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships.
E:Compare Spark schema types, frequency counts and missing values for the status category. The scenario calls for Recognize appropriate use of one-hot with linear model reasoning rather than a Distinguish numeric summary from categorical frequency analysis.
Question 335
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships. Changes require named owner approval and safe rollback. The acceptance review requires three complementary roles: governing principle, bounded corrective action and measurable result. Select EXACTLY THREE: the governing technical principle, proportionate action AND independently verifiable success result.
- The fitted model uses indicators without implying a hierarchy between payment channels.
- Use a documented categorical imputation strategy learned from training data.
- Removed rows match the documented statistical rule without deleting legitimate rare events blindly.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- Imputation may be biased when missingness correlates with groups or outcomes and needs domain review.
- One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators.
Explanation
Correct Answers
A:The fitted model uses indicators without implying a hierarchy between payment channels. A model using linear regression treats payment method names as ordered integers, creating false numeric relationships. The reported situation is: A model using linear regression treats payment method names as ordered integers, creating false numeric relationships.
D:Encode payment methods with a fitted categorical transformer and controlled unknown handling. Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
F:One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators. A model using linear regression treats payment method names as ordered integers, creating false numeric relationships.
Incorrect Answers
B:Use a documented categorical imputation strategy learned from training data. The option addresses Choose mode for nominal category imputation, which is distinct from the Recognize appropriate use of one-hot with linear model issue here.
C:Removed rows match the documented statistical rule without deleting legitimate rare events blindly. That concerns Identify standard-deviation outlier boundaries, while this case turns on Recognize appropriate use of one-hot with linear model.
E:Imputation may be biased when missingness correlates with groups or outcomes and needs domain review. The relevant distinction here is Recognize appropriate use of one-hot with linear model; Check missing-not-at-random before simple imputation is a separate concern.
Question 336
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A fraud loss feature has a long positive tail that dominates squared-error training and visual scales. 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.
- A missingness indicator can preserve useful signal about whether a value was absent at observation time.
- Mode or an explicit unknown category is appropriate for nominal features, not a numeric mean over identifiers.
- Standard logarithms require strictly positive inputs; signed features need a separately justified transformation.
- Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid.
Explanation
Correct Answer
D:Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid. Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs. Apply a justified positive-domain log or log1p transform with recorded inverse semantics.
Incorrect Answers
A:A missingness indicator can preserve useful signal about whether a value was absent at observation time. Although useful for Use missing indicator with median-imputed feature, this does not establish the requested Apply log transformation to positive long-tailed features result.
B:Mode or an explicit unknown category is appropriate for nominal features, not a numeric mean over identifiers. That is a Choose mode for nominal category imputation consideration; the immediate issue lies in Apply log transformation to positive long-tailed features.
C:Standard logarithms require strictly positive inputs; signed features need a separately justified transformation. It does not test the Apply log transformation to positive long-tailed features condition; it instead concerns Avoid log transforms for signed values without a defined mapping.
Question 337
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A fraud loss feature has a long positive tail that dominates squared-error training and visual scales. 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 cardinality, frequency distribution, expected future identifiers and memory costs.
- Check range, missingness, zero and negative counts and the model's required scale.
- Compare sample selection, whole-column quantiles, summary statistics and partition distributions.
- Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
Explanation
Correct Answer
D:Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs. Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid. The transformed distribution and holdout quality improve without invalid inputs.
Incorrect Answers
A:Measure cardinality, frequency distribution, expected future identifiers and memory costs. This would be pertinent to Avoid one-hot explosion for very high-cardinality identifiers, but does not resolve the stated Apply log transformation to positive long-tailed features issue.
B:Check range, missingness, zero and negative counts and the model's required scale. The scenario calls for Apply log transformation to positive long-tailed features reasoning rather than a Avoid log transforms for signed values without a defined mapping analysis.
C:Compare sample selection, whole-column quantiles, summary statistics and partition distributions. Although useful for Use data profile visualization only when appropriately supported, this does not establish the requested Apply log transformation to positive long-tailed features result.
Question 338
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A fraud loss feature has a long positive tail that dominates squared-error training and visual scales. 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.
- Plot paired continuous values and compute a justified association measure.
- Exclude unsuitable raw identifiers or use a justified alternative feature representation.
- Use an IQR-based review rule with documented exceptions for legitimate high values.
- Apply a justified positive-domain log or log1p transform with recorded inverse semantics.
Explanation
Correct Answer
D: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. Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
Incorrect Answers
A:Plot paired continuous values and compute a justified association measure. It addresses Compare continuous features with scatter evidence, not the Apply log transformation to positive long-tailed features requirement described.
B:Exclude unsuitable raw identifiers or use a justified alternative feature representation. The relevant distinction here is Apply log transformation to positive long-tailed features; Avoid one-hot explosion for very high-cardinality identifiers is a separate concern.
C:Use an IQR-based review rule with documented exceptions for legitimate high values. This would be pertinent to Apply interquartile range screening on skewed values, but does not resolve the stated Apply log transformation to positive long-tailed features issue.
Question 339
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 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.
- Compare sample selection, whole-column quantiles, summary statistics and partition distributions.
- The transformed distribution and holdout quality improve without invalid inputs.
- Inspect symmetry, missingness rate, variance and representative outliers in the training partition.
- Identical reference input rows receive identical transformed values across batches.
- Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
Explanation
Correct Answers
B: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.
E:Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs. A fraud loss feature has a long positive tail that dominates squared-error training and visual scales.
Incorrect Answers
A:Compare sample selection, whole-column quantiles, summary statistics and partition distributions. The option addresses Use data profile visualization only when appropriately supported, which is distinct from the Apply log transformation to positive long-tailed features issue here.
C:Inspect symmetry, missingness rate, variance and representative outliers in the training partition. It addresses Distinguish mean and median under symmetric distribution, not the Apply log transformation to positive long-tailed features requirement described.
D:Identical reference input rows receive identical transformed values across batches. The relevant distinction here is Apply log transformation to positive long-tailed features; Impute training and serving from one fitted statistic is a separate concern.
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.