Leads4pass > Databricks > Databricks Certifications > DATABRICKS-MACHINE-LEARNING-ASSOCIATE > DATABRICKS-MACHINE-LEARNING-ASSOCIATE Online Practice Questions and Answers

DATABRICKS-MACHINE-LEARNING-ASSOCIATE Online Practice Questions and Answers

Questions 4

The implementation of linear regression in Spark ML first attempts to solve the linear regression problem using matrix decomposition, but this method does not scale well to large datasets with a large number of variables.

Which of the following approaches does Spark ML use to distribute the training of a linear regression model for large data?

A. Logistic regression

B. Spark ML cannot distribute linear regression training

C. Iterative optimization

D. Least-squares method

E. Singular value decomposition

Buy Now
Questions 5

A data scientist has developed a random forest regressor rfr and included it as the final stage in a Spark MLPipeline pipeline. They then set up a cross-validation process with pipeline as the estimator in the following code block:

Which of the following is a negative consequence of includingpipelineas the estimator in the cross-validation process rather thanrfras the estimator?

A. The process will have a longer runtime because all stages of pipeline need to be refit or retransformed with each mode

B. The process will leak data from the training set to the test set during the evaluation phase

C. The process will be unable to parallelize tuning due to the distributed nature of pipeline

D. The process will leak data prep information from the validation sets to the training sets for each model

Buy Now
Questions 6

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:

1.

10.0

2.

12.0

3.

17.0

Which of the following values represents the overall cross-validation root-mean-squared error?

A. 13.0

B. 17.0

C. 12.0

D. 39.0

E. 10.0

Buy Now
Questions 7

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?

A. spark_df.summary ()

B. spark_df.stats()

C. spark_df.describe().head()

D. spark_df.printSchema()

E. spark_df.toPandas()

Buy Now
Questions 8

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

A. MLflow Experiment Tracking

B. Spark ML

C. Autoscaling clusters

D. Autoscaling clusters

E. Delta Lake

Buy Now
Questions 9

A data scientist uses 3-fold cross-validation and the following hyperparameter grid when optimizing model hyperparameters via grid search for a classification problem:

Hyperparameter 1: [2, 5, 10] Hyperparameter 2: [50, 100]

Which of the following represents the number of machine learning models that can be trained in parallel during this process?

A. 3

B. 5

C. 6

D. 18

Buy Now
Questions 10

A data scientist is using Spark SQL to import their data into a machine learning pipeline. Once the data is imported, the data scientist performs machine learning tasks using Spark ML.

Which of the following compute tools is best suited for this use case?

A. Single Node cluster

B. Standard cluster

C. SQL Warehouse

D. None of these compute tools support this task

Buy Now
Questions 11

A data scientist wants to efficiently tune the hyperparameters of a scikit-learn model. They elect to use the Hyperopt library'sfminoperation to facilitate this process. Unfortunately, the final model is not very accurate. The data scientist suspects that there is an issue with theobjective_functionbeing passed as an argument tofmin.

They use the following code block to create theobjective_function:

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

A. Add test set validation process

B. Add a random_state argument to the RandomForestRegressor operation

C. Remove the mean operation that is wrapping the cross_val_score operation

D. Replace the r2 return value with-r2

E. Replace the fmin operation with the fmax operation

Buy Now
Questions 12

A data scientist has developed a machine learning pipeline with a static input data set using Spark ML, but the pipeline is taking too long to process. They increase the number of workers in the cluster to get the pipeline to run more efficiently. They notice that the number of rows in the training set after reconfiguring the cluster is different from the number of rows in the training set prior to reconfiguring the cluster.

Which of the following approaches will guarantee a reproducible training and test set for each model?

A. Manually configure the cluster

B. Write out the split data sets to persistent storage

C. Set a speed in the data splitting operation

D. Manually partition the input data

Buy Now
Questions 13

A data scientist has been given an incomplete notebook from the data engineering team. The notebook uses a Spark DataFrame spark_df on which the data scientist needs to perform further feature engineering. Unfortunately, the data scientist has not yet learned the PySpark DataFrame API.

Which of the following blocks of code can the data scientist run to be able to use the pandas API on Spark?

A. import pyspark.pandas as ps df = ps.DataFrame(spark_df)

B. import pyspark.pandas as ps df = ps.to_pandas(spark_df)

C. spark_df.to_pandas()

D. import pandas as pd df = pd.DataFrame(spark_df)

Buy Now
Exam Name: Databricks Certified Machine Learning Associate
Last Update: Jul 08, 2026
Questions: 74
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99