Microsoft Machine Learning Operations Engineer Associate (AI-300) · 29% practice allocation

Microsoft AI-300: Implement machine learning model lifecycle and operations Practice Questions

5 free sample questions from the Implement machine learning model lifecycle and operations domain, with answers and explanations. The full AI-300 bank has 251 questions across 5 domains. Questions are scenario-based and written from the official Microsoft exam guide.

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. Enable featurization with the mode set to 'auto' so that Automated ML can apply SMOTE oversampling and class-weight balancing✓ Correct
  • B. Set blocked_models to exclude LogisticRegression, because it cannot handle imbalanced datasets
  • C. Set the primary_metric to 'AUC_weighted' or 'average_precision_score_weighted' instead of 'accuracy'✓ Correct
  • D. Set enable_class_balancing=True in the AutoML classification task settings
  • E. Set the n_cross_validations parameter to 1 to reduce training time and allow more iterations
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 at a logistics company is setting up MLflow experiment tracking in Azure Machine Learning. The team wants to log model parameters, metrics, and artifacts automatically without modifying the training script. Which MLflow feature should the data scientist enable to achieve this?

  • A. mlflow.autolog()✓ Correct
  • B. mlflow.set_tracking_uri() pointed to the Azure ML workspace
  • C. mlflow.log_param() called at the start of each run
  • D. mlflow.start_run() with nested=True
Explanation

mlflow.autolog() enables automatic logging of parameters, metrics, and artifacts for supported frameworks without requiring explicit log calls in the training script. mlflow.log_param() requires manual calls for each parameter and does not log metrics or artifacts automatically. mlflow.set_tracking_uri() configures where runs are stored but does not enable automatic logging. mlflow.start_run() with nested=True is used for hierarchical run organization, not for automatic logging.

3.

A machine learning team is designing a hyperparameter tuning job in Azure Machine Learning. They have a large search space with 20 hyperparameters and a training script that takes approximately 4 hours per run. Budget and time are constrained. They want to automatically terminate poorly performing runs early to save compute cost. Which TWO features of Azure Machine Learning hyperparameter tuning should they configure to meet these goals? (Select TWO.)

  • A. Bandit early termination policy✓ Correct
  • B. Median stopping early termination policy
  • C. Using a synchronous (sequential) sweep job to guarantee reproducibility
  • D. Bayesian sampling for the hyperparameter search strategy✓ Correct
  • E. Setting max_total_runs to an arbitrarily large number to ensure full coverage
  • F. Grid search sampling for the hyperparameter search strategy
Explanation

Bayesian sampling intelligently selects the next set of hyperparameters based on the results of previous runs, converging to good solutions much faster than random or grid search in large, expensive search spaces — ideal when runs are costly and time is limited. Bandit early termination policy cancels any run whose primary metric is not within a specified slack factor of the best run so far, immediately freeing compute for more promising configurations. — Grid search exhaustively tries every combination and is computationally infeasible with 20 hyperparameters and a 4-hour-per-run budget. — Median stopping terminates runs whose performance falls below the running median of completed runs; it is less aggressive than Bandit and less well-suited to very expensive runs with constrained budgets. — Setting max_total_runs to a very large number removes a key cost constraint and contradicts the requirement. — A sequential sweep job runs one trial at a time, eliminating parallelism and making the already expensive search even slower.

4.

A data scientist at a financial services company is starting a new fraud detection project in Azure Machine Learning. They want to log hyperparameters, metrics, and model artifacts from each training run so that results can be compared later in the Azure Machine Learning studio UI. Which MLflow function should they call at the beginning of each training script to ensure all subsequent logging is associated with the correct experiment?

  • A. mlflow.autolog() called once at the module level without any experiment context
  • B. mlflow.log_param() called before any model training code
  • C. mlflow.register_model() called at the start of the training script
  • D. mlflow.set_experiment() followed by mlflow.start_run()✓ Correct
Explanation

Calling mlflow.set_experiment() designates the target experiment, and mlflow.start_run() opens a new run context under that experiment, ensuring all subsequent mlflow.log_param(), mlflow.log_metric(), and mlflow.log_artifact() calls are scoped correctly and visible in the Azure Machine Learning studio experiment view. mlflow.log_param() alone logs a single parameter but does not create or scope a run context, so subsequent logs may end up in an unintended active run. mlflow.autolog() can automatically capture framework-specific metrics but still requires an active run context started via start_run() to be reliably scoped to the correct experiment; calling it alone at module level without an explicit run context is not the correct pattern for controlled experiment tracking. mlflow.register_model() is used to register a trained model in the model registry after training is complete, not to initialize experiment tracking at the start of a script.

5.

A team runs a large-scale distributed training job in Azure Machine Learning using PyTorch with multiple GPU nodes. The job is taking significantly longer than expected. After investigation, they find that gradient synchronization between nodes is creating a bottleneck. Which distributed training strategy is specifically designed to reduce this synchronization overhead by allowing workers to update a shared parameter server asynchronously?

  • A. Synchronous data parallelism using NCCL all-reduce
  • B. Asynchronous parameter server training✓ Correct
  • C. Horovod ring-allreduce
  • D. Model parallelism with pipeline stages
Explanation

Asynchronous parameter server training allows worker nodes to push gradient updates to a central parameter server and pull updated weights without waiting for all other workers to complete their gradient computation, eliminating the synchronization barrier and reducing idle time. — Synchronous data parallelism with NCCL all-reduce (e.g., standard PyTorch DDP) is efficient but requires all workers to synchronize gradients each step — the very bottleneck described. — Horovod ring-allreduce is also a synchronous method; every worker must participate in the ring before weights are updated. — Model parallelism splits the model graph across devices and is used when a model is too large to fit in a single GPU's memory; it does not address gradient synchronization bottlenecks from data-parallel training.

Test yourself across every AI-300 domain

The free AI-300 practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Implement machine learning model lifecycle and operations study guide (AI-300) →

Other AI-300 domains

← All Microsoft Machine Learning Operations Engineer Associate study resources