ML Engineer - Associate Practice Exam — ML Engineer - Associate

1. The question bank is cloud‑connected and updates automatically; no manual re‑acquisition is required.

2. Start practicing right after activating the question bank. It supports simultaneous use on websites and mini‑programs, with one‑click bilingual switching for each question.

3. Functions include online practice, mock tests, note‑taking, wrong‑question recording, etc., valid for one year.

4. Recommended practice order: Turn on review mode to browse questions → Complete sequential practice → Take mock exams for pre‑test self‑assessment.

5. Activation codes can be purchased by clicking Buy Now on the right or via our official Tmall flagship store.

6. For inquiries, contact customer service through mini‑program, WeChat, WhatsApp or LINE.

Exam information

Certification Name:Databricks Certified Machine Learning Associate

Certification Level:Associate-level, targeting entry-to-intermediate machine learning practitioners focused on ML workflows on Databricks Lakehouse Platform :Core Positioning|Validates foundational ML skills using Databricks native tools including AutoML, Feature Store, MLflow, and Spark ML for end-to-end ML lifecycle management (data exploration, feature engineering, model training, deployment, and monitoring)

Validity Period:Valid for **2 years**; recertification on the latest exam version is required upon expiration

Recommended Experience:Minimum **6+ months** of hands-on experience performing ML tasks on Databricks, including Python coding, Spark ML, feature stores, and MLflow usage


4. Result disclosure: Only pass/fail outcome provided; detailed numerical exam scores are not released

Sample questions

ML Engineer - Associate · Q1
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?
  • A.
    There is no way to return the metadata description programmatically.
  • B.
    fs.create_training_set("new_table")
  • C.
    fs.get_table("new_table").description
  • D.
    fs.get_table("new_table").load_df()
  • E.
    fs.get_table("new_table")

Answer: C

This question tests core feature store operation knowledge required for the All Certified Machine Learning Associate certification, specifically programmatic access to feature table metadata. The scenario requires retrieving a custom description metadata field defined when creating the "new_table" Feature Table via the Feature Store client fs. Standard feature store implementations across major cloud and open source platforms follow a consistent API pattern where the get_table method retrieves the Feature Table resource object, which exposes a dedicated description attribute for the user-specified metadata description. Option C directly implements this pattern, returning only the required metadata field without unnecessary data retrieval or unrelated object creation, making it the correct solution. Option Analysis: A. Incorrect. Programmatic access to feature table metadata is a core feature store capability designed to support governance, discoverability, and reproducibility of ML workflows, so the description is fully accessible via the feature store client API. This option misrepresents foundational feature store functionality covered in the certification. B. Incorrect. The create_training_set method is used to join features from one or more feature tables with label data to generate a training dataset for model development. It does not expose or return feature table metadata, so it is unrelated to the scenario's requirement. C. Correct. The fs.get_table("new_table") call first fetches the Feature Table object for the specified table from the feature store. The .description property of this object directly returns the custom metadata description that was defined during table creation, which exactly matches the requirement stated in the question. D. Incorrect. The load_df() method retrieves the actual feature data values stored in the feature table as a DataFrame. It is designed for accessing feature data for training or inference, not for retrieving descriptive metadata about the table itself. E. Incorrect. fs.get_table("new_table") returns the full Feature Table object, which includes many additional attributes besides the description (such as feature schema, creation timestamp, online store configuration, and lineage data). It does not return only the specific metadata description requested in the scenario. Key Concepts: 1. Feature Store Metadata Governance: A core function of feature stores is centralizing both feature data and associated metadata (descriptions, owners, lineage, compliance tags) to eliminate feature silos and improve ML workflow reproducibility. Programmatic access to this metadata is a foundational competency tested in the certification. 2. Feature Store API Use Case Segmentation: Feature store client APIs are organized by distinct use cases, including metadata retrieval, feature data loading, training set creation, and feature ingestion. Understanding the purpose of each method and property is required to avoid incorrect implementation. 3. Feature Table Object Structure: A retrieved Feature Table object contains two categories of attributes: operational attributes for interacting with stored feature data, and descriptive metadata attributes that store user-provided and system-generated information about the table, with the description attribute being the standard location for custom table metadata. References: Databricks Feature Store API Reference, Amazon SageMaker Feature Store Metadata Management, https://docs.aws.amazon.com/sagemaker/latest/dg/feature-store-feature-group-metadata.html
ML Engineer - Associate · Q2
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?
  • A.
    spark_df[spark_df["price"] > 0]
  • B.
    spark_df.filter(col("price") > 0)
  • C.
    SELECT * FROM spark_df WHERE price > 0
  • D.
    spark_df.loc[spark_df["price"] > 0,:]
  • E.
    spark_df.loc[:,spark_df["price"] > 0]

Answer: B

The question requires filtering a Spark DataFrame to retain only rows where the price column value is greater than 0, a common data cleaning task tested in the All Certified Machine Learning Associate exam. The suggested answer B uses the native Spark DataFrame filter() transformation, which is designed to evaluate a boolean condition across all rows and return a new DataFrame containing only rows that satisfy the condition. The col() function from the pyspark.sql.functions module explicitly references the price column to construct the condition, adhering to official Spark API best practices for portability and readability. This approach works natively in distributed Spark environments without additional setup, directly addressing the task requirements. Option Analysis: A. Incorrect. This bracket indexing syntax is native to pandas DataFrames, not part of the standard Spark DataFrame API. While limited support for this syntax exists in newer Spark versions for pandas compatibility, it is not the recommended or universally compatible approach for Spark row filtering, and does not align with the standard Spark operations tested in the certification. B. Correct. This code uses the official Spark DataFrame filter() transformation paired with an explicit column reference via col() to define the boolean condition price > 0. It follows Spark API standards, works across all supported Spark versions, and correctly returns a new DataFrame with only rows meeting the stated condition. C. Incorrect. This is a raw SQL query string that cannot be executed directly against a Spark DataFrame. To run this SQL logic, you would first need to register the DataFrame as a temporary view using createOrReplaceTempView() then pass the query to spark.sql(), so the code as written is invalid. D. Incorrect. The loc accessor is an exclusive method for pandas DataFrames, and Spark DataFrames do not implement a loc attribute. This code will throw an AttributeError when run on a Spark DataFrame. E. Incorrect. Like option D, the loc accessor does not exist for Spark DataFrames. Additionally, the syntax shown would attempt to select columns rather than filter rows even if it were valid pandas syntax, so it fails to address the task requirement. Key Concepts: 1. Spark DataFrame Filter Transformations: Filter() and its alias where() are core Spark transformations used for row-wise filtering of distributed DataFrames, a fundamental data preprocessing skill for machine learning practitioners working with large datasets. They accept boolean column expressions to define inclusion criteria for rows. 2. Spark vs Pandas API Distinction: A common exam testing point is differentiating methods for distributed Spark DataFrames versus local pandas DataFrames. Methods like loc, iloc, and implicit bracket indexing are specific to pandas and not part of the standard Spark DataFrame API. 3. Spark Column Reference Best Practices: Using the col() function from pyspark.sql.functions to reference DataFrame columns in expressions is the recommended, portable approach that avoids namespace conflicts and works across all Spark operation contexts. References: PySpark DataFrame.filter() Documentation, https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.filter.html Spark SQL and DataFrames Guide, https://spark.apache.org/docs/latest/sql-programming-guide.html#dataframe-operations
ML Engineer - Associate · Q3
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?
  • A.
    RMSE
  • B.
    Precision
  • C.
    Area under the residual operating curve
  • D.
    Accuracy
  • E.
    Recall

Answer: E

This question assesses competency in classification metric selection aligned to business requirements, a core domain for the All Certified Machine Learning Associate certification. The scenario describes a binary classification use case to detect patient infection, with the explicit priority of maximizing the number of actual positive cases identified by the model. This priority translates to minimizing false negatives, or cases where a patient has the infection but the model incorrectly labels them as negative. Recall, the correct metric, directly measures the share of all actual positive cases that are correctly detected by the model, so optimizing for recall ensures the maximum number of infected patients are identified. Option Analysis: A. RMSE is incorrect. Root Mean Squared Error is an evaluation metric for regression models that predict continuous target variables, not for classification models that predict categorical outcomes like infection status, so it is not applicable to this use case. B. Precision is incorrect. Precision measures the share of predicted positive cases that are actually positive, prioritizing minimization of false positives. This would be the appropriate metric if the organization wanted to avoid incorrectly labeling patients as infected, but does not align with the goal of maximizing identified positive cases. C. Area under the residual operating curve is incorrect. First, "residual operating curve" is not a valid machine learning metric; the analogous valid metric is Area Under the Receiver Operating Characteristic Curve (AUC-ROC), which measures overall model performance across all classification thresholds, but does not specifically prioritize maximizing detected positive cases as required here. D. Accuracy is incorrect. Accuracy measures the total share of correct predictions (both true positives and true negatives) across all samples. It weights correct negative and positive predictions equally, and performs poorly for imbalanced classification use cases common in healthcare diagnostics, so it does not align with the priority of maximizing positive case identification. E. Recall is correct. Recall also called sensitivity or true positive rate, is calculated as True Positives divided by the sum of True Positives and False Negatives. Optimizing for recall reduces the number of missed positive cases, directly meeting the organization's goal of maximizing the number of positive infection cases identified by the model. Key Concepts: 1. Business-aligned Metric Selection: This core certification knowledge point requires candidates to select evaluation metrics based on specific business priorities and cost of model errors, rather than using generic default metrics. For high-stakes use cases like healthcare diagnostics, the cost of false negatives (missed infections) often outweighs the cost of false positives, making recall the appropriate metric. 2. Precision-Recall Tradeoff: This foundational concept describes the inverse relationship between precision and recall for classification models: adjusting the classification threshold to increase recall (capture more true positives) will typically reduce precision (increase false positives), and vice versa. Candidates are expected to understand how to balance this tradeoff based on use case requirements. 3. Classification vs Regression Metric Distinction: Candidates must be able to differentiate between metrics designed for categorical target prediction (classification) and continuous target prediction (regression) to avoid applying irrelevant metrics to a given use case. References: Google Machine Learning Crash Course: Classification: Precision and Recall, https://developers.google.com/machine-learning/crash-course/classification/precision-and-recall Microsoft Learn: Evaluate classification models
ML Engineer - Associate · Q4
Question #4 In which of the following situations is it preferable to impute missing feature values with their median value over the mean value?
  • A.
    When the features are of the categorical type
  • B.
    When the features are of the boolean type
  • C.
    When the features contain a lot of extreme outliers
  • D.
    When the features contain no outliers
  • E.
    When the features contain no missing values

Answer: C

This question assesses core data preprocessing knowledge for missing value imputation, a key domain tested in the All Certified Machine Learning Associate certification. The median is the middle value of a sorted feature distribution, while the mean is the arithmetic average of all observed feature values. The mean is highly sensitive to extreme outlier values, as outliers pull the mean toward their extreme position, leading to a misrepresentation of the feature’s true central tendency. Imputing missing values with a skewed mean introduces systematic bias into the dataset, which degrades downstream machine learning model performance. The median, by contrast, is unaffected by extreme outliers, so it provides a far more accurate representation of central tendency for outlier-heavy distributions, making it the preferred imputation value in this scenario as described in option C. Option Analysis: A. Incorrect. Categorical features represent discrete non-numeric (or ordinal numeric) categories, so valid mean and median values cannot be calculated for these features. The standard imputation method for categorical features is the mode (most frequent value), so this option is irrelevant to the comparison between mean and median imputation. B. Incorrect. Boolean features only take two possible values (0/1 or True/False). The standard imputation method for boolean features is also the mode, not mean or median. Additionally, boolean values cannot have extreme outliers, so the robustness comparison between mean and median does not apply to this feature type. C. Correct. As outlined in the answer analysis, the mean is a non-robust statistic heavily skewed by extreme outliers, while the median is a robust measure of central tendency that remains unchanged even when extreme outliers are present. Imputing missing values with the median for outlier-heavy features avoids the bias introduced by skewed mean values, producing higher quality input data for machine learning models. This aligns with standard preprocessing best practices tested in the All Certified Machine Learning Associate certification. D. Incorrect. When a feature contains no outliers, the mean is an unbiased measure of central tendency, and is often preferred over median for imputation because it incorporates information from all existing data points rather than only the middle value of the distribution. There is no benefit to using median over mean in the absence of outliers. E. Incorrect. If a feature has no missing values, no imputation is required at all, so this scenario is entirely irrelevant to the question of choosing between mean and median imputation methods. Key Concepts: 1. Missing Value Imputation: A core data preprocessing step where missing entries in feature columns are replaced with statistically valid substitute values to retain samples that would otherwise be discarded, directly impacting downstream model performance. This is a mandatory knowledge area for the All Certified Machine Learning Associate certification. 2. Robustness of Central Tendency Measures: The median is a robust statistic, meaning it is not affected by extreme outlier values in a distribution, while the arithmetic mean is a non-robust statistic heavily skewed by outliers. Understanding this difference is critical for selecting appropriate imputation strategies. 3. Outlier Impact on Data Quality: Extreme outliers distort calculations for non-robust metrics, leading to biased input data if unaccounted for during preprocessing. Identifying when to use robust measures like the median to mitigate outlier bias is a tested competency in the certification. References: scikit-learn Official Preprocessing Documentation: Imputation of Missing Values, https://scikit-learn.org/stable/modules/preprocessing.html#imputation-of-missing-values Google Machine Learning Crash Course: Data Cleaning
ML Engineer - Associate · Q5
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?
  • A.
    Impute the missing values using each respective feature variable’s mean value instead of the median value
  • B.
    Refrain from imputing the missing values in favor of letting the machine learning algorithm determine how to handle them
  • C.
    Remove all feature variables that originally contained missing values from the feature set
  • D.
    Create a binary feature variable for each feature that contained missing values indicating whether each row’s value has been imputed
  • E.
    Create a constant feature variable for each feature that contained missing values indicating the percentage of rows from the feature that was originally missing

Answer: D

When imputing missing values with a measure of central tendency like median, the primary loss of information is the signal associated with why a value was missing in the first place. Missing values are often not randomly distributed; for example, missing income data in a customer dataset may indicate a user chose not to disclose sensitive information, which correlates with purchasing behavior. The suggested answer D directly addresses this gap by adding a separate binary feature that tracks whether a given row's value was imputed, preserving both the estimated value from the median imputation and the signal of original missingness. This approach ensures no available information is discarded, directly resolving the colleague's concern, and aligns with core preprocessing best practices tested in the All Certified Machine Learning Associate certification. Option Analysis: A. Incorrect. Replacing median imputation with mean imputation does not address the loss of missingness information, which is the core concern raised. Mean imputation is also more sensitive to outlier values than median imputation for skewed distributions, and provides no additional information about which values were originally missing. B. Incorrect. Most standard machine learning algorithms (including linear regression, support vector machines, and standard tree implementations) cannot natively process missing values, so refraining from imputation will either cause training errors or force the algorithm to drop missing values implicitly, leading to greater information loss than imputation with proper indicator features. C. Incorrect. Removing all features with original missing values discards all non-missing data points in those features, leading to far greater information loss than median imputation. This approach is only justified if a feature has an extremely high proportion of missing values with no predictive signal, and does not align with the goal of retaining maximum information. D. Correct. Adding a binary indicator feature for each originally missing feature captures the predictive signal associated with missingness, while retaining the imputed median value to represent the expected feature value. This is a standard, widely recommended preprocessing step to maximize information retention during missing value handling, and directly solves the problem of lost information identified by the colleague. E. Incorrect. A constant feature that lists the overall missing percentage for a feature is identical across all rows in the dataset. Constant features provide no predictive value, as they do not vary between samples, so this approach adds no useful information to the feature set. Key Concepts: 1. Missing Value Imputation: Imputation is the process of replacing missing data points with statistically derived estimates to enable machine learning model training, but standard imputation with central tendency measures discards information about which values were originally missing. 2. Predictive Missingness Signal: Missing values are often not randomly distributed, and the fact that a value is missing can carry meaningful predictive power for a given machine learning task, which should be explicitly encoded as a feature where possible. 3. Feature Engineering for Missing Data: Binary indicator flags for imputed values are a standard low-cost feature engineering technique to preserve missingness signal without introducing bias or discarding existing data points. References: Scikit-learn Official Documentation: Imputation of Missing Values, https://scikit-learn.org/stable/modules/impute.html#marking-imputed-values Google Machine Learning Crash Course: Cleaning Data, https://developers.google.com/machine-learning/crash-course/representation/cleaning-data

FAQ

How many practice questions are available for ML Engineer - Associate?

This question bank includes 140 ML Engineer - Associate practice questions covering single and multiple choice, each with answers and explanations.

Are ML Engineer - Associate practice questions available in Chinese and English?

Yes, ML Engineer - Associate practice questions are provided in both Chinese and English.

Can I try ML Engineer - Associate practice questions for free?

Yes. Free sample questions are available on this page, and the full question bank is available after signing up on Zhangxuetu.