Databricks Certified Machine Learning Associate · Difficulty

Medium Databricks-ML-Associate practice questions

Applied — put a concept to work in a realistic situation. 125 medium questions available — no sign-up, always free.

Question 1 of 25

A data scientist has a scikit-learn model that expects a pandas DataFrame and returns a prediction plus a probability score. They want to distribute batch inference across a large Spark DataFrame by grouping records by 'region' and applying the model to each group's data as a pandas DataFrame using groupBy().applyInPandas(). What must be provided for this to execute correctly on Spark?

Reviewed for accuracy · Report an issue
Question 2 of 25

A data scientist runs an AutoML classification experiment through the Databricks AutoML UI to predict customer churn. After the experiment completes, they want to understand and customize the feature engineering and hyperparameters used by the top-performing model. What is the most direct way to accomplish this in Databricks AutoML?

Reviewed for accuracy · Report an issue
Question 3 of 25

A data scientist runs a Databricks AutoML classification experiment on a highly imbalanced dataset where only 4% of records belong to the positive (fraud) class. After the experiment completes, they open the AutoML UI to evaluate the trained models. Which behavior should they expect from AutoML regarding how it handles this imbalanced dataset and reports its results?

Reviewed for accuracy · Report an issue
Question 4 of 25

A data scientist launches a Databricks AutoML classification experiment through the UI on a customer churn dataset. Before reviewing model results, they want to understand data quality issues such as missing values, high-cardinality columns, and column correlations that AutoML detected during preprocessing. Which artifact should they open to find this information?

Reviewed for accuracy · Report an issue
Question 5 of 25

A data scientist launches an AutoML classification experiment through the Databricks AutoML UI on a customer-churn dataset. After the experiment completes, they want to understand exactly what AutoML produced automatically before doing any manual work. Which two artifacts does every completed AutoML experiment generate and expose in the experiment UI?

Reviewed for accuracy · Report an issue
Question 6 of 25

A data scientist wants to launch an AutoML classification experiment directly from a notebook using the Python API rather than the AutoML UI. They have a Spark DataFrame named `churn_df`, the target column is `churned`, and they want AutoML to stop after 30 minutes. Which code snippet correctly starts the experiment?

Reviewed for accuracy · Report an issue
Question 7 of 25

A data scientist launches a Databricks AutoML forecasting experiment through the UI. They notice that AutoML asks them to select a 'time column' but does not offer options to manually configure a random train/validation/test split percentage the way they expect from a classification experiment. Why does AutoML handle the data split differently for this forecasting experiment?

Reviewed for accuracy · Report an issue
Question 8 of 25

A data scientist launches a Databricks AutoML classification experiment through the UI and sets the 'Timeout (minutes)' field to 30. After 30 minutes the experiment stops while several trial runs are still queued. What happens to the results the experiment has produced so far?

Reviewed for accuracy · Report an issue
Question 9 of 25

A demand-planning team wants to use Databricks AutoML through the UI to forecast weekly product sales for the next 12 weeks. Their Delta table contains a 'sales_date' column, a numeric 'units_sold' column, and a 'store_id' column identifying 40 different stores, each with its own time series. Which configuration is required for the AutoML forecasting experiment to produce separate forecasts per store?

Reviewed for accuracy · Report an issue
Question 10 of 25

A data scientist launches a Databricks AutoML forecasting experiment through the UI on a table of daily retail sales. After the experiment completes, they want to understand how far into the future the best model can predict and how AutoML determined the number of future periods to generate. Which combination of AutoML forecasting configuration settings controls the number of future time steps produced by the resulting model?

Reviewed for accuracy · Report an issue
Question 11 of 25

A data scientist runs a Databricks AutoML classification experiment. After it completes, they want to improve on the best model by manually adjusting a preprocessing step and re-tuning some hyperparameters, while keeping AutoML's automatically generated feature engineering as a starting point. What is the recommended way to do this within the AutoML workflow?

Reviewed for accuracy · Report an issue
Question 12 of 25

A data scientist launches an AutoML regression experiment through the Databricks UI to predict housing prices. After the experiment starts, they want to review how AutoML profiled the input dataset — including missing value counts, feature distributions, and detected column types — before any models were trained. Which AutoML-generated artifact should they open?

Reviewed for accuracy · Report an issue
Question 13 of 25

A data scientist launches a Databricks AutoML regression experiment through the UI to predict house prices. They want AutoML to rank and select the best trial based on how well predictions match actual values on a scale that penalizes larger errors more heavily, expressed in the same units as the target. Which primary evaluation metric should they configure for the experiment?

Reviewed for accuracy · Report an issue
Question 14 of 25

A data scientist is preparing a customer churn dataset. The 'age' feature is continuous and highly right-skewed, and the team wants to convert it into categorical bins so that each bin contains roughly the same number of customers, which will help a downstream tree ensemble handle the skew more evenly. Which binning strategy should they apply?

Reviewed for accuracy · Report an issue
Question 15 of 25

During exploratory data analysis on a Spark DataFrame of customer records, a data scientist computes summary statistics with df.describe() and notices that the numeric column 'account_region_code' has a standard deviation of 0.0 and identical min, max, and mean values across all 500,000 rows. What is the most appropriate action to take before model training?

Reviewed for accuracy · Report an issue
Question 16 of 25

A data scientist is preparing features for a linear regression model that predicts house prices. During EDA, they compute a Pearson correlation matrix and notice that 'total_square_feet' and 'number_of_rooms' have a correlation coefficient of 0.94 with each other, while each correlates around 0.60 with the target price. What is the most appropriate action to take before training the linear model?

Reviewed for accuracy · Report an issue
Question 17 of 25

A data scientist is building a regression model on a small dataset of only 300 labeled records. A single 80/20 train/test split produces validation metrics that vary widely each time the seed changes, making it hard to trust the model's estimated performance. The scientist wants a more reliable estimate of generalization error before registering the model. Which change to the training/validation strategy best addresses this problem?

Reviewed for accuracy · Report an issue
Question 18 of 25

A data scientist working in a Databricks notebook on a Databricks Runtime for ML cluster wants to reuse a set of helper functions that are defined in a separate notebook named 'utils' located in the same workspace folder. They want the functions to become directly callable in their current notebook's Python session. Which approach accomplishes this?

Reviewed for accuracy · Report an issue
Question 19 of 25

A data scientist is setting up a new cluster to train a deep learning model with TensorFlow and track experiments with MLflow. They want an environment where common ML libraries and MLflow are preinstalled and GPU support is available without manual pip installs or configuration. Which cluster configuration best satisfies these requirements?

Reviewed for accuracy · Report an issue
Question 20 of 25

A retail analytics team needs to score customer churn predictions for its entire 40-million-row customer base once every night. The results are written to a Delta table that a BI dashboard reads the next morning. There is no requirement for sub-second response times, and no external application calls the model interactively. Which deployment paradigm best fits this workload?

Reviewed for accuracy · Report an issue
Question 21 of 25

During exploratory data analysis on a housing dataset, an analyst computes a covariance matrix between 'square_footage' (measured in thousands of square feet) and 'lot_size' (measured in acres). The covariance value is 45.2, and the analyst wants to determine the strength of the linear relationship between the two features to decide whether one is redundant. Why is the correlation coefficient a more appropriate metric than the raw covariance value here?

Reviewed for accuracy · Report an issue
Question 22 of 25

A data scientist runs df.describe() on a Spark DataFrame of loan applications before modeling. For the 'annual_income' column, the summary shows: count = 48,500 (out of 50,000 rows), min = -1, mean = 62,300, 50% (median) = 55,000, max = 9,999,999. Which single observation from these statistics most strongly indicates a data quality problem that should be investigated before feature engineering?

Reviewed for accuracy · Report an issue
Question 23 of 25

A data scientist is building a scikit-learn pipeline to preprocess a dataset before training a logistic regression model. The dataset contains numeric features with widely different ranges and several rows with missing values in those numeric columns. The scientist wants to (1) impute missing numeric values with the column median and (2) standardize the features. To avoid data leakage and produce correct results, in what order should these steps be arranged inside the pipeline, and how should they be fit?

Reviewed for accuracy · Report an issue
Question 24 of 25

A data scientist is using a Databricks Feature Engineering client to build a training dataset. They call fe.create_training_set() with a DataFrame containing a 'customer_id' column and several FeatureLookup objects that pull columns from a feature table keyed on 'customer_id'. When they later call fe.log_model() and score new data with fe.score_batch(), they want the model to automatically retrieve the looked-up features at inference time using only the raw input containing 'customer_id'. Which behavior of the returned TrainingSet supports this workflow?

Reviewed for accuracy · Report an issue
Question 25 of 25

A data scientist creates a feature table in Unity Catalog containing customer aggregates keyed by customer_id. They train a model using a FeatureLookup so that the training set joins these features automatically. When the model is later deployed for batch inference, the inference DataFrame only contains customer_id and a few raw request columns. Which behavior should the data scientist expect when using score_batch (or the equivalent Feature Engineering scoring API) with this logged model?

Reviewed for accuracy · Report an issue