Activate Your Black Friday Offer: 75% Discount on Exam Bundles! Use coupon code below! - Ends in 0d 00h 00m 00s - Coupon code: 75onlydt

AI-300 Questions and Answers

Question # 6

Fabrikam Inc. must improve its deployment process because traditional machine learning models are deployed manually and the organization has limited rollback capability .

You need to recommend a deployment approach that supports staged rollout and rollback while minimizing operational overhead.

Which deployment approach should you recommend?

A.

VM-hosted REST APIs

B.

Azure Kubernetes Service with blue-green switching

C.

Managed online endpoints with traffic splitting

D.

Batch endpoints

Full Access
Question # 7

You need to refine a GPT-5 model so that its performance and behavior align with the technical and business requirements of Fabrikam Inc.

Which two Foundry strategies should you apply? Each correct answer presents a complete solution. Choose two.

NOTE: Each correct selection is worth one point.

A.

Guardrails

B.

Evaluations

C.

Supervised fine tuning

D.

Synthetic data generation

Full Access
Question # 8

You have an Azure Machine Learning workspace.

You have the following code:

Question # 8

You plan to rely on serverless compute to train a model by using Azure Machine Learning Python SDK v2. The serverless compute must use a designated number of nodes of a specific virtual machine type.

You need to modify the code to run the training job according to the plan.

How should you modify the command object? To answer, select the appropriate oations in the answer area.

NOTE: Each correct selection is worth one point.

Question # 8

Full Access
Question # 9

A data science team trains a classification model that predicts loan approval outcomes.

Before registering the model, the team must ensure the following:

Predictions must not disproportionately impact protected groups.

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? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point. Choose two.

A.

Analyze error rates across the global cohort.

B.

Measure endpoint latency under load.

C.

Validate inference schema compatibility.

D.

Evaluate feature importance for prediction transparency.

E.

Analyze error rates across defined demographic cohorts.

Full Access
Question # 10

You need to isolate training workloads while remaining cost-aware to address Fabrikam Inc.’s issues, constraints, and technical requirements.

What should you implement?

A.

Training jobs that run on a single shared compute cluster

B.

Fixed-size compute cluster

C.

Dedicated compute clusters per experiment

D.

Managed compute targets with autoscaling

Full Access
Question # 11

You need to deploy the RAG-based chat application that meets Fabrikam Inc. ' s business and technical requirements. Which configuration should you use for each requirement? To answer, select the appropriate options in the answer

area NOTE Each correct selection is worth one point.

Question # 11

Full Access
Question # 12

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 modeljrain.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.

Question # 12

Full Access
Question # 13

You create an Azure Machine Learning workspace.

You plan to write an Azure Machine Learning SDK for Python v2 script that logs an image for an experiment. The logged image must be available from the images tab in Azure Machine Learning Studio.

You need to complete the script.

Which code segments should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 13

Full Access
Question # 14

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

You must register datastores in workspace1 for Azure Blob and Azure Data Lake Gen2 storage to meet the following requirements:

• Data scientists accessing the datastore must have the same level of access.

• Access must be restricted to specified containers or folders.

You need to configure a security access method used to register the Azure Blob and Azure Data lake Gen? storage in workspace1. Which security access method should you configure? To answer, select the appropriate options in the answers area.

NOTE: Each correct selection is worth one point.

Question # 14

Full Access
Question # 15

You manage an Azure Machine Learning workspace.

You must define the execution environments for your jobs and encapsulate the dependencies for your code.

You need to configure the environment from a Docker build context.

How should you complete the rode segment? To answer, select the appropriate option in the answer area.

NOTE: Each correct selection is worth one point.

Question # 15

Full Access
Question # 16

You manage a Retrieval-Augmented Generation (RAG) system that uses Azure AI Search to retrieve documents from an indexed knowledge base.

The system must support the following retrieval requirements:

Queries that include exact policy identifiers must return matching documents even when semantic similarity is low.

Natural-language questions must prioritize semantically relevant documents even when keywords are not an exact match.

You need to configure the retrieval approach to meet the requirements.

How should you configure the retrieval behavior for each requirement? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Question # 16

Full Access
Question # 17

You use the Azure Machine Learning SDK v2 for Python and notebooks to train a model. You use Python code to create a compute target an environment and a training script You need to prepare information to submit a training job. Which class should you use?

A.

command

B.

MLClient

C.

EndpointConncction

D.

BuildContext

Full Access
Question # 18

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?

A.

Use prompt flow to generate multiple prompt templates for evaluation.

B.

Deploy the base model to an online endpoint before starting fine-tuning.

C.

Enable tracing for all inference calls in the evaluation pipeline.

D.

Format the dataset as a JSONL file with prompt-completion pairs and upload the file.

Full Access
Question # 19

You manage an Azure Machine Learning workspace. You use Azure Machine Learning Python SDK v2 to configure a trigger to schedule a pipeline job. You need to create a time-based schedule with recurrence pattern.

Which two properties must you use to successfully configure the trigger? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A.

interval

B.

start.time

C.

schedule

D.

time_zone

E.

frequency

Full Access
Question # 20

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:

Question # 20

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

Question # 20

Full Access
Question # 21

You need to make model training repeatable and auditable to address Fabnkam Inc. ' s current environment challenges and technical requirements.

What should you use?

A.

Serverless execution by using Azure Functions

B.

Scheduled notebook runs by using Azure Machine Learning jobs

C.

Training pipelines in Azure Machine Learning

D.

Workflow automation by using Azure Logic Apps

Full Access
Question # 22

You create an Azure Machine Learning model to include model files and a scorning script. You must deploy the model. The deployment solution must meet the following requirements:

• Provide near real-time inferencing.

• Enable endpoint and deployment level cost estimates.

• Support logging to Azure Log Analytics.

You need to configure the deployment solution.

What should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 22

Full Access
Question # 23

You manage an Azure Machine Learning workspace. You create an experiment named experiment1 by using the Azure Machine Learning Python SDK v2 and MLflow.

Question # 23

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Question # 23

Full Access
Question # 24

You have an Azure subscription named Sub1 that contains an Azure

• a registered MLflow model named Model1

• an online endpoint named Endpoint1

Outbound network connectivity from Endpointl is blocked. You need to deploy ModeM to Endpointl. What should you do first?

A.

In Workspacel. create a linked service.

B.

In Subl, create an Azure Machine Learning registry.

C.

In Workspacel. create a package.

D.

In Workspace1 create a package.

E.

In Subl, create a private endpoint

Full Access
Question # 25

A company plans to deploy a foundation model in Microsoft Foundry.

The mode must support the following workloads:

A customer support workload used across multiple regions

A marketing workload that must remain within a specific region due to data residency requirements You need to select the deployment type.

Which deployment type should you use for each workload? To answer, move the appropriate deployment types to the correct requirements. You may use each deployment type 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.

Question # 25

Full Access
Question # 26

You manage an Azure Machine Learning workspace.

You need to define an environment from a Docker image by using the Azure Machine Learning Python SDK v2.

Which parameter should you use?

A.

conda_file

B.

properties

C.

build

D.

image

Full Access
Question # 27

You are authoring a notebook in Azure Machine Learning studio.

You must install packages from the notebook into the currently running kernel. The installation must be limited to the currently running kernel only.

You need to install the packages.

Which magic function should you use?

A.

!pip

B.

!conda

C.

%load

D.

%pip

Full Access
Question # 28

A team trains an MLflow model that scores customer churn risk. The model will be consumed by different downstream systems.

One system requests predictions synchronously during customer interactions.

Another system submits files containing millions of records for scheduled scoring.

You need to deploy the model by using managed inference options that match each usage pattern.

Which option should you use for each usage pattern? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Question # 28

Full Access
Question # 29

-

A customer-facing web application uses a foundational model deployed through Microsoft Foundry.

A new model version must be introduced and validated without disrupting production traffic.

You need to deploy the new version by using a safe promotion strategy.

Which three 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.

Question # 29

Full Access
Question # 30

An organization provisions Azure Machine Learning workspaces for development, test, and production environments.

Each environment must be deployed consistently and updated through source control. The deployment process must be automated, repeatable, and auditable.

You need to deploy Azure Machine Learning resources in a consistent and controlled manner.

Solution: Export the Azure Machine Learning workspace configuration after deployment and reuse it

Does the solution meet the goal?

A.

Yes

B.

No

Full Access
Question # 31

You have an Azure Machine Learning workspace.

You have the following code:

Question # 31

You plan to rely on serverless compute to train a model by using Azure Machine learning Python SDK v2. The serverless compute must be a designated number of nodes of a specific virtual machine type. You need to modify the code to run the training job according to the plan.

How should you modify the command object? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 31

Full Access
Question # 32

A team develops and manages a conversational assistant by using Microsoft Foundry.

The team must be able to validate that the assistant does not produce hateful responses before the application is exposed to any users.

You need to evaluate the model output for hateful responses as part of a repeatable validation process.

Which evaluator should you configure first?

A.

Protected material

B.

Groundedness

C.

Indirect attacks

D.

Content safety

Full Access
Question # 33

You create an Azure Machine learning workspace. The workspace contains a folder named src. The folder contains a Python script named script 1 .py.

You use the Azure Machine Learning Python SDK v2 to create a control script. You must use the control script to run script l.py as part of a training job.

You need to complete the section of script that defines the job parameters.

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

NOTE: Each correct selection is worth one point.

Question # 33

Full Access
Question # 34

You manage an Azure Machine Learning workspace named Workspace1 and an Azure Blob Storage accessed by using the URL https://storage1.blob.core.wmdows.net/data1.

You plan to create an Azure Blob datastore in Workspace1. The datastore must target the Blob Storage by using Azure Machine Learning Python SDK v2. Access authorization to the datastore must be limited to a specific amount of time.

You need to select the parameters of the Azure Blob Datastore class that will point to the target datastore and authorize access to it.

Which parameters should you use? To answer, select the appropriate options in the answer area

NOTE: Each correct selection is worth one point.

Question # 34

Full Access
Question # 35

You manage an Azure Machine Learning workspace that includes a batch endpoint. You plan to deploy a model to the batch endpoint. You need to configure compute for the deployment. Which compute should you use?

A.

Remote VM

B.

Kubernetes cluster

C.

Azure Databricks

D.

Azure Batch

Full Access
Question # 36

You have a deployment of an Azure OpenAI Service base model.

You plan to fine-tune the model.

You need to prepare a file that contains training data.

Which file format should you use?

A.

CSV

B.

TSV

C.

JSONL

D.

JSON

Full Access
Question # 37

You run Azure Machine Learning training experiments. The training scripts directory contains 100 files that includes a file named. amlignore. The directory also contains subdirectories named. /outputs and./logs.

There are 20 files in the training scripts directory that must be excluded from the snapshot to the compute targets. You create a file named. gift ignore in the root of the directory. You add the names of the 20 files to the. gift ignore file. These 20 files continue to be copied to the compute targets.

You need to exclude the 20 files. What should you do?

A.

Add the contents of the file named. amlignore to the file named. gift ignore.

B.

Move the file named. gift ignore to the. /logs directory.

C.

Copy the contents of the file named. gift ignore to the file named. amlignore.

D.

Move the file named. gift ignore to the. /outputs directory.

Full Access
Question # 38

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.

You have an Azure Machine Learning workspace. You connect to a terminal session from the Notebooks page in Azure Machine Learning studio.

You plan to add a new Jupyter kernel that will be accessible from the same terminal session.

You need to perform the task that must be completed before you can add the new kernel.

Solution: Delete the Python 3.6 - AzureML kernel.

Does the solution meet the goal?

A.

Yes

B.

No

Full Access
Question # 39

You create a multi-class image classification deep learning model.

The model must be retrained monthly with the new image data fetched from a public web portal. You create an Azure Machine Learning pipeline to fetch new data, standardize the size of images and retrain the model.

You need to use the Azure Machine Learning Python SEX v2 to configure the schedule for the pipeline. The schedule should be defined by using the frequency and interval properties with frequency set to month ' and interval set to " 1:

Which three classes should you instantiate in sequence " ' To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Question # 39

Full Access
Question # 40

Vou manage an Azure Machine Learning workspace named workspace 1 with a compute instance named compute`.

Vou must remove a kernel named kernel` from compute 1. You connect to compute1 by using a terminal window from workspace`.

Vou need to enter a command in the terminal window to remove kernel`.

Which command should you use? To answer, select the appropriate options in the answer area

NOTE: Each correct selection is worth one point.

Question # 40

Full Access
Question # 41

You build and manage a model by using Azure Machine Learning workspace.

Before you deploy the model, you must create a Responsible Al dashboard in Azure Machine Learning studio. The dashboard must provide observation of the following:

• metrics that show real-world impact on an outcome of interest due to taking a treatment policy

• examples with minimal changes to a particular data point such that the model ' s prediction changes

You need to implement the components for the Responsible Al dashboard.

Which components should you implement? To answer, move the appropriate components to the correct observations. You may use each component 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

Question # 41

Full Access
Question # 42

A team is experimenting with traditional models for a classification workflow in Azure Machine Learning.

The team requires a consistent way to manage assets that are created during experimentation.

You need to ensure that artifacts can be reused and governed across projects.

Which asset should you register?

A.

Model

B.

Component

C.

Environment

D.

Pipeline

Full Access
Question # 43

You have a binary classifier That predicts positive cases of diabetes within two separate age groups.

The classifier exhibits a high degree of disparity between the age groups.

You need to modify the output of the classifier to maximize its degree of fairness across the age groups and meet the following requirements:

• Eliminate the need to retrain the model on which the classifier is based.

• Minimize the disparity between true positive rates and false positive rates across age groups.

Which algorithm and parity constraint should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point

Question # 43

Full Access