Pass AI-300 Exam in First Attempt Guaranteed 2026 Dumps!
AI-300 Dumps Full Questions - Exam Study Guide
NEW QUESTION # 57
You have a Microsoft Foundry project.
You plan to use the Microsoft Foundry portal to fine-tune a base Azure OpenAI Service model that can accept both text and images as input.
You need to choose the suitable model.
Which model should you choose?
- A. gpt-4
- B. davinci-002
- C. gpt-4o
- D. gpt-35-turbo
Answer: C
Explanation:
GPT-4o is OpenAI ' s multimodal model that accepts both text and image inputs natively. The ' o ' in GPT-4o stands for ' omni, ' reflecting its ability to process multiple modalities in a single inference call. It is available in Microsoft Foundry for both inference and fine-tuning, and it supports vision inputs alongside text prompts, making it the correct choice for any fine-tuning scenario requiring multimodal input. Davinci-002 (option A) is a legacy text-completion model with no vision capabilities and limited fine-tuning support for modern chat formats. GPT-3.5-Turbo (option C) is a text-only chat model that does not accept image inputs. GPT-4 (option D) has a standard version that is text-only; the vision variant GPT-4V is distinct from GPT-4o and has more limited fine-tuning availability in Foundry. For multimodal text plus image fine-tuning, GPT-4o is the only correct choice.
Microsoft Learn Reference Topic: Azure OpenAI Service models available for fine-tuning - GPT-4o multimodal capabilities
NEW QUESTION # 58
A Retrieval-Augmented Generation (RAG) solution returns incomplete answers because relevant content is inconsistently retrieved from the knowledge source.
You need to improve RAG accuracy without changing the embedding model currently in use. You need to achieve this goal while minimizing operational costs.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point. Choose two .
- A. Implement an optimized re-ranker.
- B. Increase token limits for all requests.
- C. Tune chunk size and overlap to match content structure.
- D. Optimize the length of embedding vectors.
Answer: A,C
Explanation:
Microsoft ' s RAG optimization guidance identifies two high-impact, low-cost improvements for retrieval quality that do not require changing the embedding model. First, tuning chunk size and overlap (option A):
chunk size determines how much context each retrieved piece contains - too large and irrelevant content dilutes the signal; too small and answers may be split across chunks. Adjusting these parameters requires only re-indexing the documents with zero additional compute cost. Second, implementing a re-ranker (option B): a re-ranker is a cross-encoder model that takes the top-N retrieved chunks and re-scores them based on their specific relevance to the query, significantly improving precision by filtering out contextually irrelevant chunks. Re-rankers add modest compute cost but are far cheaper than changing the embedding model, which would require re-embedding the entire knowledge base. Increasing token limits (option C) and optimizing embedding vector length (option D) do not address retrieval accuracy without an embedding model change.
Microsoft Learn Reference Topic: Optimize RAG pipelines - Chunk size tuning and re-ranking in Azure AI Search and Azure Machine Learning
NEW QUESTION # 59
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 dataset 1. 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 train.py --training_data training_data
Does the solution meet the goal?
- A. No
- B. Yes
Answer: A
Explanation:
This solution fails for two reasons. First, the script filename is wrong: the scenario specifies script.py, but the proposed solution calls train.py. This alone disqualifies the solution. Second, the input reference syntax is incorrect. In Azure ML SDK v2 command jobs, input values are injected into the command string using a placeholder syntax with double curly braces around inputs.name. The value training_data without the placeholder is just a string literal and is not resolved to the actual file path of the input data asset. The correct command syntax uses the proper placeholder so Azure ML can resolve the registered data asset and provide its local path to the script at runtime. Both errors - wrong script name and missing placeholder syntax - make this solution non-functional.
Microsoft Learn Reference Topic: Submit training jobs as command jobs in Azure Machine Learning Python SDK v2
NEW QUESTION # 60
A team deploys a generative AI application that uses a model deployed in Microsoft Foundry.
The application must support latency monitoring under production load.
You need to enable performance observability.
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.
Answer:
Explanation:
Explanation:
Microsoft ' s observability guidance for Azure AI Foundry applications describes a three-stage activation sequence. First, enable Tracing in the Microsoft Foundry project settings before deployment - Tracing instruments the application ' s LLM calls with OpenTelemetry-compatible spans that capture timing data for each step in the flow. Second, deploy the application to a production endpoint so that real traffic flows through the instrumented code path - without actual production traffic, there is no latency data to observe.
Third, configure Azure Monitor and Application Insights to receive, aggregate, and visualize the telemetry emitted by Tracing. Azure Monitor ' s metrics explorer and Application Insights ' performance views display p50, p95, and p99 latency distributions over time, enabling the team to identify latency regressions and set alert thresholds. This sequence - instrument, deploy, visualize - is the canonical Microsoft path to production AI performance observability.
Microsoft Learn Reference Topic: Monitor generative AI applications with Azure Monitor and Microsoft Foundry Tracing
NEW QUESTION # 61
You create a binary classification model. You use the Fairlearn package to assess model fairness.
You must eliminate the need to retrain the model.
You need to implement the Fairlearn package.
Which algorithm should you use?
- A. fairlearn.preprocessing.CorrelationRemover
- B. fairlearn.reductions.GridSearch
- C. fairiearn.reductions.ExponentiatedGradient
- D. fairlearn.postprocessing.ThresholdOptimizer
Answer: D
Explanation:
The question ' s constraint is explicit: no retraining. This immediately eliminates ExponentiatedGradient (option A), which is a reduction-based in-processing algorithm that requires retraining as part of the fairness- aware optimization process. GridSearch (option C) systematically trains multiple models across a grid of fairness constraints, again requiring training. CorrelationRemover (option B) is a pre-processing technique that transforms training features before training, also requiring a new training run. ThresholdOptimizer (option D) is a post-processing algorithm: it takes an already-trained model and optimizes its classification thresholds independently for different sensitive-attribute groups to achieve a fairness constraint such as equalized odds or demographic parity, without touching the model weights. This is the only Fairlearn approach that operates purely at inference time on an existing model.
Microsoft Learn Reference Topic: Mitigate unfairness in machine learning models with Fairlearn - Post- processing with ThresholdOptimizer
NEW QUESTION # 62
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
Answer:
Explanation:
Explanation:
The MLTable format in Azure Machine Learning Python SDK v2 is a structured abstraction over tabular data sources. It stores a YAML file alongside data files, describing how to read and transform the data. To materialize this into a Pandas DataFrame, you use the mltable library: first call mltable.load with the path to the MLTable folder to load the definition, then call to_pandas_dataframe() on the returned object. The path parameter should point to the folder containing the MLTable YAML file on the default datastore. MLTable abstracts the storage location and transformation steps, making the code storage-agnostic - the same code works whether data lives in Blob Storage, ADLS Gen2, or a local path. The SDK v2 approach with MLTable is the recommended pattern for governed, reusable data access in Azure Machine Learning.
Microsoft Learn Reference Topic: Create and use MLTable data assets in Azure Machine Learning Python SDK v2
NEW QUESTION # 63
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. Component
- B. Model
- C. Pipeline
- D. Environment
Answer: B
Explanation:
In an Azure Machine Learning classification workflow, you should register Models.
Registration creates a versioned asset in your workspace or a centralized registry, which is essential for ensuring that artifacts are reusable, governed, and trackable across different projects and environments.
Key Assets for Reuse and Governance
To maintain a consistent and governed workflow, you should focus on registering these specific assets:
Models: The primary artifact. Registering a model allows you to track its lineage (which experiment created it), version it, and deploy it consistently across environments.
Components: These are self-contained pieces of code that perform specific steps in a pipeline (e.g., data cleaning, training). Registering them allows different teams to reuse the same
"traditional" classification logic without rewriting code.
Environments: Encapsulates the software dependencies (Python packages, Docker images) required for your model to run. Registering these ensures reproducibility across different compute targets.
Data Assets: Registering your training and testing datasets as versioned assets ensures that you can always audit exactly what data was used to train a specific model version.
Reference:
https://learn.microsoft.com/en-us/azure/machine-learning/concept-azure-machine-learning-v2
NEW QUESTION # 64
Drag and Drop Question
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.
Answer:
Explanation:
NEW QUESTION # 65
Hotspot Question
A team is building a generative AI agent by using Retrieval-Augmented Generation (RAG) in Microsoft Foundry.
The team frequently updates prompt content. The team must be able to track changes across contributors while avoiding full application redeployments.
You need to enable rapid prompt iteration with traceability. Applications consuming the agent must be able to use updated prompts without requiring redeployment.
What should you configure for each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer:
Explanation:
NEW QUESTION # 66
Case Study 1 - Fabrikam Inc.
Background
Fabrikam Inc. is a mid-sized healthcare analytics company that provides population health dashboards and predictive insights to regional hospital systems across the United States.
Fabrikam Inc. customers rely on near real time analytics to monitor patient flow, staffing needs, and readmission risks. They use multiple traditional forecasting machine learning models for predictions.
Fabrikam Inc. has an established Microsoft Azure footprint. The company uses Jupyter Notebooks that run on a local server as the primary development environment. The data science team is experiencing scalability, asset management and code management issues with the current development platform. Fabrikam Inc. plans to migrate to a cloud-based development environment to mitigate the issues.
Additionally, the company plans to implement a Retrieval-Augmented Generation (RAG)-based chat application for client support. Leadership requires the application to be developed and deployed with a low operational risk.
Current Environment
Fabrikam Inc. operates a single Azure subscription that has the following components:
* Azure Data Lake Storage Gen2 that contains de-identified clinical and operational datasets
* Azure AI Search indexing curated analytical documents and reference materials
* A small set of Python-based training scripts maintained by data scientists
* Azure OpenAI Service with deployed foundational models
* A Microsoft Foundry resource for building a RAG-based solution
Evaluation data has manually defined expected responses.
The current challenges faced by the data science team include the following:
* Model training jobs are run manually from notebooks.
* Experiment tracking is inconsistent
* Model versions are registered without standardized metadata.
* Deployment is performed manually by data scientists, with limited rollback capability.
* The team has no standardized evaluation process for generative AI outputs.
The environment currently allows public network access. Authentication relies on user accounts rather than managed identities. Compute targets are manually created and shared across experiments. This has led to resource contention during peak usage.
Business Requirements
Fabrikam Inc. has the following business requirements for the modernization initiative:
* Provide a conversational interface that answers analytics questions by using internal documents and datasets.
* Ensure that sensitive healthcare-related data is not exposed outside the Fabrikam Inc. Azure tenant.
* Enable repeatable and auditable model training and deployment processes.
* Support experimentation to compare prompt strategies and fine-tuned models.
* Align the model with the ranked preferences and optimize behavior for the long term.
* Minimize disruption to existing analytics workloads during rollout.
Technical Requirements
To support the business goals, Fabrikam Inc. identifies these technical requirements:
* Use Azure Machine Learning workspaces to centrally manage data assets, models, and environments.
* Implement experiment tracking and model versioning for all training jobs.
* Orchestrate training and evaluation by using pipelines rather than manually running notebooks.
* Deploy traditional machine learning models with support for staged rollout and rollback.
* Improve RAG-based solution output quality.
* Use the existing evaluation datasets that are based on real data with input-output pairs.
* Apply advanced fine-tuning techniques only when prompt engineering is insufficient Issues and Constraints Fabrikam Inc. must comply with internal security policies that require the company to restrict network access and avoid long-lived secrets. The data science team has limited Azure DevOps experience, so solutions must favor managed services and automation over custom infrastructure.
Cost predictability is important. Leadership prefers serverless or managed compute options where possible but is willing to approve dedicated compute for stable production workloads.
Problem Statement
Fabrikam Inc. must design and implement an Azure-based AI operations solution that enables reliable training, evaluation, deployment, and iteration of generative AI models. The solution must support experimentation and gradual rollout while ensuring governance, security, and operational stability. The data science and platform teams must collaborate to deliver this solution by using Azure Machine Learning and Microsoft Foundry capabilities.
You need to make model training repeatable and auditable to address Fabrikam Inc.'s current environment challenges and technical requirements. What should you use?
- A. Scheduled notebook runs by using Azure Machine Learning jobs
- B. Serverless execution by using Azure Functions
- C. Training pipelines in Azure Machine Learning
- D. Workflow automation by using Azure Logic Apps
Answer: C
Explanation:
Azure Machine Learning (AML) training would be best. While the other options can execute code, they lack the native machine learning operations (MLOps) capabilities required for enterprise auditing and repeatability.
Azure ML pipelines are purpose-built for machine learning workflows. They natively solve your tracking and auditing requirements.
Built-in Lineage: Automatically tracks data inputs, code versions, environments, and output models.
Native Component Reuse: Steps are modular, containerized, and easily shared across teams.
Data Caching: Skips completed steps if inputs have not changed, saving time and compute costs.
Scenario, Technical Requirements:
Implement experiment tracking and model versioning for all training jobs.
Orchestrate training and evaluation by using pipelines rather than manually running notebooks.
Problem Statement
Fabrikam Inc. must design and implement an Azure-based AI operations solution that enables reliable training, evaluation, deployment, and iteration of generative AI models.
Reference:
https://medium.com/data-for-ai/mlops-with-a-feature-store-8dabc845584a
NEW QUESTION # 67
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.
Answer:
Explanation:
Explanation:
For deployment failures when containers do not start, review deployment logs in Azure ML Studio or use the CLI get-logs command to surface dependency installation errors, missing files, or scoring script import failures. For authentication errors such as 401 or 403 responses, check that client applications are using valid authentication keys or bearer tokens, as mismatched or expired credentials cause auth failures. For performance degradation and slow responses, review compute instance scaling configuration, since a surge in traffic saturates a fixed number of replicas causing queuing and high latency without autoscaling. For internal server errors such as HTTP 500, these typically originate in the scoring script, so inspect the init and run functions for unhandled exceptions and verify the environment has all required packages installed.
Microsoft Learn Reference Topic: Troubleshoot online endpoint deployment failures - Azure Machine Learning
NEW QUESTION # 68
Drag and Drop Question
A team is developing a generative AI assistant. The team is experimenting with two prompt variants to improve performance before rolling out changes to production.
The team observes the following prompt results:
- PromptA variant generates longer responses and may be more expensive
to operate.
- PromptB may produce lower-quality answers.
The team must control operating costs while still selecting the better-performing prompt.
You need to identify cost drivers and compare the output quality of the two prompt variances to make an informed decision.
Which actions should you perform? To answer, move the appropriate actions to the correct requirements. 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.
Answer:
Explanation:
NEW QUESTION # 69
A team iterates prompts used by a generative AI agent. The team must support internal review before releasing changes.
The team must:
Track prompt changes with a clear history for audit and rollback.
Compare prompt variants in parallel without affecting the prompt used in the production environment.
You need to select the appropriate source control approach for each requirement.
What should you use for each requirement? To answer, move the appropriate source controls to the correct requirements. You may use each source control 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.
Answer:
Explanation:
Explanation:
Git commits on the main branch provide the immutable, ordered history that auditors need: every change is timestamped, attributed to a specific developer, and reversible via git revert - this is the audit trail and rollback mechanism required by the first requirement. Git branches allow developers to create and test multiple prompt variants in complete isolation from the production prompt on the main branch, addressing the second requirement. A developer on an experiment branch can run full evaluations without touching the production prompt. When a variant is approved, it is merged via pull request. You cannot use branches alone for audit history because branches can be deleted, and you cannot use main-branch commits alone for parallel variant comparison without disrupting the history. Git ' s branch-and-merge model provides both capabilities simultaneously.
Microsoft Learn Reference Topic: Version control for AI prompts - Git branch strategies for prompt management in Microsoft Foundry
NEW QUESTION # 70
Drag and Drop Question
A company is standardizing generative AI development across multiple teams.
Each team requires an isolated workspace. Governance and shared connections must be centrally managed.
You need to implement a Microsoft Foundry environment structure that supports centralized governance and team isolation.
Which type of configuration should you use for each requirement? 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.
Answer:
Explanation:
NEW QUESTION # 71
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?
- A. Developer
- B. Global Batch
- C. Data Zone Standard
- D. Data Zone Batch
Answer: C
Explanation:
Data Zone Standard deployment routes requests to multiple datacenters within a defined geographic zone such as the US data zone, providing lower latency by using zone-level load balancing while maintaining data within a broad compliance boundary. This makes it suitable for enterprise internal applications where multiple business units need low-latency access without strict single-region data residency requirements. Developer deployment (option A) is a low-quota, unguaranteed tier designed for prototype testing, not production workloads serving multiple business units. Data Zone Batch (option B) is designed for high-volume asynchronous batch processing, not interactive low-latency real-time requests. Global Batch (option D) is optimized for scheduled bulk inference across all global regions but adds latency and is inappropriate for synchronous interactive use cases.
Microsoft Learn Reference Topic: Foundation model deployment types in Microsoft Foundry - Data Zone Standard for low-latency internal use
NEW QUESTION # 72
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 for multi-turn chat.
Which file encoding method should you use?
- A. ASCII
- B. UTF-8
- C. ISO-8859-1
- D. UTF-16
Answer: B
Explanation:
For preparing a multi-turn training data file for the Azure OpenAI Service, you should use UTF-8 with a Byte Order Mark (BOM) encoding.
File Format Requirements
Format: The file must be in JSON Lines (JSONL) format, where each individual line is a valid JSON object representing one training example.
Encoding: Specifically, Azure OpenAI requires the JSONL file to be encoded in UTF-8 with BOM.
Structure: For multi-turn conversations, each line must contain a messages array with multiple role ("system", "user", "assistant") and content pairs to represent the dialogue history.
Reference:
https://dev.to/icebeam7/fine-tuning-a-model-with-azure-open-ai-studio-39p7
NEW QUESTION # 73
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. Validate inference schema compatibility.
- C. Analyze error rates across defined demographic cohorts.
- D. Evaluate feature importance for prediction transparency.
- E. Measure endpoint latency under load.
Answer: C,D
Explanation:
A loan approval model must be assessed for both transparency and demographic fairness before registration.
Option D (feature importance) addresses prediction transparency - using SHAP or Azure ML ' s Responsible AI dashboard, the team can see which features drive individual predictions, revealing whether proxy variables for protected attributes are influencing decisions inappropriately. Option E (error rates across demographic cohorts) directly measures whether the model makes more mistakes for specific groups - a core fairness metric required under Responsible AI principles. Option A (global error rates) masks disparities since you need cohort-level analysis. Option B (endpoint latency) is a performance engineering concern. Option C (inference schema compatibility) is a technical integration check. The Azure ML Responsible AI dashboard combines both error analysis and feature importance in a unified interface designed for exactly this type of pre-deployment fairness assessment.
Microsoft Learn Reference Topic: Responsible AI dashboard in Azure Machine Learning - Error analysis and model interpretability
NEW QUESTION # 74
Drag and Drop Question
You manage an Azure Machine Learning workspace. You train a model named model1.
You must identify the features to modify for a differing model prediction result.
You need to configure the Responsible AI (RAI) dashboard for model1.
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.
Answer:
Explanation:
Explanation:
To setup the Responsible AI (RAI) dashboard in Azure Machine Learning and specifically analyze minimal feature modifications needed to change a prediction result, you must use Counterfactual Analysis.
Here are the specific sequential steps you need to take:
Step 1: Load and configure the Responsible AI Insights dashboard constructor component.
Initialize the RAI Insights Dashboard Constructor
1. Create the root pipeline component that acts as the container for your tools.
2. Call the RAI Insights dashboard constructor component.
3. Pass your registered model and your test dataset as the mandatory inputs to this component.
Step 2: Add the Counterfactuals to Responsible AI Insights dashboard
Configure Counterfactual Analysis
1. Add the specific component required to identify what features to modify for a differing prediction.
2. Call the Add Counterfactuals to RAI Insights dashboard component.
3. Link its input to the output of the constructor component initialized in Step 1 above.
4. Configure the parameter variables, including the number of counterfactual examples you want to generate per data point.
Step 3: Use the Gather Responsible AI Insights dashboard component to present the dashboard.
Assemble and Submit the Dashboard Pipeline
1. Gather the components into a cohesive Azure ML pipeline job to execute them.
-> 2. Call the Gather RAI Insights dashboard component to aggregate the constructor and the counterfactual tool outputs.
3. Submit the pipeline job to your Azure Machine Learning workspace compute cluster for processing.
Reference:
https://oneuptime.com/blog/post/2026-02-16-how-to-implement-responsible-ai-dashboards-in-azure-machine-learning/view
NEW QUESTION # 75
You must ensure full reproducibility of experiments including dataset, code, and environment across multiple runs and workspaces. Which combination of practices is MOST appropriate?
- A. Environment + dataset + code versioning
- B. Git only
- C. Dataset versioning only
- D. Logging metrics only
Answer: A
Explanation:
Reproducibility requires versioning all components: code, datasets, and environments. Missing any of these elements prevents exact replication of experiments. For example, the same code with different data or dependencies can produce different results, making debugging and auditing difficult.
NEW QUESTION # 76
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?
- A. mlflow.log_artifact()
- B. mlflow.log_batch()
- C. mlflow.log_image()
- D. mlflow.log_metric()
Answer: D
Explanation:
To log a list of numerical metrics using the Azure Machine Learning Python SDK v2, you should use the mlflow.log_metric() method within a loop, or mlflow.log_metrics() to log them simultaneously as a dictionary.
Reference:
https://learn.microsoft.com/en-us/answers/questions/1456554/downloading-azureml-experiment-metrics-logged-with
NEW QUESTION # 77
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 --trainingdata ${{inputs.training_data}}
Does the solution meet the goal?
- A. No
- B. Yes
Answer: B
Explanation:
Correct:
* python script.py --training_data ${{inputs.training_data}}
The scipt is named script.py.
For the parameter use ${{inputs.training_data}}
Incorrect:
* python script.py --training_data dataset1.csv
* python script.py dataset1.csv
* python train.py --training_data training_data
Note: Read a TabularDataset, Example
In the Input object, specify the type as AssetTypes.MLTABLE, and mode as InputOutputModes.DIRECT:
* Details omitted*
job = command(
code="./src", # Local path where the code is stored
*-> command="python train.py --inputs ${{inputs.input_data}}",
inputs=my_job_inputs,
environment="<environment_name>:<version>",
compute="cpu-cluster",
)
Reference:
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-read-write-data-v2
NEW QUESTION # 78
You are implementing hyperparameter tuning by using Bayesian sampling for an Azure ML Python SDK v2-based model training from a notebook. The notebook is in an Azure Machine Learning workspace. The notebook uses a training script that runs on a compute cluster with 20 nodes.
The code implements Bandit termination policy with slackjactor set to 0.2 and a sweep job with max_concurrent_trials set to 10.
You must increase effectiveness of the tuning process by improving sampling convergence.
You need to select which sampling convergence to use.
What should you select?
- A. Set the value of slack_factor of early_termination policy to 0.9.
- B. Set the value of slack_factor of early_termination policy to 0.1.
- C. Set the value of max_concurrent_trials to 4.
- D. Set the value of max_concurrent_trials to 20.
Answer: C
Explanation:
To improve the sampling convergence and effectiveness of your Bayesian hyperparameter sweep, you must decrease the value of max_concurrent_trials (for example, setting max_concurrent_trials = 4).
Decrease max_concurrent_trials
Bayesian sampling is a fundamentally sequential algorithm. It relies entirely on the outcomes of previously completed trials to calculate and select the next optimized set of hyperparameters.
The Problem: Setting max_concurrent_trials = 10 forces the optimization engine to kick off 10 trials at the exact same time. Because none of these 10 overlapping trials have completed or generated metrics yet, they cannot learn from one another. This high parallelism compromises the intelligence of the algorithm, turning your structured Bayesian sweep into a less effective random sampling process.
The Solution: Reducing max_concurrent_trials to a smaller number (such as 4) allows sets of trials to complete sequentially. This ensures the optimizer captures enough historical performance data to intelligently direct subsequent runs, achieving significantly better convergence.
Reference:
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters
NEW QUESTION # 79
......
Microsoft Certified Free Certification Exam Material from Exam4PDF with 159 Questions: https://practicetorrent.exam4pdf.com/AI-300-dumps-torrent.html

