Skip to main content

AI-300 Real Exam Questions

Microsoft Certified: Machine Learning Operations (MLOps) Engineer Associate

207 questions available · Page 1 of 21

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Drag & drop

DRAG DROP

A team is deploying a new version of a customer scoring model to a production online endpoint in Azure Machine Learning.

The team must minimize risk by gradually introducing the new model version and ensuring that traffic can be reverted immediately if issues occur.

You need to roll out the new model according to the requirements.

Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

stem image

Question diagram
Show answer and explanation
Correct answer diagram
Explanation

To safely deploy your new customer scoring model with minimal risk, you should use Azure Machine Learning managed online endpoints with a blue-green deployment strategy. This allows you to test the new model (green) alongside the old model (blue) and route traffic gradually.

Here is the step-by-step process to execute this rollout.

Step 1: Create a New Deployment for the updated model version.
1. Create a New Deployment under the Existing Endpoint Do not overwrite your current production deployment. Instead, deploy the new model version as a separate deployment within the same managed online endpoint.

Keep the existing deployment (e.g., blue-deployment) running at 100% traffic.

Create the new deployment (e.g., green-deployment) with the new model version.

Set the initial traffic allocation for the new deployment to 0%.

2. Test the New Deployment in Isolation [Step not in this question] Before exposing real customers to the new model, test its stability and performance in the production environment. Send test scoring requests directly to the green-deployment. Use the X-MS-Routing-Override: green-deployment HTTP header in your SDK or REST requests to bypass the traffic split and target the new model directly. Verify that the data schema, latency, and prediction outputs match your expectations.

Step 2: Configure traffic split to route a small percentage to the new deployment.
3. Gradually Shift Traffic (Canary Testing) Once internal testing passes, begin introducing real production traffic to the new model in phases.

3a. Update the endpoint's traffic configuration to route a small percentage (e.g., 10%) to green-deployment. [Step 2]

Step 3: Monitor endpoint metrics and error rates. 3b) Monitor system metrics closely, looking for spikes in HTTP 4xx/5xx errors, timeouts, or unusual scoring distributions. [Step 3]

Step 4: Increase traffic to the new deployment after validation 3c) If performance remains stable over a designated observation period, incrementally increase the traffic (e.g., to 30%, 50%, then 100%). [Step 4]

Further future actions outside the context of the question:
4. Monitor App Insights and MetricsAzure ML integrates natively with Azure Monitor and Application Insights. Track these critical metrics during the shift:CPU/Memory Utilization: Ensure the new model does not exhaust container resources.

Model Latency: Compare the response times of the new deployment against the old one.

Tracking Token/Feature Drift: Ensure the live customer data matches the model's expected input feature distribution.

5. Instant Rollback Plan If the new model causes errors, triggers high latency, or skews customer scores, you can revert traffic immediately. Update the endpoint traffic settings to route 100% of traffic back to the original blue-deployment.

Set the green-deployment traffic to 0%.This configuration change takes effect almost instantly, isolating the faulty model without any downtime for your users.

Keep the green-deployment alive at 0% traffic while you pull the logs to investigate the root cause, then delete it once fixed.

Incorrect:
[Remove the previous deployment] A step further in the future.

References:
https://chandras4bigdata.medium.com/mlops-interview-and-study-guide-489d13ff82fa

Question 2 Single choice

You need to recommend a solution to address Fabrikam Inc.'s limited rollback capability.

Which deployment approach should you recommend?

  1. A

    VM-hosted REST APIs

  2. B

    Azure Kubernetes Service with blue-green switching

  3. C

    Managed online endpoints with traffic splitting

  4. D

    Batch endpoints

Show answer and explanation

Correct answer: C

Explanation

Managed online endpoints support multiple deployments behind one inference endpoint and can divide traffic between them. A new version can receive a limited share while the established version remains available. If problems occur, shifting traffic back provides a rapid rollback path without rebuilding the endpoint or waiting for a batch process.

Question 3 Drag & drop

DRAG DROP

A real-time endpoint is deployed in Azure Machine Learning to serve predictions to a web application.

Users report intermittent failures and unexpected responses when calling the endpoint.

You need to identify the appropriate troubleshooting action for each reported issue.

Which troubleshooting action should you perform for each issue? To answer, move the appropriate troubleshooting actions to the correct issues. You may use each troubleshooting action once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

stem image

Question diagram
Show answer and explanation
Correct answer diagram
Explanation

The answer maps failures after deployment updates to reviewing deployment logs and incorrect responses to validating the scoring script and model version. Logs expose runtime errors and deployment startup failures, while incorrect prediction behavior often comes from model or scoring-code mismatch. Other actions, such as restarting or autoscaling, can help availability but do not directly diagnose those specific requirements.

Question 4 Single choice

A workspace workload uses a managed identity to read a connected storage account. Workspace contributors can manage jobs but should not automatically read the stored data. What should be configured?

  1. A

    Assign least-privilege data access to the workload identity at the required scope, and permit the required network path.

  2. B

    Give every workspace contributor the storage account key so jobs inherit data access.

  3. C

    Grant the workload identity workspace Contributor because that includes all storage data permissions.

  4. D

    Enable the workspace identity without role assignments because connected resources trust it automatically.

Show answer and explanation

Correct answer: A

Explanation

The workload identity, rather than every workspace contributor, should receive only the storage data permissions needed by the jobs and only at the required scope. The permitted network path must also exist because authorization alone cannot cross a blocked connection. This separates job access from human workspace management and avoids distributing broad credentials or unrelated contributor rights.

Question 5 Drag & drop

DRAG DROP

A team is developing a Retrieval-Augmented Generation (RAG) system.

The team requires improvements to the system's retrieval quality to ensure accurate, grounded responses.

You need to assess RAG performance before you can suggest an improvement strategy.

Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

stem image

Question diagram
Show answer and explanation
Correct answer diagram
Explanation

To properly assess your Azure Retrieval-Augmented Generation (RAG) system's performance before implementing an improvement strategy, you should include the following four steps: Run RAG evaluators, Collect retrieval logs, Modify model temperature, and Regenerate the prompt template.

Step 1: Run RAG evaluators Run RAG evaluators is the primary method to objectively measure system performance. Evaluators calculate data-driven metrics like groundedness, relevance, and retrieval precision using tools like Azure AI Studio Evaluators.

Step 2: Collect retrieval logs Collect retrieval logs provides the raw operational data needed for assessment. Analyzing these logs helps you identify exactly which documents were retrieved, their relevance scores, and where the retrieval pipeline failed to fetch the correct context.

Step 3: Modify model temperature Modify model temperature: Adjusting the temperature during assessment helps isolate whether poor responses are caused by bad retrieval or by the LLM being too creative (high temperature) or too rigid (low temperature). Testing variations helps establish a performance baseline.

Step 4: Regenerate the prompt template Regenerate the prompt template: Evaluating how different prompt variations alter the output allows you to assess if the current template is effectively forcing the model to rely only on the retrieved context, which is critical for identifying grounding issues.

Incorrect: Adjust the chunking strategy.
This is an improvement action, not an assessment step. You would perform this optimization strategy after your assessment reveals that information is being cut off or poorly contextualized.

Re-index documents: This is a heavy remediation step. Re-indexing is a time-and resource-consuming strategy used to fix issues once the assessment phase has already proven that the current index or embedding model is faulty.

References:
https://flytoleisure.medium.com/guideline-for-building-a-practical-and-effective-rag-retrieval-augmented-
generation-application-f6cf50676e37

Question 6 Hotspot

HOTSPOT

You manage an Azure Machine Learning workspace named workspace1 by using the Python SDK v2.

The default datastore of workspace1 contains a folder named sample_data. The folder structure contains the following content:

You write Python SDK v2 code to materialize the data from the files in the sample_data folder into a Pandas data frame.

You need to complete the Python SDK v2 code to use the MLTable folder as the materialization blueprint.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point

stem image

Question diagram
Show answer and explanation
Correct answer diagram
Explanation

The answer uses the MLTable folder rather than an individual text file. In Azure Machine Learning, an MLTable is loaded from the folder that contains the MLTable metadata, so the path should target the sample_data directory. Other paths would either point to raw files or wildcard file matches and would not load the table definition required by the requirement.

Question 7 Single choice

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.

You manage an Azure Machine Learning workspace. The Python script named script.py reads an argument named training_data. The training_data argument specifies the path to the training data in a file named dataset1.csv.

You plan to run the script.py Python script as a command job that trains a machine learning model. You need to provide the command to pass the path for the dataset as a parameter value when you submit the script as a training job.

Solution: python script.py dataset1.
csv Does the solution meet the goal?

  1. A

    Yes

  2. B

    No

Show answer and explanation

Correct answer: B

Explanation

The script reads a named argument called training_data, but the proposed command supplies only a positional dataset value and omits --training_data. The filename is also split between dataset1. and csv rather than being passed as the path dataset1.csv. Consequently, the argument parser cannot receive the required dataset path in the specified parameter.

Question 8 Multiple choice

A company's platform engineers manage the resource settings and governance of Microsoft Foundry.

Developers must be able to create and update project assets but must not be able to change resource-level configurations.

You need to enforce least privilege access for the engineers and developers.

Which two actions should you perform? (Choose two.)

  1. A

    Assign a resource-level Azure AI Administrator role to the platform engineers.

  2. B

    Disable Microsoft Entra ID authentication for the Microsoft Foundry resource.

  3. C

    Assign the Azure AI Developer role to the developers.

  4. D

    Share a single API key across all teams.

Show answer and explanation

Correct answers: A, C

Explanation

The resource-level Azure AI Administrator role gives platform engineers authority to manage Foundry resource settings and governance. The Azure AI Developer role lets developers create and update project assets without granting the same resource-level administrative control. This division aligns each role with its duties and enforces least privilege.

Question 9 Multiple choice

A data science team trains a classification model that predicts loan approval outcomes. Before registering the model, the team must ensure the following:

1. Predictions must not disproportionately impact protected groups.
2. Prediction errors can be evaluated across different data segments.

You need to assess whether the model meets Responsible AI expectations.

Which two approaches should you use? (Choose two.)

  1. A

    Analyze error rates across the global cohort.

  2. B

    Measure endpoint latency under load.

  3. C

    Validate inference schema compatibility.

  4. D

    Evaluate feature importance for prediction transparency.

  5. E

    Analyze error rates across defined demographic cohorts.

Show answer and explanation

Correct answers: D, E

Explanation

Feature importance supports prediction transparency by revealing which inputs most influence the classification outcome. Error analysis across defined demographic cohorts then exposes whether mistakes or outcomes differ for protected groups. Together, these approaches address both understanding the model's decisions and evaluating errors across the specific population segments relevant to Responsible AI.

Question 10 Hotspot

HOTSPOT

You manage a Microsoft Foundry project. You build a solution that uses a set of PDF documents.

You require two large language models (LLMs):

  • An embedding model must help categorize the documents.
  • A general-purpose model must generate semantically and contextually accurate output based on the documents.

You need to select benchmarks to observe the quality of the models.

Which metrics should you use for the benchmarks? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

stem image

Question diagram
Show answer and explanation
Correct answer diagram
Explanation

Box 1: Accuracy Embedding model An embedding model must help categorize the documents.

For an embedding model designed to categorize documents within Azure AI Foundry, cosine similarity is a crucial benchmark metric. It measures the semantic similarity between document embeddings, allowing you to assess how well the model groups related documents together. Additionally, classification accuracy is important to evaluate how effectively the model assigns documents to predefined categories.

Classification Accuracy: This metric measures the percentage of documents that are correctly categorized by the model. It directly reflects the model's ability to assign documents to the appropriate category based on their embeddings

Box 2: Coherence General-purpose model A general-purpose model must generate semantically and contextually accurate output based on the documents.

Coherence evaluates how well the language model can produce output that flows smoothly, reads naturally, and resembles human-like language.

Incorrect:

* GPTsimilarity GPT similarity refers to the ability of GPT models to assess and quantify the semantic similarity between pieces of text. This can be achieved by using the model to generate embeddings (numerical representations) of the text and then calculating the similarity (e.g., using cosine similarity) between these embeddings. Essentially, it allows you to determine how closely related two texts are in terms of their meaning.

References:
https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/model-benchmarks
https://learn.microsoft.com/en-us/azure/machine-learning/prompt-flow/concept-model-monitoring-
generative-ai-evaluation-metrics