Microsoft Operationalizing Machine Learning and Generative AI Solutions (AI-300) Free Practice Test
Question 1
A team manages an Azure Machine Learning workspace and deploys a model to an endpoint.
A deployed online endpoint shows inconsistent response times during periods of high traffic.
You need to identify potential performance degradation.
Which three metrics should you monitor? Each correct answer presents part of the solution.
Choose three.
NOTE: Each correct selection is worth one point.
A deployed online endpoint shows inconsistent response times during periods of high traffic.
You need to identify potential performance degradation.
Which three metrics should you monitor? Each correct answer presents part of the solution.
Choose three.
NOTE: Each correct selection is worth one point.
Correct Answer: B,D,E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
Hotspot Question
You manage an Azure Machine Learning workspace named workspace1.
You must register an Azure Blob storage datastore in workspace1 by using an access key. You develop Python SDK v2 code to import all modules required to register the datastore.
You need to complete the Python SDK v2 code to define the datastore.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You manage an Azure Machine Learning workspace named workspace1.
You must register an Azure Blob storage datastore in workspace1 by using an access key. You develop Python SDK v2 code to import all modules required to register the datastore.
You need to complete the Python SDK v2 code to define the datastore.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:
How should you complete the code?
Box 1: container_name
container_name specifies the parameter name used in the AzureBlobDatastore constructor to identify your target blob storage container.
Box 2: wasbs
Correct Code Formats
Depending on your preference for the storage connection protocol, your completed line of code should look like one of the following variations:
Using the standard HTTPS protocol (Default).
-> Using the WASBS (Windows Azure Storage Blob Secure).
Reference:
https://stackoverflow.com/questions/75275875/create-an-azureblobdatastore-with-sdk-v2
Question 3
DRAG DROP
A team deploys a classification model to production and scores incoming customer data daily.
After several weeks, business stakeholders report unexpected changes in prediction behavior, even though the endpoint remains healthy.
You need to determine whether data drift is occurring and if it is, identify the appropriate actions.
Which action should you perform for each observed signal? To answer, move the appropriate actions to the correct observed signals. You may use each 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.

A team deploys a classification model to production and scores incoming customer data daily.
After several weeks, business stakeholders report unexpected changes in prediction behavior, even though the endpoint remains healthy.
You need to determine whether data drift is occurring and if it is, identify the appropriate actions.
Which action should you perform for each observed signal? To answer, move the appropriate actions to the correct observed signals. You may use each 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.

Correct Answer:

Question 4
Drag and Drop Question
A team deploys a machine learning model to a managed online endpoint. The team monitors model performance and data quality metrics in production.
When monitoring thresholds are exceeded, the team requires an automated operational response that notifies downstream systems.
You need to configure the monitoring solution to meet the requirements.
Which configuration should you associate with each requirement as a first step? To answer, move the appropriate configurations to the correct requirements. You may use each configuration 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.

A team deploys a machine learning model to a managed online endpoint. The team monitors model performance and data quality metrics in production.
When monitoring thresholds are exceeded, the team requires an automated operational response that notifies downstream systems.
You need to configure the monitoring solution to meet the requirements.
Which configuration should you associate with each requirement as a first step? To answer, move the appropriate configurations to the correct requirements. You may use each configuration 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.

Correct Answer:

Question 5
Drag and Drop Question
A team runs training jobs by using multiple Azure Machine Learning pipelines.
The team must ensure that all runs use the same Python packages and system libraries. The solution must allow dependency updates to be versioned without modifying training code.
You need to configure the workspace so that runtime dependencies are consistent and reusable.
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.

A team runs training jobs by using multiple Azure Machine Learning pipelines.
The team must ensure that all runs use the same Python packages and system libraries. The solution must allow dependency updates to be versioned without modifying training code.
You need to configure the workspace so that runtime dependencies are consistent and reusable.
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.

Correct Answer:

Question 6
You are fine-tuning a base language model to analyze customer feedback.
You label examples of support tickets. You must improve classification accuracy by configuring and fine-tuning the base model in Microsoft Foundry.
You need to configure and run fine-tuning.
What should you do first?
You label examples of support tickets. You must improve classification accuracy by configuring and fine-tuning the base model in Microsoft Foundry.
You need to configure and run fine-tuning.
What should you do first?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
A data science team plans to evaluate multiple hyperparameter values automatically while training a model in Azure Machine Learning.
The tuning process must run multiple training trials without manually modifying the training script for each run.
You need to automate hyperparameter tuning for the training job.
What should you do?
The tuning process must run multiple training trials without manually modifying the training script for each run.
You need to automate hyperparameter tuning for the training job.
What should you do?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
A company requires that only models meeting predefined performance thresholds are registered and deployed. The solution must be fully automated within the ML workflow. What should you implement?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 9
You want to ensure ML pipelines produce identical results when executed in different regions or workspaces. Which factor is MOST critical to control for reproducibility?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
Hotspot Question
You have an Azure Machine Learning workspace.
You plan to use Azure Machine Learning Python SDK v2 to define a pipeline component that trains an image classification model. The execution logic of the component is contained in the train() function in the file named model_train.py.
You write code to import all required libraries and store it as train_component.py in the same folder that contains model_train.py.
You need to complete the remaining code in train_component.py.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You have an Azure Machine Learning workspace.
You plan to use Azure Machine Learning Python SDK v2 to define a pipeline component that trains an image classification model. The execution logic of the component is contained in the train() function in the file named model_train.py.
You write code to import all required libraries and store it as train_component.py in the same folder that contains model_train.py.
You need to complete the remaining code in train_component.py.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:
Box 1: command_component
The @command_component decorator transforms a standard Python function into a reusable pipeline component within Azure ML SDK v2.from model_ Box 2: model_train model_train import train: Because model_train.py resides in the same directory as train_component.py, you import the file directly by its module name (model_train) to access its execution logic inside the component function.
Reference:
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-create-component-pipeline-python