Free Sample — 15 Practice Questions
Preview 15 of 85 real practice questions from the Microsoft AI-300 study guide — no signup, no email, no card required.
Question 43
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: Create prompt variants and compare their outputs in the Evaluation experience.
Does the solution meet the goal?
Show Answer
Correct Answer: A
Explanation:
The Evaluation experience in Microsoft Foundry is designed for manual evaluation of prompt variants. It allows comparing prompt variants side by side and records per-run details including inputs, outputs, token usage, and latency, satisfying the stated goal.
Question 19
A team is validating a generative AI assistant for a company. The assistant generates responses by using internal knowledge sources.
The company requires assurance that responses are accurate, supported by sources, and related to the user prompts before enabling production access.
You need to implement quality metrics that confirm the assistant produces reliable and meaningful responses.
Which two evaluation metrics should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Groundedness
B. Relevance
C. Harmfulness
D. Tone
E. Fairness
Show Answer
Correct Answer: A, B
Explanation:
Groundedness evaluates whether responses are supported by the provided knowledge sources, helping ensure factual accuracy and traceability. Relevance evaluates whether the response appropriately addresses the user's prompt. These directly match the requirement to verify responses are accurate, source-supported, and related to the prompt. Harmfulness, Tone, and Fairness assess safety, style, or bias rather than source support and prompt alignment.
Question 37
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?
Show Answer
Correct Answer: A
Explanation:
The stated goal is to capture inputs, outputs, token usage, and latencies for each prompt flow run for manual evaluation. Enabling Tracing in Microsoft Foundry prompt flow and executing test runs produces trace data containing this runtime information. The requirement says you must manually evaluate and compare results; tracing provides the data needed to do so, even though comparison itself is a manual activity.
Question 3
You are preparing training data for a fine-tuning job in Microsoft Foundry.
Real production conversations cannot be used due to compliance requirements.
You need to generate synthetic interaction data that can be used for fine-tuning a generative model.
What should you do?
A. Export model evaluation logs and use them directly as training data.
B. Use a simulator to generate prompt-response interaction data that matches the target task.
C. Enable A/B testing and capture live user traffic for data generation.
D. Run a simulator to produce telemetry logs and trace data from user interactions.
Show Answer
Correct Answer: B
Explanation:
For fine-tuning when production conversations cannot be used due to compliance requirements, synthetic prompt-response pairs should be generated with a simulator that reflects the target task. Evaluation logs, live user traffic, and telemetry/trace logs are not appropriate sources of compliant fine-tuning interaction data.
Question 1
A team is building a Retrieval-Augmented Generation (RAG) system.
The team observes that the retrieved documents are often irrelevant or incomplete.
You need to improve retrieval accuracy.
What should you adjust?
A. Chunk size and overlap
B. Temperature parameter
C. Token limits
D. Embedding strategy
Show Answer
Correct Answer: A, D
Explanation:
Retrieval accuracy is primarily affected by how documents are chunked and how they are embedded. Chunk size and overlap determine whether relevant context is preserved and retrievable, while the embedding strategy determines the quality of semantic matching. Temperature and token limits do not improve retrieval quality.
Question 7
A product team is building a customer support assistant that must respond consistently across multiple channels.
Early testing shows that small wording changes in prompts cause large differences in tone and factual accuracy.
The team needs prompts that are reliable, reusable, and adaptable across multiple use cases without retraining the underlying model.
You need to design prompts that improve response quality while remaining flexible for future changes.
Which two actions should you perform? Each correct answer presents part of the solution. (Choose two.)
NOTE: Each correct selection is worth one point.
A. Fine-tune the model for each conversational variation.
B. Apply prompt transformations to separate system instructions from user input.
C. Use the system prompt to establish the role, tone, and style.
D. Increase the temperature setting to encourage creativity.
E. Repeat the instructions at the end of the system prompt.
Show Answer
Correct Answer: B, C
Explanation:
Separating system instructions from user input through prompt transformations improves reliability, reusability, and adaptability. Using the system prompt to define the assistant’s role, tone, and style promotes consistent behavior across channels. Fine-tuning is unnecessary because the requirement is to avoid retraining, increasing temperature reduces consistency, and repeating instructions is not a robust prompt engineering practice.
Question 25
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
Show Answer
Correct Answer: D
Explanation:
Use the %pip magic command in notebooks to install packages into the currently running kernel's Python environment. Shell commands like !pip or !conda may target a different environment, while %load is for loading code, not installing packages.
Question 50
A team is developing a generative AI assistant. The team is experimenting with multiple prompt variants to improve the user experience.
When comparing prompt variants, the team plans to assess whether the generated responses are grammatically correct.
You need to evaluate the quality of the language from the generated responses.
Which evaluator should you use?
A. Coherence
B. Textual similarity
C. Grounded ness
D. Fluency
Show Answer
Correct Answer: D
Explanation:
The Fluency evaluator measures the quality of language, including grammar, readability, and linguistic correctness of generated responses. Coherence evaluates logical consistency, Textual similarity compares outputs to reference text, and Groundedness assesses whether responses are supported by provided source content.
Question 29
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 in the review screen.
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?
Show Answer
Correct Answer: B
Explanation:
Adding a new Jupyter kernel in Azure Machine Learning requires creating or activating the desired Python/Conda environment and registering it as an IPython kernel. Deleting the existing Python 3.6 - AzureML kernel is not a required prerequisite and is unnecessary.
Question 45
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. fairiearn.reductions.ExponentiatedGradient
B. fairlearn.preprocessing.CorrelationRemover
C. fairlearn.reductions.GridSearch
D. fairlearn.postprocessing.ThresholdOptimizer
Show Answer
Correct Answer: D
Explanation:
ThresholdOptimizer is a Fairlearn postprocessing algorithm that adjusts decision thresholds on the outputs of an already trained classifier to satisfy fairness constraints, avoiding the need to retrain the underlying model. The reductions algorithms (ExponentiatedGradient and GridSearch) require retraining, and CorrelationRemover is a preprocessing step that changes features before training.
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?
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.
Show Answer
Correct Answer: A
Explanation:
To generate a Responsible AI dashboard in Azure Machine Learning studio, the model must first be available as a registered model in the workspace. The dashboard creation workflow uses the registered model and data to compute analyses such as explanations. Converting an MLflow model is unnecessary, and deployment is not required to create the dashboard.
Question 46
You manage a Microsoft Foundry project. You build a multi-turn chatbot application.
You plan to filter your traces to identify issues while observing how the application is responding. The solution must not use an external knowledge base.
You need to select an evaluation metric.
Which built-in evaluator should you use?
A. RelevanceEvaluator
B. SimilarityEvaluator
C. QAEvaluator
D. CoherenceEvaluator
Show Answer
Correct Answer: D
Explanation:
CoherenceEvaluator is the built-in evaluator used to assess the quality and consistency of multi-turn conversational responses, including logical flow and coherence, which helps identify issues in chatbot interactions without requiring an external ground-truth knowledge base.
Question 17
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.
NOTE: Each correct selection is worth one point.
A. Bandit
B. Default
C. Median stopping
D. Truncation selection
Show Answer
Correct Answer: C, D
Explanation:
Median stopping evaluates the current run against the median performance of all running averages from previous runs at the same interval, so it considers all prior runs rather than only the best. Truncation selection cancels the lowest-performing percentage of runs at evaluation intervals based on the distribution of all runs. Bandit compares against the best-performing run, and Default applies no early termination policy.
Question 8
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 in 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: Configure Azure Monitor to collect logs from the workspace. Use the logs to perform prompt evaluation.
Does the solution meet the goal?
Show Answer
Correct Answer: B
Explanation:
Azure Monitor workspace logs are intended for monitoring and diagnostics, not for manually comparing prompt variants with per-run prompt inputs, outputs, token usage, and latency. Prompt flow tracing/evaluation captures these run details for evaluation.
Question 21
DRAG DROP
-
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.
Show Answer
Correct Answer: Deploy a new model version.
Create an AI gateway route version.
Validate the behavior of the new version.
Explanation:
For a safe promotion, first deploy the new model, then create a separate AI gateway route version to direct controlled traffic to it, and validate its behavior before any full production cutover. Shifting 100% of traffic or updating the production route comes only after successful validation.