Last updated: May 2026
AI-300 — Machine Learning Operations Engineer Associate
Test your knowledge with official exam-style questions
Questions and options are shuffled each attempt
▶Microsoft Certified: Machine Learning Operations Engineer Associate — Practice Set 1: All Questions & Explanations
Full question text, answer options, and explanations for this practice set — a spoiler-free alternative is the interactive quiz above for scored, shuffled practice.
1. A machine learning team wants to provision an Azure Machine Learning workspace and all associated resources (Storage Account, Key Vault, Application Insights, Container Registry) in a repeatable, version-controlled way. Which approach aligns with Infrastructure as Code (IaC) best practices?
- A. Click through the Azure portal each time a new workspace is needed
- B. Write a Bicep template that defines all workspace resources and deploy it via Azure CLI in a GitHub Actions workflow(correct)
- C. Use Azure Cost Management to auto-provision resources when the team budget is approved
- D. Ask each data scientist to create their own workspace manually from Azure Machine Learning Studio
Explanation: IaC with Bicep templates defines Azure resources declaratively and deploys them consistently via Azure CLI, which can be version-controlled in Git and executed automatically in a GitHub Actions pipeline. Manual portal clicks (A) are not repeatable or version-controlled. Cost Management (C) manages budgets but does not provision resources. Individual manual workspaces (D) lead to configuration drift and no audit trail.
2. A data science team needs to share pre-processed datasets and registered model artefacts across multiple Azure Machine Learning workspaces in different business units. What is the recommended Azure Machine Learning feature for this?
- A. Copy the artefacts manually between storage accounts using AzCopy
- B. Use Azure Machine Learning registries to share assets (data, environments, components, models) across workspaces(correct)
- C. Publish a public Azure Blob container and have each workspace download artefacts from it
- D. Train a separate model in each workspace from scratch to avoid sharing
Explanation: Azure Machine Learning registries are purpose-built for cross-workspace sharing of assets such as datasets, environments, components, and registered models, with versioning and lineage tracking. Manual AzCopy (A) has no versioning or lineage. A public blob container (C) exposes sensitive artefacts without access control. Retraining from scratch in each workspace (D) is wasteful and produces inconsistent model versions.
3. An enterprise requires that the Azure Machine Learning workspace only be accessible from within the corporate virtual network and must not be reachable from the public internet. Which configuration should the MLOps engineer apply?
- A. Enable public network access on the workspace and configure IP firewall rules
- B. Disable public network access on the workspace and configure a private endpoint in the corporate VNet(correct)
- C. Use a Network Security Group on the compute cluster only, leaving the workspace public
- D. Create a read-only lock on the workspace resource to prevent external access
Explanation: Disabling public network access and configuring a private endpoint routes all traffic through the Azure private network (VNet), ensuring the workspace is unreachable from the public internet while still accessible from within the corporate network. IP firewall rules (A) still leave the public endpoint exposed. An NSG on compute only (C) does not protect the workspace management plane. A resource lock (D) prevents modifications but not network access.
4. A GitHub Actions workflow needs to submit training jobs to an Azure Machine Learning workspace without storing any credentials in the repository. Which mechanism should the engineer configure?
- A. Store the workspace primary key as a GitHub Actions secret and pass it as an environment variable
- B. Configure GitHub integration with Machine Learning using a federated identity credential (OIDC) so GitHub Actions authenticates as a managed identity without storing secrets(correct)
- C. Hardcode the workspace connection string in the YAML workflow file
- D. Grant the GitHub repository public read access to the Azure subscription
Explanation: Azure Machine Learning's GitHub integration supports OIDC-based federated identity credentials, which allow GitHub Actions to exchange a short-lived GitHub token for an Azure access token — no secrets stored in the repo. Storing the primary key as a secret (A) is better than hardcoding (C) but still places a long-lived credential in GitHub. Hardcoding the connection string (C) is a severe security risk. Granting public read access (D) is completely insecure.
5. A data scientist wants to track parameters, metrics, and artefacts from multiple training runs in Azure Machine Learning so that experiments can be compared. Which tool should they use to instrument their training scripts?
- A. Azure Monitor Application Insights for ML metrics
- B. MLflow to log parameters, metrics, and artefacts, with Azure Machine Learning as the tracking backend(correct)
- C. Azure DevOps Boards to log experiment results as work items
- D. Azure Blob Storage JSON files to store metrics manually after each run
Explanation: MLflow is the open-standard experiment tracking library natively supported by Azure Machine Learning as a tracking backend. Data scientists call mlflow.log_param(), mlflow.log_metric(), and mlflow.log_artifact() in their training scripts and can compare runs in the Azure Machine Learning Studio UI. Application Insights (A) is for application telemetry, not ML experiment tracking. DevOps Boards (C) track work items, not experiment metrics. Manual JSON files (D) have no structured comparison or visualisation.
6. After training, a data scientist wants to register a model in Azure Machine Learning using MLflow so that it can be versioned and deployed later. Which MLflow function should they call at the end of the training script?
- A. mlflow.start_run()
- B. mlflow.sklearn.log_model() (or the appropriate flavour) to log and register the model(correct)
- C. mlflow.log_metric() with the model path as the metric value
- D. mlflow.end_run() to finalise all artefacts
Explanation: mlflow.<flavour>.log_model() (e.g., mlflow.sklearn.log_model(), mlflow.pytorch.log_model()) logs the model artefact and, when registered_model_name is specified, automatically registers it in the Azure Machine Learning model registry. start_run() (A) opens an experiment run context but does not register models. log_metric() (C) records scalar values, not model artefacts. end_run() (D) closes the run context but does not register artefacts on its own.
7. Contoso Bank deploys a fraud detection model to a real-time managed online endpoint. The team wants to validate a new model version before routing all production traffic to it, minimising risk if the new model underperforms. Which deployment strategy should they use?
- A. Delete the current deployment and immediately redeploy with the new model version
- B. Use blue/green deployment by sending a small percentage of traffic to the new model version while the existing version handles the rest, then gradually increase traffic(correct)
- C. Deploy the new model to a batch endpoint and compare accuracy once per day
- D. Run the new model locally on a laptop before deploying to production
Explanation: Progressive (blue/green or canary) rollout in Azure Machine Learning managed online endpoints allows traffic to be split between the existing deployment and the new one. The percentage routed to the new version is incrementally increased as confidence grows, with the ability to roll back instantly if metrics degrade. Deleting and redeploying (A) causes downtime and has no rollback. A batch endpoint (C) introduces latency and cannot handle real-time fraud detection. Local testing (D) is not a production deployment strategy.
8. A deployed credit-scoring model begins producing unexpected predictions three months after release. The MLOps team suspects that the statistical distribution of incoming feature data has shifted compared to the training data. What should they monitor to confirm this hypothesis?
- A. CPU utilisation of the online endpoint compute
- B. Data drift between the training dataset and the live scoring dataset(correct)
- C. The number of HTTP 200 responses from the endpoint
- D. Azure Blob Storage read latency for the model artefact
Explanation: Data drift monitoring compares the statistical distribution of incoming production data to the baseline training data, detecting feature shifts that degrade model performance. CPU utilisation (A) measures compute load, not data quality. HTTP 200 counts (C) confirm successful requests but not prediction quality. Blob read latency (D) is an infrastructure metric unrelated to data distribution.
9. An MLOps engineer is evaluating a newly registered model against Responsible AI principles before approving it for production deployment. Which TWO evaluation steps should be performed using Azure Machine Learning's Responsible AI dashboard? Choose 2.
- A. Measure model error analysis to identify which data cohorts (e.g., age groups, regions) have higher error rates(correct)
- B. Generate feature importance explanations to understand which features most influence predictions(correct)
- C. Monitor the endpoint's HTTP response time in production
- D. Archive the previous model version from the registry
- E. Deploy the model to the canary environment without evaluation
Explanation: Azure Machine Learning's Responsible AI dashboard includes error analysis (A), which reveals where the model fails disproportionately across cohorts, and model explainability / feature importance (B), which identifies the most influential features for model transparency and fairness assessment. HTTP response time (C) is an operational metric, not a Responsible AI evaluation. Archiving previous versions (D) is model lifecycle management. Deploying without evaluation (E) is contrary to responsible deployment practice.
10. A data science team wants to train a very large deep learning model (billions of parameters) that does not fit in the memory of a single GPU. Which Azure Machine Learning capability should they use?
- A. Use a CPU-only compute cluster with high RAM
- B. Manage distributed training for large and deep learning models using a GPU cluster with a distributed training framework (e.g., PyTorch DistributedDataParallel or DeepSpeed)(correct)
- C. Train the model in a Jupyter notebook on a local laptop
- D. Use AutoML to automatically reduce the model to fit on a single GPU
Explanation: Azure Machine Learning supports distributed training across multi-GPU clusters using frameworks such as PyTorch Distributed, Horovod, or DeepSpeed, enabling model and data parallelism for very large models. CPU-only clusters (A) are too slow for deep learning at this scale. Local laptop training (C) is infeasible for billion-parameter models. AutoML (D) explores architectures but does not split a model across GPUs to fit larger models.
11. An ML platform team wants to automate hyperparameter tuning for a training job in Azure Machine Learning to find the optimal learning rate and batch size combination without manually submitting dozens of runs. Which feature should they use?
- A. Submit one training run with fixed hyperparameters and manually adjust after reviewing results
- B. Use Azure Machine Learning's sweep job (hyperparameter tuning) to automatically search a defined parameter space using sampling and early termination policies(correct)
- C. Use Azure DevOps variable groups to store hyperparameters and trigger a new pipeline for each combination
- D. Set the learning rate to 0.01 permanently, which is always optimal for neural networks
Explanation: Azure Machine Learning sweep jobs define a search space for hyperparameters (e.g., random, grid, or Bayesian sampling), submit parallel child runs, and apply early termination policies (e.g., Bandit, Median Stopping) to cancel poorly-performing runs — automating and accelerating hyperparameter search. Manual one-by-one submission (A) is tedious and serial. DevOps variable groups (C) store configuration but cannot orchestrate a multi-run hyperparameter search. A fixed learning rate (D) is rarely optimal and ignores task-specific tuning needs.
12. A production model's performance monitoring dashboard triggers an alert showing that the model's precision has dropped below the accepted threshold over the past week. The team needs to automatically initiate retraining. Which Azure Machine Learning capability should be configured?
- A. Configure a retraining pipeline trigger based on the monitoring alert so that when the metric threshold is exceeded, a training pipeline is automatically submitted(correct)
- B. Set the model to retrain every day regardless of performance metrics
- C. Delete the online endpoint and stop serving predictions until the team manually retrains
- D. Increase the confidence threshold on the model's output to make the precision metric appear higher
Explanation: Azure Machine Learning monitoring supports configuring alert-triggered actions — when a metric (e.g., precision) crosses a threshold, an Azure Event Grid event or Logic App can automatically submit a retraining pipeline, ensuring the model is updated promptly. Fixed-schedule retraining (B) wastes compute when the model is performing well. Deleting the endpoint (C) stops all service, causing downtime. Adjusting the confidence threshold (D) manipulates the reported metric without improving the actual model.
13. A GenAIOps engineer is setting up a Microsoft Foundry project for a generative AI application. Multiple teams need to access the same Azure OpenAI resource but with different permission levels (some read-only, others deployers). What should be configured to enforce this access control?
- A. Share the same API key with all teams and rely on each team to self-govern their permissions
- B. Configure role-based access control (RBAC) with managed identities, assigning different Azure roles to each team(correct)
- C. Create a separate Azure subscription for each team to fully isolate access
- D. Restrict access by placing the resource in a locked resource group
Explanation: Azure RBAC with managed identities enables fine-grained, auditable access control — different roles (e.g., Cognitive Services User vs. Cognitive Services Contributor) can be assigned to different teams without sharing any credentials. Sharing a single API key (A) provides no granularity or auditability. A separate subscription per team (C) is excessive and creates governance fragmentation. A resource group lock (D) prevents modifications but does not differentiate user permissions.
14. A company wants to deploy a foundation model via Microsoft Foundry for a customer-facing application that will serve thousands of requests per minute with consistent low latency SLAs. Which deployment option is most appropriate?
- A. Deploy using a serverless API endpoint to pay only for tokens consumed
- B. Configure provisioned throughput units (PTUs) to reserve dedicated model capacity for predictable, high-volume latency requirements(correct)
- C. Download the model weights and run inference on local developer laptops
- D. Use Azure Batch to process all customer requests overnight
Explanation: Provisioned throughput units (PTUs) reserve dedicated compute capacity for the deployed model, delivering predictable latency and throughput without competing with other tenants — essential for SLA-bound, high-volume workloads. Serverless API (A) is cost-efficient for variable or low-volume traffic but may throttle under sustained high load. Local laptop inference (C) cannot support thousands of concurrent users. Azure Batch (D) is for high-throughput offline batch workloads, not real-time customer-facing requests.
15. A GenAIOps engineer needs to ensure that the prompts used by a production generative AI application can be versioned, reviewed by peers, and rolled back if a change causes regression in response quality. Which approach should they implement?
- A. Store all prompts as hardcoded strings in the application binary and redeploy the application for each prompt change
- B. Implement version control for prompts by using Git repositories, treating prompt files as first-class source artefacts with branching and pull-request workflows(correct)
- C. Write prompts to an Azure Queue Storage message for each request
- D. Use Azure Key Vault to store prompt templates as secrets
Explanation: Storing prompt files in Git enables full version history, branching, code review via pull requests, and rollback to previous versions — the same software engineering practices applied to application code. Hardcoding prompts in binaries (A) requires a full app redeploy for every prompt tweak. Queue Storage (C) is for transient message passing, not versioned configuration. Key Vault (D) stores secrets and certificates; it is not designed for prompt versioning with diff and rollback.
16. A team is comparing two prompt variants for a customer support chatbot to determine which generates more accurate and helpful responses. What does Microsoft Foundry provide to support this comparison?
- A. Azure DevOps Boards to create a work item for each prompt variant
- B. Prompt variant comparison in Microsoft Foundry prompt flow, allowing the team to run both variants and evaluate their outputs side-by-side using quality metrics(correct)
- C. An Azure Blob Storage diff tool to compare the text of the two prompt files
- D. The Azure portal pricing calculator to estimate token costs for each variant
Explanation: Microsoft Foundry's prompt flow supports creating prompt variants and running comparative evaluations, enabling teams to view quality metrics (groundedness, relevance, coherence) side-by-side across variants before selecting the best one for production. DevOps Boards (A) track project tasks, not prompt quality metrics. A blob diff tool (C) shows text differences but not quality evaluation. The pricing calculator (D) estimates costs but not response quality.
17. An MLOps team is deploying a GenAIOps infrastructure on Azure that must restrict all network traffic between Foundry resources to the private network. Which TWO steps are required? Choose 2.
- A. Implement network security with private networking configurations (private endpoints) for all Foundry resources(correct)
- B. Deploy the Foundry infrastructure using Bicep templates and Azure CLI to ensure consistent, repeatable provisioning(correct)
- C. Enable public network access on all resources so the deployment scripts can reach them from the internet
- D. Store Bicep templates as PDF files in SharePoint for documentation purposes
- E. Assign each developer a personal Azure OpenAI key shared via email
Explanation: Private endpoints (A) route all inter-service traffic through the Azure private network, preventing exposure to the public internet. Bicep templates deployed via Azure CLI (B) provide repeatable IaC provisioning that encodes the private networking configuration. Enabling public access (C) directly contradicts the network isolation requirement. Storing templates as PDFs (D) is not executable IaC. Sharing personal keys via email (E) violates credential management best practices.
18. A team is selecting a foundation model to use for semantic search over internal engineering documentation. The documents are highly technical and contain specialised jargon. The team wants the model to produce embeddings that capture domain-specific meaning. What should they consider?
- A. Select a general-purpose embedding model and assume it will handle technical jargon by default
- B. Select and fine-tune an embedding model on a sample of the domain-specific documentation to improve its representation of specialised terminology(correct)
- C. Use DALL-E embeddings because it is the most powerful Azure OpenAI model
- D. Use the largest available text completion model for embeddings, as larger is always better for all tasks
Explanation: General-purpose embedding models may underperform on highly specialised technical vocabularies. Fine-tuning an embedding model on domain-specific data improves the quality of embeddings for that vocabulary, leading to better semantic search accuracy. Relying on a general model without tuning (A) is a valid starting point but suboptimal for highly specialised corpora. DALL-E (C) is an image generation model with no embedding capability. Model size alone (D) does not guarantee better domain-specific semantic accuracy.
19. A GenAIOps engineer wants to measure whether a RAG-based chatbot's answers are grounded in the retrieved source documents — i.e., the model is not generating information beyond what appears in the retrieved context. Which AI quality metric should be evaluated?
- A. Coherence
- B. Groundedness(correct)
- C. Fluency
- D. Latency
Explanation: Groundedness measures whether a model's response is supported by the retrieved source context, detecting hallucinations where the model introduces facts not present in the grounding documents. Coherence (A) measures logical flow and readability of the response. Fluency (C) measures grammatical and linguistic quality. Latency (D) is an operational metric, not a content quality metric.
20. Fabrikam's legal team discovers that the company's public-facing AI assistant occasionally generates responses that include discriminatory language. The engineering team needs to detect and block such content before it reaches users. Which evaluation and safety configuration should they implement?
- A. Set the model's temperature to 0.0 to make outputs fully deterministic and safe
- B. Configure risk and safety evaluations for harmful content detection in Microsoft Foundry, and enable Azure AI Content Safety filters on the deployment(correct)
- C. Run the AI assistant only during business hours so a human can monitor every response
- D. Add a 500-character limit to all responses to reduce the chance of harmful content
Explanation: Microsoft Foundry's risk and safety evaluations detect harmful content categories (hate, self-harm, violence, sexual content) in both prompts and responses, and Azure AI Content Safety filters block content above configurable severity thresholds before it is returned to users. Temperature of 0.0 (A) makes outputs more deterministic but does not remove harmful content. Human monitoring (C) is impractical at scale and introduces unacceptable latency. Character limits (D) do not target harmful content specifically.
21. A GenAIOps team wants to track the number of tokens consumed per request, overall throughput (requests per second), and p95 response latency for a deployed Azure OpenAI model. Where should they configure this observability?
- A. Export metrics manually to an Excel spreadsheet after each week
- B. Configure continuous monitoring in Microsoft Foundry and enable detailed logging and tracing to capture token consumption, latency, and throughput metrics(correct)
- C. Measure latency by timing responses on a developer laptop running load tests
- D. Read the metrics from the Azure portal billing page monthly
Explanation: Microsoft Foundry provides built-in continuous monitoring capabilities that expose operational metrics (latency, throughput, token consumption) in near real-time, with detailed tracing for debugging individual requests. Manual spreadsheet exports (A) are delayed and error-prone. Laptop load tests (C) measure client-side latency and cannot observe production at scale. Monthly billing pages (D) show aggregate costs, not granular real-time operational metrics.
22. A GenAIOps engineer is setting up automated evaluation workflows for a generative AI application. Which TWO components should be included to make the evaluation comprehensive? Choose 2.
- A. Create a test dataset with representative question-and-expected-answer pairs mapped to the evaluation schema(correct)
- B. Set up automated evaluation workflows using both built-in metrics (groundedness, relevance) and custom evaluation metrics relevant to the business domain(correct)
- C. Deploy the model to production first and evaluate based on live user complaints
- D. Use only manual code review to assess model response quality
- E. Disable logging to reduce storage costs during evaluation
Explanation: A comprehensive automated evaluation requires a representative test dataset with expected answers (A) — without this, metrics cannot be computed. Automated workflows using built-in and custom metrics (B) allow consistent, scalable, repeatable evaluation without human review for every run. Waiting for user complaints (C) is reactive and harmful to users. Manual-only review (D) is unscalable. Disabling logging (E) removes the data needed for evaluation.
23. A RAG pipeline returns irrelevant documents from Azure AI Search, causing the language model to generate unhelpful answers. The team wants to improve retrieval precision. Which two optimisations should they evaluate first?
- A. Tune the similarity threshold to filter out low-relevance retrieved chunks, and experiment with different chunk sizes to ensure retrieved segments contain coherent context(correct)
- B. Increase the model's temperature to make it generate more creative answers even without good retrieved context
- C. Remove the retrieval step and rely solely on the model's parametric knowledge
- D. Switch from Azure AI Search to Azure Blob Storage for document storage
Explanation: The two most impactful RAG retrieval tuning levers are the similarity threshold (filtering chunks below a relevance score) and chunk size (ensuring each retrieved segment contains enough coherent context). These directly improve precision and relevance of what the model receives. Increasing temperature (B) affects generation randomness, not retrieval quality. Removing the retrieval step (C) eliminates the grounding that makes RAG valuable. Switching to Blob Storage (D) removes the search index and makes retrieval impossible.
24. A legal technology company builds a document search system using Azure AI Search. Users report that keyword matches on legal terms produce many irrelevant results when the exact words are not present but the legal concept is the same. What retrieval optimisation should the engineer implement to address this?
- A. Increase the number of documents returned (top-k) so users can manually find the right ones
- B. Implement hybrid search combining semantic vector search (embedding similarity) with keyword-based BM25 retrieval to capture both conceptual and exact-match relevance(correct)
- C. Remove the keyword search index and rely only on alphabetical sorting
- D. Lower the chunk size to single sentences so more chunks are retrieved
Explanation: Hybrid search merges semantic vector search (which captures meaning and synonyms) with keyword BM25 search (which catches exact term matches), and Azure AI Search's Reciprocal Rank Fusion (RRF) combines their scores. This addresses the scenario where exact keywords are absent but the legal concept is the same. Returning more results (A) increases recall but does not improve the relevance ranking. Alphabetical sorting (C) is unrelated to semantic relevance. Smaller chunks (D) may lose context needed to understand legal concepts.
25. A company has fine-tuned an Azure OpenAI model to generate responses in a specific customer service tone. After deployment, they notice the fine-tuned model's performance has degraded compared to the pre-production evaluation. Which monitoring and optimisation action is most appropriate?
- A. Delete the fine-tuned model and revert to the base model immediately
- B. Monitor the fine-tuned model's performance metrics in production, create and manage synthetic data to supplement training if gaps are identified, and redeploy an improved version after validation(correct)
- C. Increase the fine-tuning dataset size by duplicating all existing training examples
- D. Increase the model's max_tokens to give it more room to self-correct degraded responses
Explanation: A structured post-deployment lifecycle for fine-tuned models includes monitoring production performance metrics, diagnosing gaps (often addressed with synthetic or augmented training data to cover under-represented scenarios), validating improvements offline, and redeploying the improved model through the same GenAIOps pipeline. Reverting immediately (A) abandons the fine-tuning investment without diagnosing the root cause. Duplicating training examples (C) causes overfitting without adding new information. Increasing max_tokens (D) affects response length but does not fix a fine-tuning quality issue.