Databricks Certified Machine Learning Associate Practice Test 28
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.
Question 271
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A data analyst reports correlation from separate unpaired histograms of price and quantity. 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.
- Mean imputation can be reasonable for symmetric numeric data but still reduces variance and may need a missingness indicator.
- One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators.
- One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal.
- Relationships between paired continuous features require paired data and suitable scatter or correlation analysis.
Explanation
Correct Answer
D:Relationships between paired continuous features require paired data and suitable scatter or correlation analysis. Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions. Plot paired continuous values and compute a justified association measure.
Incorrect Answers
A:Mean imputation can be reasonable for symmetric numeric data but still reduces variance and may need a missingness indicator. That concerns Distinguish mean and median under symmetric distribution, while this case turns on Compare continuous features with scatter evidence.
B:One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators. It addresses Recognize appropriate use of one-hot with linear model, not the Compare continuous features with scatter evidence requirement described.
C:One-hot encoding a near-unique identifier creates sparse high-dimensional inputs with little generalizable signal. The relevant distinction here is Compare continuous features with scatter evidence; Avoid one-hot explosion for very high-cardinality identifiers is a separate concern.
Question 272
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A data analyst reports correlation from separate unpaired histograms of price and quantity. 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 the observed distribution, extreme values, missingness pattern and median-to-mean gap.
- Compare Spark schema types, frequency counts and missing values for the status category.
- Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions.
Explanation
Correct Answer
D:Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions. Relationships between paired continuous features require paired data and suitable scatter or correlation analysis. A reviewer can assess direction, spread and outlier influence of the actual pairing.
Incorrect Answers
A:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. It does not test the Compare continuous features with scatter evidence condition; it instead concerns Apply interquartile range screening on skewed values.
B:Inspect the observed distribution, extreme values, missingness pattern and median-to-mean gap. The option addresses Prefer median for skewed numeric imputation, which is distinct from the Compare continuous features with scatter evidence issue here.
C:Compare Spark schema types, frequency counts and missing values for the status category. That concerns Distinguish numeric summary from categorical frequency, while this case turns on Compare continuous features with scatter evidence.
Question 273
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A data analyst reports correlation from separate unpaired histograms of price and quantity. The review distinguishes symptoms from root cause. The owner requires a proportionate, authorized technical correction that can be verified independently. Which scoped solution approach BEST resolves the issue without unnecessary operational risk? Choose ONE best answer.
- Create a distribution plot with defensible binning and compare summary quantiles.
- Plot paired continuous values and compute a justified association measure.
- Exclude unsuitable raw identifiers or use a justified alternative feature representation.
- Compute supported Spark summary statistics and inspect distributions before choosing preprocessing rules.
Explanation
Correct Answer
B:Plot paired continuous values and compute a justified association measure. Relationships between paired continuous features require paired data and suitable scatter or correlation analysis. Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions.
Incorrect Answers
A: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 Compare continuous features with scatter evidence result.
C:Exclude unsuitable raw identifiers or use a justified alternative feature representation. It does not test the Compare continuous features with scatter evidence condition; it instead concerns Avoid one-hot explosion for very high-cardinality identifiers.
D:Compute supported Spark summary statistics and inspect distributions before choosing preprocessing rules. The option addresses Use Spark DataFrame summary statistics for EDA, which is distinct from the Compare continuous features with scatter evidence issue here.
Question 274
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A data analyst reports correlation from separate unpaired histograms of price and quantity. 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.
- Measure cardinality, frequency distribution, expected future identifiers and memory costs.
- Review model family, nominal attribute meaning, cardinality and coefficient interpretation.
- The model can distinguish an observed median value from one produced by imputation.
- A reviewer can assess direction, spread and outlier influence of the actual pairing.
- Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions.
Explanation
Correct Answers
D:A reviewer can assess direction, spread and outlier influence of the actual pairing. A data analyst reports correlation from separate unpaired histograms of price and quantity.
E:Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions. A data analyst reports correlation from separate unpaired histograms of price and quantity.
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 Compare continuous features with scatter evidence issue.
B:Review model family, nominal attribute meaning, cardinality and coefficient interpretation. The scenario calls for Compare continuous features with scatter evidence reasoning rather than a Recognize appropriate use of one-hot with linear model analysis.
C:The model can distinguish an observed median value from one produced by imputation. Although useful for Use missing indicator with median-imputed feature, this does not establish the requested Compare continuous features with scatter evidence result.
Question 275
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A data analyst reports correlation from separate unpaired histograms of price and quantity. 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.
- Plot paired continuous values and compute a justified association measure.
- Relationships between paired continuous features require paired data and suitable scatter or correlation analysis.
- One-hot indicators are often suitable for low-cardinality nominal attributes used by linear estimators.
- A reviewer can assess direction, spread and outlier influence of the actual pairing.
- The report correctly identifies dominant categories and unexpected labels without invented numeric moments.
- Investigate the collection process and evaluate missingness-aware modeling or constrained imputation.
Explanation
Correct Answers
A:Plot paired continuous values and compute a justified association measure. Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions.
B:Relationships between paired continuous features require paired data and suitable scatter or correlation analysis. A data analyst reports correlation from separate unpaired histograms of price and quantity.
D:A reviewer can assess direction, spread and outlier influence of the actual pairing. A data analyst reports correlation from separate unpaired histograms of price and quantity. The reported situation is: A data analyst reports correlation from separate unpaired histograms of price and quantity.
Incorrect Answers
C: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 Compare continuous features with scatter evidence issue.
E:The report correctly identifies dominant categories and unexpected labels without invented numeric moments. Although useful for Distinguish numeric summary from categorical frequency, this does not establish the requested Compare continuous features with scatter evidence result.
F:Investigate the collection process and evaluate missingness-aware modeling or constrained imputation. That is a Check missing-not-at-random before simple imputation consideration; the immediate issue lies in Compare continuous features with scatter evidence. The observed condition is: A data analyst reports correlation from separate unpaired histograms of price and quantity.
Question 276
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A team averages encoded country IDs to infer whether customer segment and region are associated. 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.
- Imputation may be biased when missingness correlates with groups or outcomes and needs domain review.
- IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds.
- Log transformations compress positive magnitudes and may help model skew and scale when mathematically valid.
- Associations between categorical variables are examined through counts and normalized contingency tables.
Explanation
Correct Answer
D:Associations between categorical variables are examined through counts and normalized contingency tables. Inspect segment-by-region counts, encoding dictionary and category frequencies. Build a crosstab or suitable grouped comparison with sparse-group checks.
Incorrect Answers
A:Imputation may be biased when missingness correlates with groups or outcomes and needs domain review. The option addresses Check missing-not-at-random before simple imputation, which is distinct from the Compare categorical features with contingency table issue here.
B:IQR screening uses quartile-based bounds and may be more robust to skew than mean-based thresholds. That concerns Apply interquartile range screening on skewed values, while this case turns on Compare categorical features with contingency table.
C: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 Compare categorical features with contingency table requirement described.
Question 277
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A team averages encoded country IDs to infer whether customer segment and region are associated. 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 label type, class counts, percentages and whether categories are missing or encoded inconsistently.
- Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers.
- Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions.
- Inspect segment-by-region counts, encoding dictionary and category frequencies.
Explanation
Correct Answer
D:Inspect segment-by-region counts, encoding dictionary and category frequencies. Associations between categorical variables are examined through counts and normalized contingency tables. Conditional category frequencies describe the relationship without pretending identifiers are ordinal.
Incorrect Answers
A:Check label type, class counts, percentages and whether categories are missing or encoded inconsistently. That is a Use categorical bar plots for class imbalance consideration; the immediate issue lies in Compare categorical features with contingency table.
B:Calculate Q1, Q3, IQR and observed extremes, then check business-valid outliers. It does not test the Compare categorical features with contingency table condition; it instead concerns Apply interquartile range screening on skewed values.
C:Inspect paired observations, scatter plots, extreme leverage points and correlation assumptions. The option addresses Compare continuous features with scatter evidence, which is distinct from the Compare categorical features with contingency table issue here.
Question 278
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. The observed issue is: A team averages encoded country IDs to infer whether customer segment and region are associated. 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.
- Put the encoder inside a pipeline fitted only on training observations.
- Build a crosstab or suitable grouped comparison with sparse-group checks.
- Compute supported Spark summary statistics and inspect distributions before choosing preprocessing rules.
Explanation
Correct Answer
C:Build a crosstab or suitable grouped comparison with sparse-group checks. Associations between categorical variables are examined through counts and normalized contingency tables. Inspect segment-by-region counts, encoding dictionary and category frequencies.
Incorrect Answers
A:Fit statistical filtering thresholds on training data, then apply the fixed rule to validation data. The scenario calls for Compare categorical features with contingency table reasoning rather than a Keep outlier filtering inside training split analysis.
B:Put the encoder inside a pipeline fitted only on training observations. Although useful for Avoid fitting encoders on held-out test data, this does not establish the requested Compare categorical features with contingency table result.
D:Compute supported Spark summary statistics and inspect distributions before choosing preprocessing rules. It does not test the Compare categorical features with contingency table condition; it instead concerns Use Spark DataFrame summary statistics for EDA.
Question 279
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A team averages encoded country IDs to infer whether customer segment and region are associated. 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.
- All transformed values remain valid and inference applies the same approved mapping.
- Conditional category frequencies describe the relationship without pretending identifiers are ordinal.
- Inspect fitted imputer parameters, model pipeline serialization and batch-dependent outputs.
- Inspect segment-by-region counts, encoding dictionary and category frequencies.
- Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates.
Explanation
Correct Answers
B:Conditional category frequencies describe the relationship without pretending identifiers are ordinal. A team averages encoded country IDs to infer whether customer segment and region are associated.
D:Inspect segment-by-region counts, encoding dictionary and category frequencies. A team averages encoded country IDs to infer whether customer segment and region are associated.
Incorrect Answers
A:All transformed values remain valid and inference applies the same approved mapping. The relevant distinction here is Compare categorical features with contingency table; Avoid log transforms for signed values without a defined mapping is a separate concern.
C:Inspect fitted imputer parameters, model pipeline serialization and batch-dependent outputs. The scenario calls for Compare categorical features with contingency table reasoning rather than a Impute training and serving from one fitted statistic analysis.
E:Inspect pipeline ordering, split timestamps and which rows contributed to quantile estimates. That is a Keep outlier filtering inside training split consideration; the immediate issue lies in Compare categorical features with contingency table.
Question 280
During a Databricks data preparation review, a machine learning analyst validates Spark statistics and leak-free transformations. A separate control validation examines: A team averages encoded country IDs to infer whether customer segment and region are associated. Changes require named owner approval and safe rollback. The acceptance review requires three complementary roles: governing principle, bounded corrective action and measurable result. Select EXACTLY THREE: the governing technical principle, proportionate action AND independently verifiable success result.
- Build a crosstab or suitable grouped comparison with sparse-group checks.
- Conditional category frequencies describe the relationship without pretending identifiers are ordinal.
- Associations between categorical variables are examined through counts and normalized contingency tables.
- Apply a justified positive-domain log or log1p transform with recorded inverse semantics.
- The transformed feature preserves valid ranges without shifting strongly toward extreme transactions.
- Relationships between paired continuous features require paired data and suitable scatter or correlation analysis.
Explanation
Correct Answers
A:Build a crosstab or suitable grouped comparison with sparse-group checks. Inspect segment-by-region counts, encoding dictionary and category frequencies.
B:Conditional category frequencies describe the relationship without pretending identifiers are ordinal. A team averages encoded country IDs to infer whether customer segment and region are associated. The reported situation is: A team averages encoded country IDs to infer whether customer segment and region are associated.
C:Associations between categorical variables are examined through counts and normalized contingency tables. A team averages encoded country IDs to infer whether customer segment and region are associated.
Incorrect Answers
D:Apply a justified positive-domain log or log1p transform with recorded inverse semantics. This would be pertinent to Apply log transformation to positive long-tailed features, but does not resolve the stated Compare categorical features with contingency table issue.
E:The transformed feature preserves valid ranges without shifting strongly toward extreme transactions. The scenario calls for Compare categorical features with contingency table reasoning rather than a Prefer median for skewed numeric imputation analysis.
F:Relationships between paired continuous features require paired data and suitable scatter or correlation analysis. Although useful for Compare continuous features with scatter evidence, this does not establish the requested Compare categorical features with contingency table result.