Databricks Certified Machine Learning Associate Practice Test 26
Question 250
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A pipeline filters transactions using a fixed dollar threshold despite different mean and spread across groups. 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.
- Removed rows match the documented statistical rule without deleting legitimate rare events blindly.
- Categorical profiling requires counts and frequencies rather than assuming numerical moments apply to labels.
- Apply a justified standardized boundary and verify behavior for skewed or heavy-tailed groups.
- Standard-deviation screening compares values with a documented mean and standard deviation under suitable distribution assumptions.
- Build a labeled count plot with class percentages before selecting validation metrics.
- The plot reveals relevant skew and outliers while preserving the original numeric meaning.
Explanation
Correct Answers
A:Removed rows match the documented statistical rule without deleting legitimate rare events blindly. A pipeline filters transactions using a fixed dollar threshold despite different mean and spread across groups. The reported situation is: A pipeline filters transactions using a fixed dollar threshold despite different mean and spread across groups.
C:Apply a justified standardized boundary and verify behavior for skewed or heavy-tailed groups. Compute group means, standard deviations and the intended threshold multipliers.
D:Standard-deviation screening compares values with a documented mean and standard deviation under suitable distribution assumptions. A pipeline filters transactions using a fixed dollar threshold despite different mean and spread across groups.
Incorrect Answers
B:Categorical profiling requires counts and frequencies rather than assuming numerical moments apply to labels. It does not test the Identify standard-deviation outlier boundaries condition; it instead concerns Distinguish numeric summary from categorical frequency.
E:Build a labeled count plot with class percentages before selecting validation metrics. It addresses Use categorical bar plots for class imbalance, not the Identify standard-deviation outlier boundaries requirement described.
F:The plot reveals relevant skew and outliers while preserving the original numeric meaning. The relevant distinction here is Identify standard-deviation outlier boundaries; Choose appropriate histogram for continuous values is a separate concern. The observed condition is: A pipeline filters transactions using a fixed dollar threshold despite different mean and spread across groups.
Question 251
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values. 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.
- Mode or an explicit unknown category is appropriate for nominal features, not a numeric mean over identifiers.
- IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds.
- A missingness indicator can preserve useful signal about whether a value was absent at observation time.
- Standard logarithms require strictly positive inputs; signed features need a separately justified transformation.
Explanation
Correct Answer
B:IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds. Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. Use an IQR-based review rule with documented exceptions for legitimate high values.
Incorrect Answers
A:Mode or an explicit unknown category is appropriate for nominal features, not a numeric mean over identifiers. The scenario calls for Apply interquartile range screening on skewed values reasoning rather than a Choose mode for nominal category imputation analysis.
C:A missingness indicator can preserve useful signal about whether a value was absent at observation time. That is a Use missing indicator with median-imputed feature consideration; the immediate issue lies in Apply interquartile range screening on skewed values.
D:Standard logarithms require strictly positive inputs; signed features need a separately justified transformation. It does not test the Apply interquartile range screening on skewed values condition; it instead concerns Avoid log transforms for signed values without a defined mapping.
Question 252
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values. 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 sample selection, whole-column quantiles, summary statistics and partition distributions.
- Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
- Inspect preprocessing fit operations, split order and encoder category list provenance.
- Compute group means, standard deviations and the intended threshold multipliers.
Explanation
Correct Answer
B:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds. Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable.
Incorrect Answers
A:Compare sample selection, whole-column quantiles, summary statistics and partition distributions. The relevant distinction here is Apply interquartile range screening on skewed values; Use data profile visualization only when appropriately supported is a separate concern.
C:Inspect preprocessing fit operations, split order and encoder category list provenance. The scenario calls for Apply interquartile range screening on skewed values reasoning rather than a Avoid fitting encoders on held-out test data analysis.
D:Compute group means, standard deviations and the intended threshold multipliers. Although useful for Identify standard-deviation outlier boundaries, this does not establish the requested Apply interquartile range screening on skewed values result. The observed condition is: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values.
Question 253
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values. 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.
- Use a category aggregation or frequency table appropriate to string-valued features.
- Impute from the training mean and evaluate sensitivity against median or missingness-aware alternatives.
- Use an IQR-based review rule with documented exceptions for legitimate high values.
Explanation
Correct Answer
D:Use an IQR-based review rule with documented exceptions for legitimate high values. IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds. Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
Incorrect Answers
A:Plot paired continuous values and compute a justified association measure. That concerns Compare continuous features with scatter evidence, while this case turns on Apply interquartile range screening on skewed values.
B:Use a category aggregation or frequency table appropriate to string-valued features. It addresses Distinguish numeric summary from categorical frequency, not the Apply interquartile range screening on skewed values requirement described.
C:Impute from the training mean and evaluate sensitivity against median or missingness-aware alternatives. The relevant distinction here is Apply interquartile range screening on skewed values; Distinguish mean and median under symmetric distribution is a separate concern.
Question 254
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values. 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.
- Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable.
- Validation metrics and distribution checks show acceptable impact and consistent transformations.
- Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions.
- Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
- Inspect preprocessing fit operations, split order and encoder category list provenance.
Explanation
Correct Answers
A:Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable. An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values.
D:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values.
Incorrect Answers
B:Validation metrics and distribution checks show acceptable impact and consistent transformations. The option addresses Distinguish mean and median under symmetric distribution, which is distinct from the Apply interquartile range screening on skewed values issue here.
C:Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions. That concerns Compare continuous features with scatter evidence, while this case turns on Apply interquartile range screening on skewed values.
E:Inspect preprocessing fit operations, split order and encoder category list provenance. The relevant distinction here is Apply interquartile range screening on skewed values; Avoid fitting encoders on held-out test data is a separate concern.
Question 255
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values. 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.
- Validation metrics and distribution checks show acceptable impact and consistent transformations.
- Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid.
- Use an IQR-based review rule with documented exceptions for legitimate high values.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds.
- Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable.
Explanation
Correct Answers
C:Use an IQR-based review rule with documented exceptions for legitimate high values. Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
E:IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds. An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values.
F:Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable. An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values. The reported situation is: An analyst uses mean plus three standard deviations on highly skewed positive transaction amounts and misses extreme values.
Incorrect Answers
A:Validation metrics and distribution checks show acceptable impact and consistent transformations. Although useful for Distinguish mean and median under symmetric distribution, this does not establish the requested Apply interquartile range screening on skewed values result.
B:Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid. That is a Apply log transformation to positive long-tailed features consideration; the immediate issue lies in Apply interquartile range screening on skewed values.
D:Encode payment methods with a fitted categorical transformer and controlled unknown handling. The option addresses Recognize appropriate use of one-hot with linear model, which is distinct from the Apply interquartile range screening on skewed values issue here.
Question 256
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model. 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.
- Training statistics should be learned only from the training partition to avoid information leakage.
- A missingness indicator can preserve useful signal about whether a value was absent at observation time.
- Standard-deviation screening compares values with a documented mean and standard deviation under suitable distribution assumptions.
Explanation
Correct Answer
B:Training statistics should be learned only from the training partition to avoid information leakage. Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates. Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data.
Incorrect Answers
A:Fitted encoders are learned from the training partition and applied unchanged to evaluation data. This would be pertinent to Avoid fitting encoders on held-out test data, but does not resolve the stated Keep outlier filtering inside training split issue.
C: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 Keep outlier filtering inside training split result.
D:Standard-deviation screening compares values with a documented mean and standard deviation under suitable distribution assumptions. That is a Identify standard-deviation outlier boundaries consideration; the immediate issue lies in Keep outlier filtering inside training split.
Question 257
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model. 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 pipeline ordering, split timestamps and which rows contributed to quantile estimates.
- Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
- Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
- Inspect existing category mapping, model coefficients and the intended variable meaning.
Explanation
Correct Answer
A:Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates. Training statistics should be learned only from the training partition to avoid information leakage. Re-running the evaluation with a holdout-only test yields leakage-free metrics.
Incorrect Answers
B:Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs. The relevant distinction here is Keep outlier filtering inside training split; Apply log transformation to positive long-tailed features is a separate concern.
C:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. This would be pertinent to Apply interquartile range screening on skewed values, but does not resolve the stated Keep outlier filtering inside training split issue.
D:Inspect existing category mapping, model coefficients and the intended variable meaning. The scenario calls for Keep outlier filtering inside training split reasoning rather than a One-hot encode nominal categories without ordinal order analysis.
Question 258
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model. 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.
- Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data.
- Encode cities into indicator columns with a consistent fitted category vocabulary.
- Encode payment methods with a fitted categorical transformer and controlled unknown handling.
- Configure an approved unknown-category treatment and validate pipeline compatibility.
Explanation
Correct Answer
A:Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data. Training statistics should be learned only from the training partition to avoid information leakage. Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates.
Incorrect Answers
B:Encode cities into indicator columns with a consistent fitted category vocabulary. That concerns One-hot encode nominal categories without ordinal order, while this case turns on Keep outlier filtering inside training split.
C:Encode payment methods with a fitted categorical transformer and controlled unknown handling. It addresses Recognize appropriate use of one-hot with linear model, not the Keep outlier filtering inside training split requirement described. The observed condition is: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model.
D:Configure an approved unknown-category treatment and validate pipeline compatibility. The relevant distinction here is Keep outlier filtering inside training split; Handle unseen categories in fitted one-hot pipeline is a separate concern.
Question 259
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model. 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 fitted imputer parameters, model pipeline serialization and batch-dependent outputs.
- Check range, missingness, zero and negative counts and the model's required scale.
- Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates.
- Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable.
- Re-running the evaluation with a holdout-only test yields leakage-free metrics.
Explanation
Correct Answers
C:Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates. A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model.
E:Re-running the evaluation with a holdout-only test yields leakage-free metrics. A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model.
Incorrect Answers
A:Inspect fitted imputer parameters, model pipeline serialization and batch-dependent outputs. That is a Impute training and serving from one fitted statistic consideration; the immediate issue lies in Keep outlier filtering inside training split.
B:Check range, missingness, zero and negative counts and the model's required scale. It does not test the Keep outlier filtering inside training split condition; it instead concerns Avoid log transforms for signed values without a defined mapping.
D:Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable. That concerns Apply interquartile range screening on skewed values, while this case turns on Keep outlier filtering inside training split.
Question 260
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model. 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.
- One-hot encoding represents nominal categories without imposing arbitrary numeric order.
- Training statistics should be learned only from the training partition to avoid information leakage.
- Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable.
- Impute from the training mean and evaluate sensitivity against median or missingness-aware alternatives.
- Re-running the evaluation with a holdout-only test yields leakage-free metrics.
- Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data.
Explanation
Correct Answers
B:Training statistics should be learned only from the training partition to avoid information leakage. A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model.
E:Re-running the evaluation with a holdout-only test yields leakage-free metrics. A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model. The reported situation is: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model.
F:Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data. Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates.
Incorrect Answers
A:One-hot encoding represents nominal categories without imposing arbitrary numeric order. The scenario calls for Keep outlier filtering inside training split reasoning rather than a One-hot encode nominal categories without ordinal order analysis. The observed condition is: A team computes an outlier limit from the entire dataset, including the held-out test data, before fitting the model.
C:Flagged examples lie beyond the chosen quartile bounds and exceptions are traceable. That is a Apply interquartile range screening on skewed values consideration; the immediate issue lies in Keep outlier filtering inside training split.
D:Impute from the training mean and evaluate sensitivity against median or missingness-aware alternatives. It does not test the Keep outlier filtering inside training split condition; it instead concerns Distinguish mean and median under symmetric distribution.