Revizo / Databricks / DB-MLA

DATABRICKS CERTIFICATION STUDY GUIDE

DB-MLA practice questions.
Prepare with a clearer plan.

Validates foundational skills in machine learning using Databricks platform.

Download Revizo
Revizo certification practice question on iPhone

What to know about DB-MLA.

Validates foundational skills in machine learning using Databricks platform.

Format
Multiple choice and hands-on tasks
Duration
90 minutes
Passing score
700/1000
Recommended experience
6+ months of Databricks ML experience

Exam details are based on the available Databricks catalogue information. Confirm current requirements with the exam provider before booking.

How to prepare for DB-MLA.

Use the provider's current objectives as your source of truth, then organise your Revizo sessions around data and AI workflows, platform capabilities and the practical decisions named in the certification. The DB-MLA exam is listed as Multiple choice and hands-on tasks; your starting point should reflect 6+ months of Databricks ML experience.

01

Map the official objectives.

Read the current Databricks objectives and make a short list of the areas you need to revisit before booking DB-MLA.

02

Practise one area at a time.

Select DB-MLA in Revizo and use focused question sessions to test one topic or decision type at a time, rather than relying on a single long cram session.

03

Review, then repeat.

Use your results to return to incorrect answers, revisit the official material behind them and repeat short DB-MLA practice sessions until the gaps are clearer.

FREE PRACTICE PREVIEW

Read the first 20
DB-MLA questions.

Review each question, its correct answer and any available source explanation before continuing your certification study in Revizo.

FIRST 20 QUESTIONS

Answers & available explanations

QUESTION 1

A machine learning engineer has created a Feature Table new_table using Feature Store Client fs. When creating the table, they specified a metadata description with key information about the Feature Table. They now want to retrieve that metadata programmatically.
Which of the following lines of code will return the metadata description?

  1. AA. There is no way to return the metadata description programmatically.
  2. BB. fs.create_training_set("new_table")
  3. CC. fs.get_table("new_table").description
  4. DD. fs.get_table("new_table").load_df()
  5. EE. fs.get_table("new_table")
Show answer & explanation

Correct answer: C

Explanation

QUESTION 2

A data scientist has a Spark DataFrame spark_df. They want to create a new Spark DataFrame that contains only the rows from spark_df where the value in column price is greater than 0.
Which of the following code blocks will accomplish this task?

  1. AA. spark_df[spark_df["price"] > 0]
  2. BB. spark_df.filter(col("price") > 0)
  3. CC. SELECT * FROM spark_df WHERE price > 0
  4. DD. spark_df.loc[spark_df["price"] > 0,:]
  5. EE. spark_df.loc[:,spark_df["price"] > 0]
Show answer & explanation

Correct answer: B

Explanation

QUESTION 3

A health organization is developing a classification model to determine whether or not a patient currently has a specific type of infection. The organization's leaders want to maximize the number of positive cases identified by the model.
Which of the following classification metrics should be used to evaluate the model?

  1. AA. RMSE
  2. BB. Precision
  3. CC. Area under the residual operating curve
  4. DD. Accuracy
  5. EE. Recall
Show answer & explanation

Correct answer: E

Explanation

QUESTION 4

In which of the following situations is it preferable to impute missing feature values with their median value over the mean value?

  1. AA. When the features are of the categorical type
  2. BB. When the features are of the boolean type
  3. CC. When the features contain a lot of extreme outliers
  4. DD. When the features contain no outliers
  5. EE. When the features contain no missing values
Show answer & explanation

Correct answer: C

Explanation

QUESTION 5

A data scientist has replaced missing values in their feature set with each respective feature variable’s median value. A colleague suggests that the data scientist is throwing away valuable information by doing this.
Which of the following approaches can they take to include as much information as possible in the feature set?

  1. AA. Impute the missing values using each respective feature variable’s mean value instead of the median value
  2. BB. Refrain from imputing the missing values in favor of letting the machine learning algorithm determine how to handle them
  3. CC. Remove all feature variables that originally contained missing values from the feature set
  4. DD. Create a binary feature variable for each feature that contained missing values indicating whether each row’s value has been imputed
  5. EE. Create a constant feature variable for each feature that contained missing values indicating the percentage of rows from the feature that was originally missing
Show answer & explanation

Correct answer: D

Explanation

QUESTION 6

A data scientist is wanting to explore summary statistics for Spark DataFrame spark_df. The data scientist wants to see the count, mean, standard deviation, minimum, maximum, and interquartile range (IQR) for each numerical feature.
Which of the following lines of code can the data scientist run to accomplish the task?

  1. AA. spark_df.summary ()
  2. BB. spark_df.stats()
  3. CC. spark_df.describe().head()
  4. DD. spark_df.printSchema()
  5. EE. spark_df.toPandas()
Show answer & explanation

Correct answer: A

Explanation

QUESTION 7

An organization is developing a feature repository and is electing to one-hot encode all categorical feature variables. A data scientist suggests that the categorical feature variables should not be one-hot encoded within the feature repository.
Which of the following explanations justifies this suggestion?

  1. AA. One-hot encoding is not supported by most machine learning libraries.
  2. BB. One-hot encoding is dependent on the target variable’s values which differ for each application.
  3. CC. One-hot encoding is computationally intensive and should only be performed on small samples of training sets for individual machine learning problems.
  4. DD. One-hot encoding is not a common strategy for representing categorical feature variables numerically.
  5. EE. One-hot encoding is a potentially problematic categorical variable strategy for some machine learning algorithms.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 8

A data scientist has created two linear regression models. The first model uses price as a label variable and the second model uses log(price) as a label variable. When evaluating the RMSE of each model by comparing the label predictions to the actual price values, the data scientist notices that the RMSE for the second model is much larger than the RMSE of the first model.
Which of the following possible explanations for this difference is invalid?

  1. AA. The second model is much more accurate than the first model
  2. BB. The data scientist failed to exponentiate the predictions in the second model prior to computing the RMSE
  3. CC. The data scientist failed to take the log of the predictions in the first model prior to computing the RMSE
  4. DD. The first model is much more accurate than the second model
  5. EE. The RMSE is an invalid evaluation metric for regression problems
Show answer & explanation

Correct answer: B

Explanation

QUESTION 9

A data scientist uses 3-fold cross-validation when optimizing model hyperparameters for a regression problem. The following root-mean-squared-error values are calculated on each of the validation folds:
• 10.0
• 12.0
• 17.0
Which of the following values represents the overall cross-validation root-mean-squared error?

  1. AA. 13.0
  2. BB. 17.0
  3. CC. 12.0
  4. DD. 39.0
  5. EE. 10.0
Show answer & explanation

Correct answer: A

Explanation

QUESTION 10

A machine learning engineer is trying to scale a machine learning pipeline pipeline that contains multiple feature engineering stages and a modeling stage. As part of the cross-validation process, they are using the following code block:

A colleague suggests that the code block can be changed to speed up the tuning process by passing the model object to the estimator parameter and then placing the updated cv object as the final stage of the pipeline in place of the original model.
Which of the following is a negative consequence of the approach suggested by the colleague?

  1. AA. The model will take longer to train for each unique combination of hyperparameter values
  2. BB. The feature engineering stages will be computed using validation data
  3. CC. The cross-validation process will no longer be parallelizable
  4. DD. The cross-validation process will no longer be reproducible
  5. EE. The model will be refit one more per cross-validation fold
Show answer & explanation

Correct answer: B

Explanation

QUESTION 11

What is the name of the method that transforms categorical features into a series of binary indicator feature variables?

  1. AA. Leave-one-out encoding
  2. BB. Target encoding
  3. CC. One-hot encoding
  4. DD. Categorical embeddings
  5. EE. String indexing
Show answer & explanation

Correct answer: C

Explanation

QUESTION 12

A data scientist wants to parallelize the training of trees in a gradient boosted tree to speed up the training process. A colleague suggests that parallelizing a boosted tree algorithm can be difficult.
Which of the following describes why?

  1. AA. Gradient boosting is not a linear algebra-based algorithm which is required for parallelization.
  2. BB. Gradient boosting requires access to all data at once which cannot happen during parallelization.
  3. CC. Gradient boosting calculates gradients in evaluation metrics using all cores which prevents parallelization.
  4. DD. Gradient boosting is an iterative algorithm that requires information from the previous iteration to perform the next step.
  5. EE. Gradient boosting uses decision trees in each iteration which cannot be parallelized.
Show answer & explanation

Correct answer: D

Explanation

QUESTION 13

A data scientist wants to efficiently tune the hyperparameters of a scikit-learn model. They elect to use the Hyperopt library's fmin operation to facilitate this process. Unfortunately, the final model is not very accurate. The data scientist suspects that there is an issue with the objective_function being passed as an argument to fmin.
They use the following code block to create the objective_function:

Which of the following changes does the data scientist need to make to their objective_function in order to produce a more accurate model?

  1. AA. Add test set validation process
  2. BB. Add a random_state argument to the RandomForestRegressor operation
  3. CC. Remove the mean operation that is wrapping the cross_val_score operation
  4. DD. Replace the r2 return value with -r2
  5. EE. Replace the fmin operation with the fmax operation
Show answer & explanation

Correct answer: D

Explanation

QUESTION 14

A data scientist is attempting to tune a logistic regression model logistic using scikit-learn. They want to specify a search space for two hyperparameters and let the tuning process randomly select values for each evaluation.
They attempt to run the following code block, but it does not accomplish the desired task:

Which of the following changes can the data scientist make to accomplish the task?

  1. AA. Replace the GridSearchCV operation with RandomizedSearchCV
  2. BB. Replace the GridSearchCV operation with cross_validate
  3. CC. Replace the GridSearchCV operation with ParameterGrid
  4. DD. Replace the random_state=0 argument with random_state=1
  5. EE. Replace the penalty= ['12', '11'] argument with penalty=uniform ('12', '11')
Show answer & explanation

Correct answer: A

Explanation

QUESTION 15

Which of the following tools can be used to parallelize the hyperparameter tuning process for single-node machine learning models using a Spark cluster?

  1. AA. MLflow Experiment Tracking
  2. BB. Spark ML
  3. CC. Autoscaling clusters
  4. DD. Hyperopt
  5. EE. Delta Lake
Show answer & explanation

Correct answer: D

Explanation

QUESTION 16

Which of the following describes the relationship between native Spark DataFrames and pandas API on Spark DataFrames?

  1. AA. pandas API on Spark DataFrames are single-node versions of Spark DataFrames with additional metadata
  2. BB. pandas API on Spark DataFrames are more performant than Spark DataFrames
  3. CC. pandas API on Spark DataFrames are made up of Spark DataFrames and additional metadata
  4. DD. pandas API on Spark DataFrames are less mutable versions of Spark DataFrames
  5. EE. pandas API on Spark DataFrames are unrelated to Spark DataFrames
Show answer & explanation

Correct answer: C

Explanation

QUESTION 17

A data scientist has written a data cleaning notebook that utilizes the pandas library, but their colleague has suggested that they refactor their notebook to scale with big data.
Which of the following approaches can the data scientist take to spend the least amount of time refactoring their notebook to scale with big data?

  1. AA. They can refactor their notebook to process the data in parallel.
  2. BB. They can refactor their notebook to use the PySpark DataFrame API.
  3. CC. They can refactor their notebook to use the Scala Dataset API.
  4. DD. They can refactor their notebook to use Spark SQL.
  5. EE. They can refactor their notebook to utilize the pandas API on Spark.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 18

A data scientist has defined a Pandas UDF function predict to parallelize the inference process for a single-node model:

They have written the following incomplete code block to use predict to score each record of Spark DataFrame spark_df:

Which of the following lines of code can be used to complete the code block to successfully complete the task?

  1. AA. predict(*spark_df.columns)
  2. BB. mapInPandas(predict)
  3. CC. predict(Iterator(spark_df))
  4. DD. mapInPandas(predict(spark_df.columns))
  5. EE. predict(spark_df.columns)
Show answer & explanation

Correct answer: A

Explanation

QUESTION 19

Which of the Spark operations can be used to randomly split a Spark DataFrame into a training DataFrame and a test DataFrame for downstream use?

  1. AA. TrainValidationSplit
  2. BB. DataFrame.where
  3. CC. CrossValidator
  4. DD. TrainValidationSplitModel
  5. EE. DataFrame.randomSplit
Show answer & explanation

Correct answer: E

Explanation

QUESTION 20

A data scientist is using Spark ML to engineer features for an exploratory machine learning project.
They decide they want to standardize their features using the following code block:

Upon code review, a colleague expressed concern with the features being standardized prior to splitting the data into a training set and a test set.
Which of the following changes can the data scientist make to address the concern?

  1. AA. Utilize the MinMaxScaler object to standardize the training data according to global minimum and maximum values
  2. BB. Utilize the MinMaxScaler object to standardize the test data according to global minimum and maximum values
  3. CC. Utilize a cross-validation process rather than a train-test split process to remove the need for standardizing data
  4. DD. Utilize the Pipeline API to standardize the training data according to the test data's summary statistics
  5. EE. Utilize the Pipeline API to standardize the test data according to the training data's summary statistics
Show answer & explanation

Correct answer: E

Explanation

Build a focused DB-MLA practice routine.

Choose DB-MLA in Revizo and work through original, question-by-question practice on your iPhone. Review results, revisit what needs attention and keep your next session tied to one specific certification objective.

Practise DB-MLA with Revizo

DB-MLA practice questions.

Is Revizo the official Databricks exam?

No. Revizo is an independent iPhone app for certification practice. Refer to the provider's official resources for current exam policies and registration.

How should I use these DB-MLA practice questions?

Use the exam code to select the matching certification in Revizo, then build short, focused sessions around the areas you want to review.

Are Revizo questions copied from live examinations?

No. Revizo provides original practice questions for certification study. Use the provider's official objectives, documentation and policies as the source of truth for your preparation.

What should I use alongside DB-MLA practice questions?

Use the current Databricks objectives, documentation and registration guidance as your source of truth. Revizo is designed to support focused practice, not replace the provider's official materials.

Where can I confirm current DB-MLA requirements?

Check the official Databricks exam page for the latest objectives, registration details and policies.