Power Up Your Study Prep: Black Friday 75% Discount! Use coupon code below to save! - Ends in 0d 00h 00m 00s - Coupon code: big75certs

Free and Premium Microsoft AI-300 Dumps Questions Answers

Page: 1 / 11
Total 228 questions

Operationalizing Machine Learning and Generative AI Solutions Questions and Answers

Question 1

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 work in Microsoft Foundry with a prompt flow.

You must manually evaluate prompts and compare results across prompt variants.

You need to capture the inputs, outputs, token usage, and latencies for each flow run for the evaluation.

Solution: In Microsoft Foundry, turn on Tracing for the prompt flow of the project and execute test runs to produce trace data.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Buy Now
Question 2

You are a data scientist working for a hotel booking website company. You use the Azure Machine Learning service to train a model that identifies fraudulent transactions.

You must deploy the model to an Azure Machine Learning online endpoint by using the Azure Machine Learning Python SDK v2. The deployed model must return real-lime predictions of fraud based on transaction data input.

You need to create the script that is specified as the scoring_script parameter for the CodeConfiguration class used to deploy the model.

What should the entry script do?

Options:

A.

Start a node on the inference cluster where the model is deployed.

B.

Create a Conda environment for the online endpoint compute and install the necessary Python packages.

C.

Specify the number of cores and the amount of memory required for the online endpoint compute.

D.

Load the model and use it to predict labels from input data.

E.

Register the model with appropriate tags and properties.

Question 3

You create an Azure Machine Learning workspace and a new Azure DevOps organization. You register a model in the workspace and deploy the model to the target environment.

All new versions of the model registered in the workspace must automatically be deployed to the target environment.

You need to configure Azure Pipelines to deploy the model.

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.

Options:

Question 4

You create an Azure Machine Learning workspace and install the MLflow library.

You need to tog different types of data by using the MLflow library.

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

NOTE: Each correct selection is worth one point.

Options:

Question 5

You are preparing to build a deep learning convolutional neural network model for image classification. You create a script to train the model using CUDA devices.

You must submit an experiment that runs this script in the Azure Machine Learning workspace.

The following compute resources are available:

a Microsoft Surface device on which Microsoft Office has been installed. Corporate IT policies prevent the installation of additional software

a Compute Instance named ds-workstation in the workspace with 2 CPUs and 8 GB of memory

an Azure Machine Learning compute target named cpu-cluster with eight CPU-based nodes

an Azure Machine Learning compute target named gpu-cluster with four CPU and GPU-based nodes

You need to specify the compute resources to be used for running the code to submit the experiment, and for running the script in order to minimize model training time.

Which resources should the data scientist use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 6

You use Azure Machine Learning to tram a model.

You must use Baylean sampling to Tune hyperparaters.

You need to select a learning_rate parameter distribution.

Which two distributions can you use? Each correct answer presents a complete solution.

NOTE Each correct selection is worth one point.

Options:

A.

Normal

B.

Uniform

C.

Choice

D.

LogUniform

E.

QNormal

Question 7

You create an Azure Machine Learning workspace. The workspace contains a dataset named sample.dataset, a compute instance, and a compute cluster. You must create a two-stage pipeline that will prepare data in the dataset and then train and register a model based on the prepared data. The first stage of the pipeline contains the following code:

You need to identify the location containing the output of the first stage of the script that you can use as input for the second stage. Which storage location should you use?

Options:

A.

workspaceblobstore datastore

B.

workspacefi lest ore datastore

C.

compute instance

Question 8

An organization is deploying several generative AI workloads by using Microsoft Foundry. Each workload must meet different requirements related to data governance, task specialization, and operational cost control.

The organization requires models that meet the following requirements:

Model behavior aligns with the task being performed.

Data handling aligns with internal governance policies.

Operational complexity and cost are justified by workload needs.

You need to select the foundation model options that meet the requirements.

Which three models can you select? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point. Choose three.

Options:

A.

A model that is optimized for conversational reasoning when deploying an interactive assistant

B.

The largest available model to simplify operational management

C.

The smallest available model to minimize the usage cost

D.

A model that supports multiple input types when workloads require combined text and image analysis

E.

A model that offers enterprise governance controls when workloads process regulated business data

Question 9

You manage an Azure Machine Learning workspace. You design a training job that is configured with a serverless compute. The serverless compute must have a specific instance type and count

You need to configure the serverless compute by using Azure Machine Learning Python SDK v2. What should you do?

Options:

A.

Specify the compute name by using the compute parameter of the command job

B.

Configure the tier parameter to Dedicated VM.

C.

Initialize and specify the ResourceConfiguration class

D.

Initialize AmICompute class with size and type specification.

Question 10

-

A team operates a generative AI-powered customer support assistant built on Microsoft Foundry. The application serves users globally and supports both real-time chat interactions and batch summarization jobs.

The team must ensure that the application continues to meet defined service-level objectives (SLO) as usage increases.

The team requires visibility into runtime behavior to identify performance regressions that affect the user experience and system capacity.

You need to select the performance metrics that meet the requirements.

Which performance metric should you monitor for each requirement? To answer, move the appropriate performance metrics to the correct requirements. You may use each performance metric 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.

Options:

Question 11

You use the Azure Machine learning SDK v2 tor Python and notebooks to tram a model. You use Python code to create a compute target, an environment, and a taring script. You need to prepare information to submit a training job.

Which class should you use?

Options:

A.

MLClient

B.

command

C.

BuildContext

D.

EndpointConnection

Question 12

You train and register an Azure Machine Learning model

You plan to deploy the model to an online endpoint

You need to ensure that applications will be able to use the authentication method with a non-expiring artifact to access the model.

Solution:

Create a managed online endpoint and set the value of its auth.mode parameter to aml.token. Deploy the model to the online endpoint.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 13

You plan to use automated machine learning by using Azure Machine Learning Python SDK v2 to tram a regression model. You have data that has features with missing values, and categorical features with few distinct values.

You need to control whether automated machine learning automatically imputes missing values and encode categorical features as part of the training task.

Which number of the autom1 package should you use?

Options:

A.

FeaturizationMode

B.

ForecastHorizonMode

C.

Regress ion Primary Metrics

D.

RegressionModels

Question 14

A team plans to deploy a large foundation model in Microsoft Foundry as part of a new enterprise AI capability.

Different business units across the team ' s organization will access the model from various internal applications.

You need to deploy a foundation model by minimizing latency.

Which deployment type should you use?

Options:

A.

Developer

B.

Data Zone Batch

C.

Data Zone Standard

D.

Global Batch

Question 15

You are training machine learning models in Azure Machine Learning. You use Hyperdrive to tune the hyperparameters.

In previous model training and tuning runs, many models showed similar performance.

You need to select an early termination policy that meets the following requirements:

• Accounts for the performance of all previous runs when evaluating the current run.

• Avoids comparing the current run with only the best performing run to date.

Which two early termination policies should you use? Each correct answer presents part of the solution.

Options:

A.

Bandit

B.

Default

C.

Median stopping

D.

Truncation selection

Question 16

You collect data from a nearby weather station. You have a pandas dataframe named weather_df that includes the following data:

The data is collected every 12 hours: noon and midnight.

You plan to use automated machine learning to create a time-series model that predicts temperatures over the next seven days. For the initial round of training, you want to train a maximum of SO different models

You must use the Azure Machine Learning Python SDK v2 to run an automated machine learning experiment to train these models.

You need to configure the automated machine learning job and its settings.

How should you configure parameters of the classes that implement the job? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 17

A team is deploying machine learning models to a production inference endpoint in Azure Machine Learning.

The team requires a safe way to validate a new model version without disrupting existing users.

You need to recommend a deployment strategy for controlled testing of a new model version.

What should you configure?

Options:

A.

traffic splitting between deployments

B.

the model asset version in the registry

C.

deployment to a separate staging endpoint

D.

an evaluation script in Azure Machine Learning

Question 18

An organization runs a customer-lacing generative Al application built by using Microsoft Foundry. The application uses a managed foundation model and serves thousands of requests per hour across multiple regions.

The operations team reports intermittent response delays and inconsistent output quality.

The organization requires continuous visibility into runtime behavior to identify operational and model-related issues during production use.

You need to ensure that the application is continuously monitored.

Solution: Redeploy the model with a different foundation model that has lower average latency.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 19

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.

Options:

Question 20

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.

Options:

Question 21

-

You use Azure Machine Learning to implement hyperparameter tuning for an Azure ML Python SDK v2-based model training.

Training runs must terminate when the primary metric is lowered by 25 percent or more compared to the best performing run.

You need to configure an early termination policy to terminate training jobs.

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

NOTE: Each correct selection is worth one point.

Options:

Question 22

You create an Azure Machine Learning workspace. You train an MLflow-formatted regression model by using tabular structured data.

You must use a Responsible AI dashboard to assess the model.

You need to use the Azure Machine Learning studio UI to generate the Responsible AI dashboard.

What should you do first?

Options:

A.

Register the model with the workspace.

B.

Create the model explanations.

C.

Convert the model from the MLflow format to a custom format.

D.

Deploy the model to a managed online endpoint.

Question 23

You have an Azure Machine Learning workspace that includes an AmICompute cluster and a batch endpoint. You clone a repository that contains an MLflow model to your local computer. You need to ensure that you can deploy the model to the batch endpoint.

Solution: Create a data asset in the workspace.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 24

-

You have a Microsoft Foundry project with a connected Azure OpenAI Service model.

You have a set of text files stored locally on your computer.

You must set up a flow that will generate responses based on the content of your local files.

You need to implement a solution.

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.

Options:

Question 25

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?

Options:

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.

Question 26

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.

Options:

Question 27

You manage an Azure Machine learning workspace. You plan to import data from Azure Data Lake Storage Gen2. You need to build a URL that represents the storage location. Which protocol should you use?

Options:

A.

wasbs

B.

abfss

C.

hups

D.

adl

Question 28

You create an Azure Machine Learning workspace.

You must use the Python SDK v2 to implement an experiment from a Jupyter notebook in the workspace. The experiment must log a list of numerical metrics.

You need to implement a method to log a list of numerical metrics.

Which method should you use?

Options:

A.

mlflow.log_batch()

B.

mlflow.log_metric()

C.

mlflow.log_artifact()

D.

mlflow.log_image()

Question 29

-

You use Azure Machine Learning to deploy a model as a real-time web service.

You need to create an entry script for the service that ensures that the model is loaded when the service starts and is used to score new data as it is received.

Which functions should you include in the script? To answer, drag the appropriate functions to the correct actions. Each function may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Options:

Question 30

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?

Options:

A.

command

B.

MLClient

C.

EndpointConncction

D.

BuildContext

Question 31

You have an Azure subscription that contains a resource group named rg-ml.

You plan to create an Azure Machine Learning workspace named workspacel in rg-ml by using Azure Machine Learning Python SDK v2.

You need to ensure workspacel is configured to prevent the collection of potentially sensitive data by Microsoft diagnostics.

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

NOTE: Each correct selection is worth one point.

Options:

Question 32

You train and register an Azure Machine Learning model

You plan to deploy the model to an online endpoint

You need to ensure that applications will be able to use the authentication method with a non-expiring artifact to access the model.

Solution:

Create a managed online endpoint with the default authentication settings. Deploy the model to the online endpoint.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 33

You have an Azure Machine Learning workspace. You are running an experiment on your local computer.

You need to ensure that you can use MLflow Tracking with Azure Machine Learning Python SDK v2 to store metrics and artifacts from your local experiment runs in the workspace.

In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Options:

Question 34

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 work in Microsoft Foundry with a prompt flow.

You must manually evaluate prompts and compare results across prompt variants.

You need to capture the inputs, outputs, token usage, and latencies for each flow run for the evaluation.

Solution: Use the prompt flow SDK to enable tracing for the flow before executing runs. Then run the flow to generate traceable results.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 35

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.

Options:

Question 36

You need to standardize how Fabrikam Inc. manages machine learning assets.

Which action should you perform first?

Options:

A.

Register assets in the Azure Machine Learning registry.

B.

Create a shared Azure Machine Learning workspace.

C.

Deploy a managed online endpoint.

D.

Create a new Microsoft Foundry project.

Question 37

You need to recommend an experiment-tracking strategy that ensures consistent experiment results.

What should you recommend?

Options:

A.

Azure Machine Learning job output logs

B.

MLflow experiment tracking

C.

Application Insights logs

D.

Azure Monitor alerts

Question 38

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?

Options:

A.

VM-hosted REST APIs

B.

Azure Kubernetes Service with blue-green switching

C.

Managed online endpoints with traffic splitting

D.

Batch endpoints

Question 39

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.

Options:

A.

Guardrails

B.

Evaluations

C.

Supervised fine tuning

D.

Synthetic data generation

Question 40

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

What should you implement?

Options:

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

Question 41

Fabrikam Inc. needs to improve the performance of a GPT-5 model based on the stated technical requirements.

Which action should you perform first?

Options:

A.

Deploy the model to production to gather real-world feedback.

B.

Evaluate the model output.

C.

Fine-tune the model to improve accuracy.

D.

Generate synthetic interaction data.

Question 42

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

What should you use?

Options:

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

Question 43

You need to configure an optimization method to meet Fabrikam Inc.’s technical requirements.

Which strategy should you apply first? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Page: 1 / 11
Total 228 questions