Databricks Certified Machine Learning Associate Practice Test 27
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.
Question 261
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution. 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.
- Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations.
- 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.
- Discrete category counts are best displayed with a category-frequency representation such as a bar chart.
Explanation
Correct Answer
C:Histograms summarize continuous numeric values into intervals and expose skew and potential modes. Review variable type, chosen bin widths, counts and visually hidden extremes. Create a distribution plot with defensible binning and compare summary quantiles.
Incorrect Answers
A:Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations. The relevant distinction here is Choose appropriate histogram for continuous values; Use data profile visualization only when appropriately supported is a separate concern.
B: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 Choose appropriate histogram for continuous values issue.
D:Discrete category counts are best displayed with a category-frequency representation such as a bar chart. Although useful for Use categorical bar plots for class imbalance, this does not establish the requested Choose appropriate histogram for continuous values result.
Question 262
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution. 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 variable type, chosen bin widths, counts and visually hidden extremes.
- Inspect fitted imputer parameters, model pipeline serialization and batch-dependent outputs.
- Compare missing rates by source, population segment and outcome under appropriate privacy controls.
- Compare predictive performance and fairness with and without an indicator under the same split.
Explanation
Correct Answer
A:Review variable type, chosen bin widths, counts and visually hidden extremes. Histograms summarize continuous numeric values into intervals and expose skew and potential modes. The plot reveals relevant skew and outliers while preserving the original numeric meaning.
Incorrect Answers
B:Inspect fitted imputer parameters, model pipeline serialization and batch-dependent outputs. It addresses Impute training and serving from one fitted statistic, not the Choose appropriate histogram for continuous values requirement described.
C:Compare missing rates by source, population segment and outcome under appropriate privacy controls. The relevant distinction here is Choose appropriate histogram for continuous values; Check missing-not-at-random before simple imputation is a separate concern.
D:Compare predictive performance and fairness with and without an indicator under the same split. This would be pertinent to Use missing indicator with median-imputed feature, but does not resolve the stated Choose appropriate histogram for continuous values issue.
Question 263
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution. 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 cities into indicator columns with a consistent fitted category vocabulary.
- Use a category aggregation or frequency table appropriate to string-valued features.
- Create a distribution plot with defensible binning and compare summary quantiles.
- Impute from the training mean and evaluate sensitivity against median or missingness-aware alternatives.
Explanation
Correct Answer
C:Create a distribution plot with defensible binning and compare summary quantiles. Histograms summarize continuous numeric values into intervals and expose skew and potential modes. Review variable type, chosen bin widths, counts and visually hidden extremes.
Incorrect Answers
A:Encode cities into indicator columns with a consistent fitted category vocabulary. It does not test the Choose appropriate histogram for continuous values condition; it instead concerns One-hot encode nominal categories without ordinal order.
B:Use a category aggregation or frequency table appropriate to string-valued features. The option addresses Distinguish numeric summary from categorical frequency, which is distinct from the Choose appropriate histogram for continuous values issue here.
D:Impute from the training mean and evaluate sensitivity against median or missingness-aware alternatives. It addresses Distinguish mean and median under symmetric distribution, not the Choose appropriate histogram for continuous values requirement described.
Question 264
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution. 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 transformed feature preserves valid ranges without shifting strongly toward extreme transactions.
- Inspect segment-by-region counts, encoding dictionary and category frequencies.
- Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
- The plot reveals relevant skew and outliers while preserving the original numeric meaning.
- Review variable type, chosen bin widths, counts and visually hidden extremes.
Explanation
Correct Answers
D:The plot reveals relevant skew and outliers while preserving the original numeric meaning. A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution.
E:Review variable type, chosen bin widths, counts and visually hidden extremes. A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution.
Incorrect Answers
A:The transformed feature preserves valid ranges without shifting strongly toward extreme transactions. Although useful for Prefer median for skewed numeric imputation, this does not establish the requested Choose appropriate histogram for continuous values result.
B:Inspect segment-by-region counts, encoding dictionary and category frequencies. That is a Compare categorical features with contingency table consideration; the immediate issue lies in Choose appropriate histogram for continuous values. The observed condition is: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution.
C:Review model family, nominal attribute meaning, cardinality and coefficient interpretation. It does not test the Choose appropriate histogram for continuous values condition; it instead concerns Recognize appropriate use of one-hot with linear model.
Question 265
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution. 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 distribution plot with defensible binning and compare summary quantiles.
- Histograms summarize continuous numeric values into intervals and expose skew and potential modes.
- Use an IQR-based review rule with documented exceptions for legitimate high values.
- Validation metrics and distribution checks show acceptable impact and consistent transformations.
- The plot reveals relevant skew and outliers while preserving the original numeric meaning.
- Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations.
Explanation
Correct Answers
A:Create a distribution plot with defensible binning and compare summary quantiles. Review variable type, chosen bin widths, counts and visually hidden extremes.
B:Histograms summarize continuous numeric values into intervals and expose skew and potential modes. A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution.
E:The plot reveals relevant skew and outliers while preserving the original numeric meaning. A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution. The reported situation is: A retail analyst displays thousands of raw purchase amounts as separate unordered categories, obscuring their distribution.
Incorrect Answers
C: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 Choose appropriate histogram for continuous values result.
D:Validation metrics and distribution checks show acceptable impact and consistent transformations. That is a Distinguish mean and median under symmetric distribution consideration; the immediate issue lies in Choose appropriate histogram for continuous values.
F:Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations. The option addresses Use data profile visualization only when appropriately supported, which is distinct from the Choose appropriate histogram for continuous values issue here.
Question 266
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies. 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.
- Fitted encoders are learned from the training partition and applied unchanged to evaluation data.
- Associations between categorical variables are examined through counts and normalized contingency tables.
Explanation
Correct Answer
A:Discrete category counts are best displayed with a category-frequency representation such as a bar chart. Check label type, class counts, percentages and whether categories are missing or encoded inconsistently. Build a labeled count plot with class percentages before selecting validation metrics.
Incorrect Answers
B:Sample-based summaries can mask distributed extremes and should be checked against full-data aggregations. The relevant distinction here is Use categorical bar plots for class imbalance; Use data profile visualization only when appropriately supported is a separate concern.
C: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 Use categorical bar plots for class imbalance issue.
D:Associations between categorical variables are examined through counts and normalized contingency tables. The scenario calls for Use categorical bar plots for class imbalance reasoning rather than a Compare categorical features with contingency table analysis.
Question 267
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies. 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.
- Check range, missingness, zero and negative counts and the model's required scale.
- Check label type, class counts, percentages and whether categories are missing or encoded inconsistently.
- Inspect symmetry, missingness rate, variance and representative outliers in the training partition.
- Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs.
Explanation
Correct Answer
B:Check label type, class counts, percentages and whether categories are missing or encoded inconsistently. Discrete category counts are best displayed with a category-frequency representation such as a bar chart. Reviewers can see the minority class fraction and spot data-quality gaps.
Incorrect Answers
A:Check range, missingness, zero and negative counts and the model's required scale. The option addresses Avoid log transforms for signed values without a defined mapping, which is distinct from the Use categorical bar plots for class imbalance 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 Use categorical bar plots for class imbalance requirement described.
D:Inspect minimum values, zeros, negatives, skew and downstream model interpretation needs. The relevant distinction here is Use categorical bar plots for class imbalance; Apply log transformation to positive long-tailed features is a separate concern.
Question 268
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies. 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.
- Build a labeled count plot with class percentages before selecting validation metrics.
- Encode cities into indicator columns with a consistent fitted category vocabulary.
- Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data.
- Use representative profiling and targeted Spark aggregates before finalizing the feature treatment.
Explanation
Correct Answer
A:Build a labeled count plot with class percentages before selecting validation metrics. Discrete category counts are best displayed with a category-frequency representation such as a bar chart. Check label type, class counts, percentages and whether categories are missing or encoded inconsistently.
Incorrect Answers
B:Encode cities into indicator columns with a consistent fitted category vocabulary. It does not test the Use categorical bar plots for class imbalance condition; it instead concerns One-hot encode nominal categories without ordinal order.
C:Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data. The option addresses Keep outlier filtering inside training split, which is distinct from the Use categorical bar plots for class imbalance issue here.
D:Use representative profiling and targeted Spark aggregates before finalizing the feature treatment. That concerns Use data profile visualization only when appropriately supported, while this case turns on Use categorical bar plots for class imbalance.
Question 269
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies. 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.
- Reviewers can see the minority class fraction and spot data-quality gaps.
- The plot reveals relevant skew and outliers while preserving the original numeric meaning.
- Inspect symmetry, missingness rate, variance and representative outliers in the training partition.
- Check label type, class counts, percentages and whether categories are missing or encoded inconsistently.
- Inspect row counts, null counts, summary percentiles, standard deviation and skew-sensitive measures.
Explanation
Correct Answers
A:Reviewers can see the minority class fraction and spot data-quality gaps. A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies.
D:Check label type, class counts, percentages and whether categories are missing or encoded inconsistently. A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies.
Incorrect Answers
B:The plot reveals relevant skew and outliers while preserving the original numeric meaning. Although useful for Choose appropriate histogram for continuous values, this does not establish the requested Use categorical bar plots for class imbalance result.
C:Inspect symmetry, missingness rate, variance and representative outliers in the training partition. That is a Distinguish mean and median under symmetric distribution consideration; the immediate issue lies in Use categorical bar plots for class imbalance.
E:Inspect row counts, null counts, summary percentiles, standard deviation and skew-sensitive measures. The option addresses Use Spark DataFrame summary statistics for EDA, which is distinct from the Use categorical bar plots for class imbalance issue here.
Question 270
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies. 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.
- Discrete category counts are best displayed with a category-frequency representation such as a bar chart.
- Reviewers can see the minority class fraction and spot data-quality gaps.
- Previously unseen categories produce a documented safe encoding rather than a runtime failure.
- Build a labeled count plot with class percentages before selecting validation metrics.
- Associations between categorical variables are examined through counts and normalized contingency tables.
Explanation
Correct Answers
B:Discrete category counts are best displayed with a category-frequency representation such as a bar chart. A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies.
C:Reviewers can see the minority class fraction and spot data-quality gaps. A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies. The reported situation is: A fraud engineer uses a continuous histogram to compare legitimate and fraudulent label frequencies.
E:Build a labeled count plot with class percentages before selecting validation metrics. Check label type, class counts, percentages and whether categories are missing or encoded inconsistently.
Incorrect Answers
A:Put the encoder inside a pipeline fitted only on training observations. The relevant distinction here is Use categorical bar plots for class imbalance; Avoid fitting encoders on held-out test data is a separate concern.
D:Previously unseen categories produce a documented safe encoding rather than a runtime failure. Although useful for Handle unseen categories in fitted one-hot pipeline, this does not establish the requested Use categorical bar plots for class imbalance result.
F:Associations between categorical variables are examined through counts and normalized contingency tables. It does not test the Use categorical bar plots for class imbalance condition; it instead concerns Compare categorical features with contingency table.