Courseiva

Microsoft Certified: Machine Learning Operations Engineer Associate (AI-300) (AI-300) (AI-300) — Questions 151–181

181 questions total · 3 pages · All types, answers revealed

Page 2

Page 3 of 3

151
Multi-Selecteasy

Which TWO metrics are most useful for evaluating the 'User Experience' in a conversational agent?

Select 2 answers
A.Relevance
B.Disk I/O speed
C.Latency
D.Model training loss
E.GPU voltage
AnswersA, C

Relevance measures whether responses actually address the user's question, a core driver of conversational satisfaction. Alongside coherence, it reflects perceived quality directly, making it a useful user experience metric rather than an internal system measure.

Why this answer

Relevance (A) is a core user-experience metric for a conversational agent because it measures whether the agent's responses actually address the user's intent, which directly determines perceived usefulness and satisfaction. Latency (C) is equally essential since response time governs conversational flow; high latency makes interactions feel sluggish and breaks the natural turn-taking users expect. Disk I/O speed (B) is an infrastructure metric that affects backend performance but is not a direct measure of how users experience the conversation.

Model training loss (D) is an offline optimization signal describing how well the model fits training data, not the quality of live interactions. GPU voltage (E) is a hardware-level electrical measurement with no bearing on conversational user experience.

152
Multi-Selectmedium

Which THREE of the following represent lifecycle stages of an ML model in Azure ML?

Select 3 answers
A.Training
B.Data Cleaning
C.Registration
D.Deployment
E.Policy Enforcement
AnswersA, C, D

Training fits model parameters against prepared data to produce a candidate artefact, making it the first lifecycle stage before evaluation, registration and deployment. Azure ML captures it as a job whose outputs feed subsequent stages, satisfying the lifecycle-stage criterion in the stem.

Why this answer

Training (A) is a correct lifecycle stage because it is the phase where Azure ML runs a training script/job on compute to fit model parameters and produce a model artifact. Registration (C) is correct because the trained model is registered in the Azure ML workspace model registry, giving it a versioned, named asset that can be tracked and consumed downstream. Deployment (D) is correct because the registered model is then deployed to an endpoint (e.g., ACI/AKS/managed online endpoint) for real-time or batch inference, completing the operational lifecycle.

Data Cleaning (B) is a data-preparation activity rather than a distinct ML model lifecycle stage in Azure ML, and Policy Enforcement (E) is a governance/compliance concern, not a model lifecycle stage.

153
Multi-Selecthard

You need to implement a retraining trigger based on performance degradation. Which TWO metrics should you monitor to decide when to retrain?

Select 2 answers
A.CPU usage of the inference cluster
B.Network latency
C.Number of active users
D.Model prediction precision
E.Model prediction accuracy
AnswersD, E

Precision measures the proportion of positive predictions that are actually correct, so a sustained drop signals the model is degrading on the positive class. Monitoring it alongside recall directly satisfies the stem's requirement to detect performance degradation and trigger retraining, rather than tracking infrastructure or data-drift signals alone.

Why this answer

Options D and E are correct because retraining triggers based on performance degradation must directly measure how well the model's predictions match ground truth: model prediction precision (D) captures the proportion of positive predictions that are actually correct, and model prediction accuracy (E) captures the overall fraction of correct predictions, both of which decline when the model drifts or degrades. Monitoring these model-quality metrics lets you set thresholds (e.g., accuracy drops below 90% or precision falls by 5%) that signal when retraining is warranted. Option A (CPU usage of the inference cluster) is an infrastructure resource metric that reflects load or scaling needs, not model correctness.

Option B (network latency) measures communication delay and says nothing about prediction quality. Option C (number of active users) is a traffic/usage metric that may correlate with load but does not indicate whether the model's predictions have degraded.

Exam trap

AI-300 often tests the confusion between infrastructure health metrics and model quality metrics — candidates must recognize that retraining decisions require monitoring prediction quality (precision, accuracy, recall, F1), not system resource usage.

154
Multi-Selectmedium

A developer is troubleshooting an agent that is failing to connect to an external tool. Which THREE of the following infrastructure settings should be verified?

Select 3 answers
A.The Azure AI Foundry 'Connections' configuration for the specific tool.
B.The Environment Variables passed to the Prompt Flow runtime.
C.The Azure Resource Group location.
D.The model version of the LLM.
E.The Network Security Group (NSG) rules allowing outbound traffic from the runtime.
AnswersA, B, E

The Connections configuration in Azure AI Foundry stores the endpoint, authentication credentials and access keys the agent uses when invoking an external tool. A missing, stale or mis-scoped connection entry prevents the tool call from authenticating, so it must be verified first.

Why this answer

Option A is correct because the Azure AI Foundry 'Connections' configuration defines the endpoint, authentication, and credentials the agent uses to reach an external tool, so a misconfigured connection would directly cause connection failures. Option B is correct because the Prompt Flow runtime relies on environment variables (for example API keys, endpoint URLs, or proxy settings) to authenticate and route requests to external tools, and missing or incorrect values break connectivity. Option E is correct because outbound traffic from the runtime must be permitted by Network Security Group rules; if the NSG blocks the destination port or IP, the agent cannot establish the connection.

Option C is not relevant because the Azure Resource Group location is a metadata/placement attribute and does not govern outbound connectivity or tool authentication. Option D is not relevant because the LLM model version affects model behavior and output quality, not the network or credential path used to connect to an external tool.

155
Multi-Selectmedium

Which THREE actions are essential when managing a 'Golden Dataset' for LLM evaluation?

Select 3 answers
A.Versioning the dataset to track changes
B.Encrypting the data with public keys only
C.Deleting logs after each test run
D.Updating the dataset as model capabilities change
E.Curating high-quality prompt-response pairs
AnswersA, D, E

Versioning the golden dataset records each revision, so evaluation scores remain reproducible and comparable across runs. Without immutable version identifiers, a changed prompt-response set silently invalidates historical benchmarks, breaking the traceability that managing an evaluation dataset for LLMs demands.

Why this answer

Option A (Versioning the dataset to track changes) is correct because a golden dataset must be immutable and auditable, so semantic versioning or hashes (e.g., Git, DVC, or dataset version tags) let you reproduce evaluation results and correlate score changes with specific dataset revisions. Option D (Updating the dataset as model capabilities change) is correct because as models improve, static benchmarks saturate; curating harder or newly relevant cases (e.g., new task types, edge cases, or regressions) keeps the evaluation discriminative and aligned with current deployment goals. Option E (Curating high-quality prompt-response pairs) is correct because the golden dataset's reference answers must be accurate, unambiguous, and representative, typically validated by domain experts, since noisy or biased ground truth invalidates every metric computed against it.

Option B is not essential because encryption with public keys only is an asymmetric-encryption detail, not a dataset-management requirement; confidentiality is handled by access controls and, if needed, symmetric encryption or KMS. Option C is not essential because deleting logs after each test run destroys the audit trail and reproducibility evidence needed to compare runs and debug regressions.

Exam trap

AI-300 often tests whether candidates confuse golden-dataset hygiene (versioning, curation, updates) with generic security or logging practices that sound responsible but are not part of evaluation dataset management.

156
MCQhard

You need to detect 'jailbreak' attempts in your RAG application. You are implementing a custom evaluation pipeline. Which technique is most effective for identifying adversarial inputs designed to bypass system instructions?

A.Adversarial input classification using a dedicated judge model
B.Token usage tracking
C.Latency threshold monitoring
D.Semantic similarity scoring
AnswerA

A dedicated judge model trained to classify adversarial inputs detects manipulation attempts by pattern and intent, rather than relying on static keyword rules. This catches novel jailbreak phrasing designed to bypass system instructions, which signature-based filtering misses.

Why this answer

Adversarial evaluation using a 'jailbreak' detection model or prompt-based evaluation is the standard approach to identify bypass attempts.

157
Multi-Selecthard

Which THREE of the following are common reasons for a model deployment to fail on a Managed Online Endpoint?

Select 3 answers
A.Missing Python dependencies
B.Incorrect storage account name
C.Insufficient quota for the VM SKU
D.Errors in the scoring script
E.Slow internet connection
AnswersA, C, D

Causes runtime import errors.

Why this answer

Option A (Missing Python dependencies) is correct because a Managed Online Endpoint builds a scoring image from the specified environment; if required packages are absent from the conda/pip specification, the container fails during initialization or at inference time. Option C (Insufficient quota for the VM SKU) is correct because deployment requires available vCPU/memory quota in the target region for the chosen instance type, and exceeding it causes the deployment to fail with a quota error. Option D (Errors in the scoring script) is correct because the scoring script defines init() and run() and is executed by the inference server; syntax errors, bad imports, or incorrect input/output handling cause the deployment or health probe to fail.

Option B (Incorrect storage account name) is not a typical cause, since Managed Online Endpoints abstract away storage configuration and do not require the user to specify a storage account. Option E (Slow internet connection) is not a deployment failure cause, as the endpoint runs in Azure's managed infrastructure and does not depend on the client's internet speed.

158
MCQeasy

You are onboarding a team to Azure AI Foundry. You need to assign the minimum permissions for a developer to deploy and test a model. Which role should you assign?

A.Owner
B.Reader
C.Azure AI Developer
D.Contributor
AnswerC

Azure AI Developer grants permissions to build, deploy and test models within an Azure AI Foundry project without granting broader resource-management rights. This satisfies the stem's minimum-permission constraint for a developer deploying and testing a model.

Why this answer

The 'Azure AI Developer' role provides sufficient permissions to manage resources and perform model deployments within the project.

159
MCQeasy

What is the primary function of a 'Prompt Template' in an Azure AI Prompt Flow?

A.To cache previous responses
B.To define the structure of the prompt with dynamic inputs
C.To perform load balancing
D.To automatically retrain the model
AnswerB

A prompt template holds the prompt text with placeholders that are substituted at runtime from flow inputs, letting one prompt serve varied data. This dynamic-input structure satisfies the reuse constraint, separating prompt design from the values supplied by earlier flow nodes.

Why this answer

A prompt template allows users to define the structure of the prompt while injecting dynamic variables.

160
MCQeasy

What is the primary benefit of 'Prompt Versioning' in an MLOps lifecycle?

A.It increases model training speed
B.It eliminates the need for evaluation
C.It automatically generates unit tests
D.It ensures reproducibility and enables easy rollbacks
AnswerD

Prompt versioning stores each prompt revision as an immutable, addressable artefact linked to its runs. This satisfies the reproducibility requirement by letting you re-execute a prior configuration exactly, and enables rollback to a known-good prompt when a new revision degrades output quality.

Why this answer

Prompt versioning ensures reproducibility by tracking changes to prompts over time, allowing you to revert to a previous version if a new prompt degrades performance. It also enables easy rollbacks, which is critical in MLOps for maintaining stable production systems. It does not directly affect training speed, evaluation necessity, or test generation.

Exam trap

AI-300 often tests the confusion between prompt versioning and model versioning, where candidates might think prompt versioning speeds up training or removes evaluation, but it is purely about managing prompt iterations for reproducibility.

How to eliminate wrong answers

Option A is wrong because prompt versioning does not influence model training speed; training is about model parameters and data, not prompt text. Option B is wrong because evaluation is still required to assess prompt effectiveness; versioning helps compare versions but does not eliminate the need for evaluation. Option C is wrong because prompt versioning does not automatically generate unit tests; it only manages prompt iterations, and tests must be written separately.

161
MCQhard

You are implementing an agentic workflow using Azure AI Foundry. The agent needs to access a secure external API. How should you store the API key securely within the project?

A.Pass the key as an environment variable in the deployment YAML.
B.Hardcode the key in the prompt template.
C.Save the key in a local '.env' file in the code repository.
D.Store the key in an 'Azure Key Vault' and reference it as a 'Connection' in the AI Project.
AnswerD

Azure Key Vault stores the API key as a managed secret, and the AI Project Connection references it, so the agent retrieves credentials at runtime without hard-coding them. This satisfies the stem's requirement for secure storage within the project.

Why this answer

Storing the key in Azure Key Vault and referencing it as a Connection in the AI Project is correct because Key Vault provides secure secret management with access policies, auditing, and encryption. The AI Project can securely retrieve the key at runtime without exposing it in code or configuration files. Other options expose the key insecurely.

Exam trap

AI-300 often tests the misconception that environment variables or .env files are secure enough, but the exam expects Key Vault integration for production-grade security.

How to eliminate wrong answers

Option A is wrong because environment variables in deployment YAML can be exposed in logs or source control, and they are not encrypted at rest. Option B is wrong because hardcoding the key in the prompt template is extremely insecure and visible to anyone with access to the prompt. Option C is wrong because saving the key in a local .env file in the code repository risks accidental commit and exposure, and it is not suitable for production.

162
Multi-Selectmedium

You are responsible for monitoring a deployed model on an Azure Machine Learning managed online endpoint. The model's input feature distribution has drifted from the training baseline, and you need to detect this automatically and act on it. Which two actions should you take? (Choose two.)

Select 2 answers
A.Set the deployment's request timeout to a lower value so that anomalous requests fail fast and are excluded from metrics.
B.Re-register the model with a higher version number so the monitoring system recognizes it as the current production model.
C.Create a model monitor in Azure Machine Learning that computes a drift metric against a reference dataset and set an alert when the threshold is exceeded.
D.Increase the deployment's instance count so that the endpoint can absorb the additional inference traffic caused by drift.
E.Enable model data collection on the endpoint deployment so inference request and response payloads are logged to a storage location.
AnswersC, E

A model monitor evaluates production data against a reference dataset on a schedule and can raise alerts or trigger actions when drift crosses a configured threshold. This provides the automatic detection and notification the scenario requires, complementing data collection by turning raw payloads into actionable drift signals.

Why this answer

Automatic drift detection requires two things working together: collecting live inference data from the deployment and configuring a model monitor that compares that data to a reference dataset and raises alerts past a threshold. Together they detect distribution change and notify the team. Scaling, timeout tuning, and version bumps do not create drift signals.

Exam trap

The trap here is assuming operational tuning such as scaling or timeout changes contributes to drift detection, when only data collection plus a configured monitor with a reference dataset does.

163
Multi-Selectmedium

Your team wants to monitor the safety of model outputs. Which THREE steps should you take?

Select 3 answers
A.Configure 'Diagnostic Logs' to track flagged content.
B.Enable 'Content Safety' filters in the deployment.
C.Set up 'Alerts' for high content violation rates.
D.Allow all models to bypass filters for performance.
E.Disable all logging to save storage space.
AnswersA, B, C

Diagnostic Logs stream request-level records, including content-filter verdicts, into Log Analytics. This satisfies the monitoring requirement by giving a queryable audit trail of flagged outputs, which is the evidence source that alerts and dashboards later consume.

Why this answer

Option A is correct because configuring Diagnostic Logs in Azure AI services captures flagged content events and prompt/response metadata, giving the team an auditable trail of unsafe model outputs for review and compliance. Option B is correct because enabling Content Safety filters on the deployment applies the harm-category classifiers (violence, hate, sexual, self-harm) to both prompts and completions, actively blocking or annotating unsafe outputs at inference time. Option C is correct because setting up Alerts on metrics such as content violation rates (via Azure Monitor) notifies the team when unsafe output frequency spikes, enabling rapid incident response.

Option D does not belong because bypassing filters removes the very safety controls being monitored and increases risk. Option E does not belong because disabling logging eliminates the telemetry needed to detect, investigate, and alert on unsafe outputs.

Exam trap

AI-300 often tests the misconception that enabling filters alone is sufficient for safety monitoring, when logging and alerting are equally required to detect, audit, and respond to violations.

164
MCQhard

You notice your model is outputting redundant information. Which parameter specifically targets the penalty for repeating tokens?

A.max_tokens
B.presence_penalty
C.frequency_penalty
D.top_p
AnswerC

The frequency_penalty parameter applies a proportional penalty each time a token has already appeared in the generated text, so higher values progressively discourage repeated tokens. This directly targets the redundant output described in the stem, unlike presence_penalty, which penalises any token merely for appearing at least once.

Why this answer

The frequency_penalty parameter applies a penalty proportional to how many times a token has already appeared in the generated text, directly discouraging repeated tokens and reducing redundancy. Its value ranges from -2.0 to 2.0, with positive values increasing the penalty for frequent tokens.

Exam trap

AI-300 often tests the confusion between presence_penalty and frequency_penalty, tempting candidates to pick presence_penalty when the question specifically asks about penalizing repeated tokens proportionally.

How to eliminate wrong answers

Option A is wrong because max_tokens caps the total length of the output and does not penalize repetition — it merely truncates generation. Option B is wrong because presence_penalty applies a flat one-time penalty to any token that has appeared at least once, encouraging new topics rather than scaling with repetition count. Option D is wrong because top_p (nucleus sampling) restricts the token pool to a cumulative probability threshold and controls diversity, not repetition penalty.

165
MCQmedium

You want to automate the testing of your prompt flows as part of your CI/CD pipeline. Which tool should you use?

A.Prompt Flow CLI
B.Azure Logic Apps
C.Azure Functions
D.Azure AI Search test console
AnswerA

The Prompt Flow CLI exposes commands for running and evaluating flows from a terminal, so pipeline tasks can invoke flow tests non-interactively. This satisfies the CI/CD automation requirement, whereas the visual studio interface requires manual interaction.

Why this answer

The 'pf' (Prompt Flow) CLI is designed to run flows and evaluations programmatically in CI/CD pipelines.

166
Multi-Selectmedium

Which THREE steps are necessary to successfully fine-tune an Azure OpenAI model?

Select 3 answers
A.Manually update the model weights in the code.
B.Prepare and upload a training dataset in JSONL format.
C.Disable the input filter in the portal.
D.Select a compatible base model for fine-tuning.
E.Monitor the training job progress.
AnswersB, D, E

Fine-tuning requires supervised training examples, and Azure OpenAI accepts them as JSONL files with prompt-completion pairs uploaded to the resource. Without this formatted dataset, no training job can be submitted, making it a mandatory prerequisite step in the fine-tuning workflow.

Why this answer

Option B is correct because Azure OpenAI fine-tuning requires a training dataset uploaded as a JSONL file with chat-completion formatted examples (messages with role/content pairs), which the service uses to adapt the model. Option D is correct because you must choose a base model that supports fine-tuning (for example gpt-35-turbo, gpt-4o-mini, or babbage-002/davinci-002) and that is available in the region where you create the fine-tune job. Option E is correct because after submitting the fine-tuning job you track its status and metrics (training loss, token usage, and completion state) via the Azure OpenAI Studio or the REST API, and you only deploy the resulting model once the job succeeds.

Option A is not needed because Azure OpenAI manages the weight updates internally; you never edit model weights in code. Option C is not required because content filtering is a separate safety configuration and disabling the input filter is neither necessary nor recommended for fine-tuning.

Exam trap

AI-300 often tests the misconception that fine-tuning involves manual weight manipulation or content-filter changes, when in fact it is a fully managed pipeline requiring only data preparation, base model selection, and job monitoring.

167
MCQhard

You are evaluating a retrieval-augmented generation (RAG) application that answers questions about internal HR policies. During a quality review, you discover that for some queries the model produces fluent, confident answers that are not supported by the retrieved policy documents. You need to add an automated evaluation that specifically detects whether the response is factually supported by the retrieved context. Which evaluator should you use?

A.Relevance evaluator
B.Fluency evaluator
C.Coherence evaluator
D.Groundedness evaluator
AnswerD

The Groundedness evaluator in Azure AI evaluation SDK is designed to determine whether the model's response is supported by the provided context. It compares the response against the retrieved documents and flags unsupported claims, which is exactly the failure mode you observed. Using it in your evaluation pipeline lets you quantify how often the model answers without contextual support.

Why this answer

Groundedness evaluation directly compares a model's response against the retrieved context to determine whether claims are supported. Because the observed problem is confident but unsupported answers, this evaluator targets the exact failure mode. Fluency, relevance, and coherence measure other quality dimensions and would not reliably flag responses that are well-written but not grounded in the source documents.

Exam trap

The trap here is confusing response quality with factual grounding, since a fluent and relevant answer can still be unsupported by the retrieved context.

168
MCQhard

Your team wants to perform 'Red Teaming' on your application. Which activity describes this process correctly?

A.Unit testing code snippets
B.Automated performance testing for latency
C.A/B testing two different model versions
D.Controlled adversarial testing to find safety and security gaps
AnswerD

Red teaming deliberately probes a deployed AI system with adversarial inputs to expose harmful outputs, prompt injection, jailbreaks and data leakage. This controlled adversarial testing directly satisfies the stem's requirement to identify safety and security gaps before real attackers exploit them.

Why this answer

Red Teaming involves adversarial testing to find edge cases, safety flaws, and security vulnerabilities.

169
MCQeasy

You notice your model deployment status is 'Succeeded' but inference requests are failing. Where should you first check for connectivity issues?

A.The 'Endpoints' tab in Azure AI Foundry
B.The 'Keys' tab in the Azure Portal
C.Azure Subscription usage reports
D.Azure Storage Account logs
AnswerA

The Endpoints tab surfaces deployment connectivity state, including private endpoint and network configuration, so failures despite 'Succeeded' status are diagnosed there first. It satisfies the stem's need to check connectivity before investigating model or payload issues.

Why this answer

The 'Endpoints' view in the AI Foundry project shows the connectivity status and endpoint URLs for the model.

170
MCQhard

You manage a managed online endpoint in Azure Machine Learning that serves a recommendation model. The model was trained months ago, and you now need to deploy a new version trained on recent data with zero downtime. You must be able to send a small percentage of live traffic to the new version to validate it before full rollout. What should you do?

A.Delete the existing deployment, create a new deployment with the updated model, and set the endpoint's traffic allocation to 100 percent on the new deployment.
B.Add a second deployment to the same endpoint with the new model, then update the endpoint's traffic weights so the new deployment receives a small percentage of requests.
C.Create a new managed online endpoint for the updated model and have clients switch their base URL to the new endpoint after you finish testing.
D.Redeploy the existing deployment in place with the new model artifact and set the deployment's instance count to double during the update.
AnswerB

Managed online endpoints support multiple deployments behind one scoring URI. Adding a new deployment keeps the existing one serving, so there is no downtime. Setting traffic weights, for example 10 percent to the new deployment and 90 percent to the old, enables controlled canary validation before you shift all traffic.

Why this answer

Managed online endpoints decouple the stable scoring URI from the deployments behind it. By adding a second deployment and adjusting traffic weights, you keep the current model serving while a small share of requests exercises the new model, achieving zero-downtime canary validation. Replacing, deleting, or duplicating endpoints breaks either availability or the controlled traffic split.

Exam trap

The trap here is treating an in-place deployment update as safe, when only multiple deployments with traffic weights allow gradual, zero-downtime validation.

171
Multi-Selectmedium

Which THREE factors influence the cost of an Azure ML Compute Cluster?

Select 3 answers
A.Idle time before shutdown
B.Minimum number of nodes
C.Workspace name
D.Number of users
E.VM SKU (size/type)
AnswersA, B, E

Idle time before shutdown directly determines billed node-hours: the cluster keeps nodes running until the idle threshold elapses, so longer idle periods incur more charges. This is a cost lever distinct from node count and VM SKU, which set the hourly rate and scale.

Why this answer

Azure ML Compute Cluster billing is driven by the compute resources actually provisioned and how long they run, so option A (Idle time before shutdown) is correct because the idle scale-down timer determines how long nodes keep running—and accruing charges—after jobs finish before the cluster scales back down. Option B (Minimum number of nodes) is correct because the minimum node count sets the baseline number of always-on nodes, and those nodes are billed even when no jobs are running. Option E (VM SKU (size/type)) is correct because the VM size/family chosen determines the per-hour price of each node, directly scaling the total cost.

Option C (Workspace name) is not a billing factor—the workspace is just a logical container and its name has no effect on compute pricing. Option D (Number of users) does not affect cost either, since compute charges are based on provisioned nodes and runtime, not on how many users submit jobs.

Exam trap

AI-300 often tests the misconception that workspace-level settings like name or user count affect compute costs, when actually only resource configuration (nodes, VM size, idle time) matters.

172
MCQhard

You need to monitor the 'latency' and 'token usage' of your model deployments in real-time. Which tool provides the most granular view?

A.Azure Billing dashboard
B.Azure Monitor with diagnostic logs
C.Azure Activity Log
D.Azure AI Foundry 'Overview' tab
AnswerB

Azure Monitor with diagnostic logs streams per-request telemetry from model deployments, capturing latency and token usage metrics at the individual inference level. This satisfies the stem's real-time, granular monitoring requirement, since diagnostic logs expose request-level detail that aggregated platform metrics cannot provide.

Why this answer

Azure Monitor with diagnostic logs is the correct choice because it captures granular, per-request telemetry from Azure OpenAI and Azure AI model deployments, including latency, token usage (prompt/completion tokens), HTTP status codes, and model-level metrics. Diagnostic settings route these logs to Log Analytics, where KQL queries can slice latency and token consumption by deployment, model, and time window in near real-time. This is the only option that exposes token-level metrics rather than aggregate cost or activity metadata.

Exam trap

AI-300 often tests the distinction between control-plane telemetry (Activity Log, Billing) and data-plane telemetry (diagnostic logs), tricking candidates into choosing a cost or activity view when the question asks for per-request latency and token metrics.

How to eliminate wrong answers

Option A is wrong because the Azure Billing dashboard only reports aggregated monetary cost and usage quantities per billing period, not per-request latency or token-level telemetry. Option C is wrong because Azure Activity Log records control-plane operations (resource creation, deletion, role assignments) and never captures data-plane inference metrics like latency or tokens. Option D is wrong because the Azure AI Foundry 'Overview' tab shows high-level health, quota, and deployment summaries, not the granular per-call latency and token usage breakdowns required for real-time monitoring.

173
MCQmedium

What is the primary function of the 'Prompt Flow' tool within Azure AI Foundry?

A.To create and test prompt-based workflows.
B.To manage Azure subscriptions.
C.To perform data visualization.
D.To manage firewall rules.
AnswerA

Prompt Flow provides a visual designer for chaining prompts, Python code and LLM calls into executable flows, letting developers author, run and evaluate prompt-based workflows before deployment. This directly satisfies the question's requirement for building and testing prompt workflows in Azure AI Foundry.

Why this answer

Prompt Flow is a development tool designed to streamline the entire development cycle of AI applications, from prototyping to deployment.

174
Multi-Selecthard

When implementing LLM-as-a-judge for evaluation, which TWO factors can influence the reliability of your results?

Select 2 answers
A.The color of the application dashboard
B.The specific prompt instructions provided to the judge LLM
C.The number of tokens available in the workspace quota
D.The location of the storage account
E.The capability of the judge LLM
AnswersB, E

Prompt instructions directly shape the judge's scoring behaviour, so vague or leading rubrics produce inconsistent verdicts and bias scores toward surface features rather than the criteria being evaluated. Precise, anchored instructions with explicit scoring scales reduce this variance, satisfying the stem's reliability requirement for LLM-as-a-judge evaluation.

Why this answer

Option B is correct because the prompt instructions given to the judge LLM directly shape its evaluation criteria, rubric interpretation, and output format, so vague or biased instructions produce inconsistent, unreliable judgments. Option E is correct because the judge LLM's own capability—its reasoning ability, context window, training quality, and susceptibility to position or verbosity bias—bounds how accurately it can assess responses, making a weaker judge less reliable than a stronger one. Options A, C, and D do not belong: dashboard color is purely cosmetic, workspace token quota affects capacity/cost rather than judgment reliability, and storage account location affects latency, residency, and compliance but not the judge's evaluation quality.

Exam trap

AI-300 often tests whether candidates confuse operational/infrastructure factors (quota, region, dashboard) with the actual determinants of judge reliability — prompt design and judge model capability.

175
Multi-Selectmedium

Which THREE security features are essential for a production Azure ML deployment?

Select 3 answers
A.Key Vault integration.
B.Managed Identity.
C.Open inbound ports in NSG.
D.Virtual Network (VNet).
E.Public IP exposure.
AnswersA, B, D

Key Vault integration stores secrets, keys and connection strings outside code and configuration files, letting the workspace and compute retrieve them through managed identities. This prevents credential exposure in scripts or logs, a baseline requirement for production deployments.

Why this answer

Key Vault integration (A) is essential because it securely stores and centrally manages secrets, keys, and certificates used by the Azure ML workspace, compute, and endpoints, keeping credentials out of code and configuration files. Managed Identity (B) is essential because it gives the workspace and its compute resources an automatically managed identity in Microsoft Entra ID, enabling passwordless, least-privilege access to Key Vault, Storage, and ACR without embedding credentials. Virtual Network (VNet) (D) is essential because it provides network isolation for the workspace, compute clusters/instances, and private endpoints, restricting traffic to approved subnets and preventing exposure over the public internet.

Opening inbound ports in the NSG (C) is not a security feature but a weakening of the perimeter, since production workloads should minimize inbound exposure and instead use private endpoints or Azure Bastion/JIT access. Public IP exposure (E) is not a security feature either, as assigning public IPs increases the attack surface and contradicts the private-networking posture expected in production.

176
MCQhard

Your Azure ML training job fails with an 'Out of Memory' error on a GPU cluster. You need to ensure the job runs successfully without modifying the model code. What should you do?

A.Increase the idle time for the compute cluster
B.Enable auto-scale to zero
C.Change the VM size to one with higher memory
D.Update the workspace storage account
AnswerC

Selecting a VM size with more GPU memory increases available device memory, resolving the out-of-memory failure without altering model code. This satisfies the stem's constraint of fixing the job while leaving the training script unchanged.

Why this answer

The 'Out of Memory' error on a GPU cluster indicates the VM size has insufficient GPU memory (VRAM) for the training job. Changing to a VM size with higher memory (e.g., from NC6 to NC12 or ND series) directly addresses the root cause without modifying model code. Azure ML supports resizing the compute cluster by selecting a different VM SKU, which provides more GPU memory and allows the job to run successfully.

Exam trap

AI-300 often tests the misconception that scaling out (adding more nodes) solves memory issues, but Out of Memory on a single GPU requires scaling up (larger VM) or code changes.

How to eliminate wrong answers

Option A is wrong because increasing idle time only affects how long the cluster stays active after job completion, not memory availability. Option B is wrong because auto-scale to zero reduces cost by shutting down nodes when idle, but does not increase memory per node. Option D is wrong because workspace storage account is for storing artifacts and logs, not for providing GPU memory to training jobs.

177
MCQeasy

You are building an evaluation pipeline for a generative AI application using the Azure AI evaluation SDK. You want to compare multiple model responses to the same question and obtain a numeric quality score for each response based on a defined criterion. Which evaluator type should you use when you need to score responses against a custom rubric that you define?

A.Custom evaluator
B.String comparison evaluator
C.Built-in AI-assisted evaluator
D.Performance and latency evaluator
AnswerA

The Azure AI evaluation SDK supports custom evaluators, which allow you to define your own scoring logic, including custom rubrics and prompts, and return a numeric score. When built-in evaluators do not match your specific criterion, a custom evaluator is the correct choice. It integrates into the same evaluation pipeline and produces scores you can compare across responses.

Why this answer

Custom evaluators in the Azure AI evaluation SDK let you define your own scoring logic and rubric, returning a numeric score that can be compared across responses. Built-in evaluators are tied to fixed quality dimensions, string comparison methods cannot interpret a rubric, and performance evaluators measure operational metrics rather than content quality. Therefore, a custom evaluator is the right choice when you need rubric-based scoring.

Exam trap

The trap here is assuming a built-in evaluator can be reconfigured for any criterion, when custom scoring requires a custom evaluator.

178
Multi-Selecthard

Which THREE components are required to define a 'Managed Online Deployment'?

Select 3 answers
A.A GPU compute instance.
B.An environment definition.
C.An inference script.
D.A registered model.
E.A training dataset.
AnswersB, C, D

A managed online deployment requires an environment definition specifying the Docker image and dependencies, ensuring the scoring container has the correct runtime. Without it, the deployment cannot resolve the execution context, so it is one of the three mandatory components.

Why this answer

A Managed Online Deployment in Azure Machine Learning requires an environment definition (B), which specifies the Docker image and dependencies (e.g., conda.yaml) used to build the scoring container. It also requires an inference script (C), typically score.py, that defines the init() and run() functions to load the model and handle scoring requests. A registered model (D) is also required, since the deployment must reference a model asset (by name and version) from the workspace registry to serve predictions.

A GPU compute instance (A) is not mandatory because managed online endpoints can run on CPU SKUs, and a training dataset (E) is irrelevant to inference-time deployment.

179
MCQmedium

To optimize costs for an enterprise chatbot, you want to implement token usage monitoring. Which Azure service should you integrate to track token consumption per user?

A.Azure Data Factory.
B.Azure Cognitive Search.
C.Azure SQL Database.
D.Azure Monitor with Log Analytics.
AnswerD

Azure Monitor with Log Analytics captures per-request token metrics emitted by Azure OpenAI, letting you query consumption grouped by authenticated user via Microsoft Entra ID. This satisfies the stem's requirement to track token usage per user, enabling cost attribution and optimisation across the enterprise chatbot's workload.

Why this answer

Azure Monitor with Log Analytics is the correct service to track token consumption per user because Azure OpenAI emits metrics and diagnostic logs (including token usage) that can be routed to a Log Analytics workspace for querying and per-user aggregation. You enable diagnostic settings on the Azure OpenAI resource to send logs and metrics to Log Analytics, then use Kusto Query Language (KQL) to aggregate tokens by user or custom dimension. This provides centralized monitoring, alerting, and cost analysis.

Exam trap

AI-300 often tests the confusion between monitoring/telemetry services and data services, tempting candidates to pick a database or ETL tool when the question asks where to 'track' or 'monitor' usage.

How to eliminate wrong answers

Option A is wrong because Azure Data Factory is a data integration/ETL service, not a monitoring or telemetry platform, and it does not natively capture or aggregate Azure OpenAI token usage. Option B is wrong because Azure Cognitive Search (Azure AI Search) is a search indexing service and has no role in tracking model token consumption. Option C is wrong because Azure SQL Database is a relational database; while you could store token data there, it does not natively collect Azure OpenAI telemetry and would require custom ingestion, making it not the service to 'integrate' for monitoring.

180
MCQmedium

You are the MLOps engineer for a customer support chatbot built on Azure OpenAI. Your team wants to continuously monitor the deployed model's responses for harmful content without storing the raw user prompts in your own database. You must implement a solution that evaluates every response in near real time, logs only the safety verdicts and severity scores, and raises an alert when severity exceeds a threshold. Which Azure service should you use to perform this evaluation?

A.Azure Monitor Application Insights custom events
B.Azure Machine Learning model data collector
C.Azure AI Content Safety
D.Azure AI Language Personally Identifiable Information detection
AnswerC

Azure AI Content Safety is a dedicated service that analyzes text or images for harmful categories such as hate, violence, self-harm, and sexual content, returning severity scores per category. It is designed for near real-time moderation of generative AI outputs, supports logging verdicts without persisting raw prompts, and integrates with Azure Monitor alerts. This directly satisfies the requirement to evaluate every response and alert on severity thresholds.

Why this answer

Azure AI Content Safety is purpose-built to analyze generative AI inputs and outputs for harmful categories, returning per-category severity scores in near real time. Because it evaluates content without requiring you to persist raw prompts, it satisfies both the privacy constraint and the monitoring requirement. Its severity scores can be routed to Azure Monitor to trigger alerts when thresholds are exceeded.

Exam trap

The trap here is assuming that a general telemetry or data-collection service can classify harmful content, when classification requires a purpose-built content safety service.

181
MCQmedium

Which technique is most appropriate for optimizing RAG performance when the vector database returns too much noisy information?

A.Changing the embedding model to a smaller one.
B.Implementing a re-ranking stage.
C.Increasing the number of chunks retrieved.
D.Reducing the temperature to 0.
AnswerB

A re-ranking stage applies a cross-encoder or similar model to rescore the retrieved chunks against the query, pushing genuinely relevant passages above the noisy ones. This directly addresses the excessive irrelevant content the vector database returns, improving the context passed to the LLM.

Why this answer

A re-ranking stage applies a more expensive cross-encoder or semantic ranker to the initial candidate set returned by the vector database, reordering results by true relevance to the query. This filters out semantically similar but contextually irrelevant chunks that vector similarity alone cannot distinguish, directly addressing the noisy-retrieval problem. It is the standard second-stage pattern in production RAG pipelines.

Exam trap

AI-300 often tests the misconception that generation-side parameters like temperature or max_tokens can fix retrieval-side quality problems — they cannot, because retrieval and generation are separate stages.

How to eliminate wrong answers

Option A is wrong because a smaller embedding model reduces vector dimensionality and semantic fidelity, which typically increases noise rather than reducing it. Option C is wrong because retrieving more chunks amplifies the noise problem by injecting additional low-relevance context into the prompt. Option D is wrong because temperature controls the LLM's sampling randomness during generation and has no effect on retrieval quality or the relevance of chunks returned by the vector database.

Page 2

Page 3 of 3

All pages