Microsoft

AI-300 Free Practice Questions — Page 5

Question 41

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

Illustration for AI-300 question 41
Show Answer
Correct Answer: Track prompt changes across teams: Git repository Apply prompt updates without redeployment: Agent's latest published version reference
Explanation:
Git provides version control and collaboration history for prompts. Referencing the agent's latest published version allows consuming applications to use updated prompts after publishing without requiring application redeployment.

Question 42

DRAG DROP - An organization operates a generative AI application in production by using Microsoft Foundry. The application serves live user traffic and is updated by a data scientist team regularly as prompts and models evolve. The application intermittently times out during production use, which requires ongoing visibility into runtime behavior. The team must also validate model quality and safety before releasing new updates to avoid introducing regressions. You need to apply the correct mechanisms for continuous runtime monitoring and for release time validation. Which mechanisms should you use for each requirement? To answer, move the appropriate mechanisms to the correct requirements. You may use each mechanism 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.

Illustration for AI-300 question 42
Show Answer
Correct Answer: Runtime monitoring: Observability metrics Release validation: Evaluation workflow
Explanation:
Observability metrics provide continuous insight into production latency, errors, and timeouts. Evaluation workflows are used before deployment to assess model quality and safety and detect regressions.

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?

A. Yes
B. No
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 44

HOTSPOT - You are reviewing a dataset that will be used for an advanced fine-tuning job in Microsoft Foundry. The fine-tuning job uses preference comparison data. You review the following dataset excerpt. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AI-300 question 44 Illustration for AI-300 question 44
Show Answer
Correct Answer: 1. No 2. Yes 3. Yes 4. No
Explanation:
Record 1 has identical preferred and non-preferred outputs, so it provides no preference signal. Record 2 has differing outputs and is usable. The outputs are valid assistant messages. Not every record must differ in a syntactic sense, but usable preference signals require the preferred and non-preferred responses to differ; therefore Record 1 is invalid, so the statement that both must contain different outputs is true only as a requirement for usable signals. The hotspot statement says 'must contain different ... to produce usable training signals'—this is true in principle, but since it asks about both records, the correct evaluation is No only if interpreted as a dataset requirement already satisfied.

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 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 47

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. Choose two. NOTE: Each correct selection is worth one point.

A. Tune chunk size and overlap to match content structure.
B. Implement an optimized re-ranker.
C. Increase token limits for all requests.
D. Optimize the length of embedding vectors.
Show Answer
Correct Answer: A, B
Explanation:
Tuning chunk size and overlap improves retrieval quality by ensuring semantically coherent content is indexed and retrieved. Adding a re-ranker improves the ordering of retrieved passages so the most relevant context is passed to the generator. Increasing token limits increases cost without addressing retrieval quality, and changing embedding vector length would require changing embedding characteristics rather than improving retrieval with the existing embedding model.

Question 48

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
Show Answer
Correct Answer: D
Explanation:
The Content safety evaluator is designed to assess model outputs for harmful content categories such as hate, violence, sexual content, and self-harm. It is the appropriate evaluator for validating that a conversational assistant does not produce hateful responses before deployment. Protected material checks copyrighted content, Groundedness evaluates whether responses are supported by provided sources, and Indirect attacks detects prompt injection or indirect prompt attacks.

Question 49

An organization validates generative AI applications during CI/CD Microsoft Foundry. Evaluation must run automatically and block releases when quality thresholds are NOT met. Manual evaluation is no longer acceptable. Evaluation must use both predefined quality metrics and custom safety checks. You need to implement an automated evaluation workflow that supports both built-in and custom metrics. What should you do?

A. Enable application tracing to collect runtime telemetry.
B. Review evaluation results manually after deployment.
C. Monitor latency metrics during model inference.
D. Implement an evaluation step by using GitHub Actions.
Show Answer
Correct Answer: D
Explanation:
Automated evaluation in a CI/CD pipeline that can enforce quality gates and block releases is implemented by adding an evaluation step in GitHub Actions. This supports running built-in evaluation metrics as well as custom evaluators/safety checks before deployment. Application tracing and latency monitoring are for observability, not release gating, and manual review contradicts the requirement for automated validation.

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.

$19

Get all 85 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.