Operationalizing ML and Generative AI Solutions · 27% of the exam

Implement ML model lifecycle and operations: free practice questions

5 sample questions from our 68-question bank for this domain — answers and explanations included. These are the same scenario-based style as the real Microsoft exam.

1. An ML engineer is configuring an Automated ML job in Azure Machine Learning to predict customer churn. The dataset is highly imbalanced, with only 3% positive (churned) labels. The engineer wants Automated ML to automatically try techniques to address class imbalance and to optimize for the minority class. Which two configuration settings should the engineer apply to the AutoML classification job? (Select TWO)

  • A. Set the primary_metric to 'AUC_weighted' or 'average_precision_score_weighted' instead of 'accuracy'✓ Correct
  • B. Enable featurization with the mode set to 'auto' so that Automated ML can apply SMOTE oversampling and class-weight balancing✓ Correct
  • C. Set enable_class_balancing=True in the AutoML classification task settings
  • D. Set the n_cross_validations parameter to 1 to reduce training time and allow more iterations
  • E. Set blocked_models to exclude LogisticRegression, because it cannot handle imbalanced datasets
Explanation

Using a weighted or macro-averaged metric such as AUC_weighted or average_precision_score_weighted ensures that Automated ML's model selection is driven by performance on the minority class, rather than being dominated by the majority class as with raw accuracy. This is the recommended primary metric change for imbalanced classification. Setting featurization mode to 'auto' enables Automated ML's automatic featurization pipeline, which includes class imbalance detection and mitigation techniques such as oversampling (SMOTE) and class-weight adjustments. There is no enable_class_balancing parameter in the Azure Machine Learning Automated ML SDK v2 API; this is a distractor reflecting a plausible but non-existent setting. Setting n_cross_validations to 1 effectively disables cross-validation, which would produce unreliable performance estimates especially on an imbalanced dataset, and is counterproductive. LogisticRegression supports class_weight='balanced' natively and is one of the models that handles imbalance reasonably well; blocking it would reduce the model search space without benefit.

2. A data scientist is designing an Azure Machine Learning pipeline that includes a Responsible AI component to evaluate a text classification model. The team needs to assess three aspects: (1) model fairness across language subgroups, (2) feature importance for individual predictions, and (3) systematic identification of input segments where the model fails most often. Which THREE Responsible AI dashboard components should be added to address all three requirements?

  • A. Fairness assessment✓ Correct
  • B. Interpretability (feature importance)✓ Correct
  • C. Error analysis✓ Correct
  • D. Counterfactual analysis
  • E. Data explorer
  • F. Causal analysis
Explanation

Fairness assessment measures performance disparities across demographic or categorical subgroups (here, language subgroups), satisfying requirement 1. Interpretability (feature importance) surfaces global and local feature attribution scores, explaining which input features drive individual predictions, satisfying requirement 2. Error analysis identifies cohorts and input segments with the highest error rates, helping engineers find systematic failure modes, satisfying requirement 3. Counterfactual analysis generates what-if perturbations for individual instances to explain prediction boundaries but does not address group fairness or systematic error patterns. Data explorer provides statistical summaries and distributions of the dataset but is not an evaluation component for the three stated requirements. Causal analysis estimates causal treatment effects of features on outcomes, which is relevant for intervention planning but does not address fairness, feature attribution for predictions, or error cohort identification.

3. A senior ML engineer is reviewing a model's lineage in the Azure Machine Learning model registry. They want to trace which training pipeline run produced a specific registered model version, which dataset version was used, and which environment was active during training—all from a single view. Which Azure Machine Learning feature provides this end-to-end lineage traceability?

  • A. The model version's lineage tab in Azure Machine Learning studio, which surfaces the linked job, dataset, and environment✓ Correct
  • B. The Azure Monitor Logs workspace, queried with a KQL query against the AMLRunStatusChangedEvent table
  • C. The MLflow Model Registry UI accessed through the MLflow tracking server endpoint
  • D. The Azure Purview data catalog, scanned to discover ML assets registered in the workspace
Explanation

Azure Machine Learning studio's model version lineage tab natively surfaces the complete provenance graph: the training job that produced the model, the versioned data assets consumed, the registered environment, and the pipeline that orchestrated training—all accessible from the model registry entry. Azure Monitor Logs stores operational events but does not provide a structured lineage graph linking model versions to datasets and environments. The MLflow Model Registry UI shows run-to-model associations but does not surface Azure ML-specific lineage details such as dataset versions or pipeline run hierarchies as richly as the studio UI. Azure Purview can catalog ML assets discovered by scanning Azure ML workspaces but is a governance tool, not the primary surface for real-time lineage within an Azure ML workspace.

4. An MLOps engineer needs to configure an Azure Machine Learning managed online endpoint to serve two versions of a regression model simultaneously — the current production version and a new challenger version — so that 10% of live traffic is routed to the challenger. The engineer wants Azure ML to handle traffic splitting without any external load balancer. What is the correct approach?

  • A. Create two separate managed online endpoints, one per model version, and use Azure Front Door to split traffic 90/10.
  • B. Deploy both model versions as separate deployments under the same managed online endpoint and set the traffic weights to 90 and 10 respectively.✓ Correct
  • C. Deploy both model versions as separate deployments under the same managed online endpoint and enable A/B testing mode in the endpoint's advanced settings.
  • D. Use a batch endpoint with two deployments and configure the default deployment to route 10% of records to the challenger.
Explanation

Azure Machine Learning managed online endpoints natively support multiple deployments under a single endpoint with configurable traffic weights that must sum to 100. Setting weights of 90 and 10 routes that proportion of live requests to each deployment without any external component. Option A requires an external load balancer and defeats the purpose of the native feature. Option C is incorrect: there is no separate 'A/B testing mode' toggle in managed online endpoint advanced settings; traffic weights achieve this directly. Option D is wrong because batch endpoints process offline data in bulk and do not perform live traffic splitting.

5. A team is building a training pipeline in Azure Machine Learning where a feature engineering step outputs a processed dataset that is consumed by a model training step. After successfully running the pipeline several times with unchanged feature engineering code and input data, the team notices that the feature engineering step re-runs every time even though its inputs have not changed, increasing pipeline duration unnecessarily. What should the team configure to avoid redundant re-execution of the feature engineering step?

  • A. Enable step output reuse by ensuring the step's is_deterministic property is set to True (the default) and that the step's input data and code are unchanged between runs; AzureML will then cache the step output and skip re-execution✓ Correct
  • B. Set the pipeline's default_datastore to a premium Azure Blob storage tier to reduce step execution latency
  • C. Add an explicit dependency between the feature engineering and training steps using the pipeline's add_dependency() method to prevent parallel execution
  • D. Manually copy the feature engineering step output to a registered dataset after each run and hardcode the dataset version in the training step input
Explanation

Azure Machine Learning pipeline step caching (output reuse) is controlled by the is_deterministic flag on each step. When set to True (the default), AzureML computes a cache key based on the step's code, environment, and input data. If a matching cache entry exists from a prior run, AzureML skips re-execution and reuses the cached output, saving compute time. The team should verify this flag has not been inadvertently set to False and that the inputs are genuinely unchanged. Changing the datastore storage tier affects read/write throughput but has no effect on whether AzureML decides to re-execute a step; caching decisions are independent of storage performance. add_dependency() controls execution order (ensuring steps run sequentially rather than in parallel) but does not enable output caching; it is used to express data flow dependencies, not to skip re-execution. Manually copying outputs and hardcoding dataset versions is a fragile, manual workaround that defeats the purpose of a managed pipeline and does not leverage AzureML's built-in caching mechanism.

63 more questions in this domain

Practice the full bank with instant grading, flashcards, and a timed mock exam.

Start practicing free
Implement ML model lifecycle and operations — Free Operationalizing ML and Generative AI Solutions Practice Questions | DataCertPrep — Certification Prep