Courseiva

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

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

Page 1

Page 2 of 3

Page 3
76
MCQmedium

Which Azure feature should you use to restrict traffic to your AI Foundry project to specific IP addresses?

A.Azure Active Directory Conditional Access
B.Network Security Groups (NSG) on the VM
C.Azure AI Services 'Networking' (Firewall) settings
D.Azure Front Door WAF
AnswerC

Azure AI Services networking settings include firewall controls that allow or deny traffic by IP address or CIDR range, plus private endpoint options. Restricting the Foundry project to specific addresses therefore uses these firewall rules rather than authentication or RBAC configuration.

Why this answer

Azure AI Services resources (including AI Foundry projects backed by Azure AI Services) expose a Networking (Firewall) configuration blade where you can set 'Selected Networks' and specify allowed IP addresses or CIDR ranges, or disable public access entirely. This is the native, resource-level control for restricting inbound traffic to specific IPs.

Exam trap

The trap is confusing identity-based access control (Conditional Access) or edge protection (WAF) with resource-level IP firewall rules, leading candidates to pick a control that does not actually filter source IPs at the AI service endpoint.

How to eliminate wrong answers

Option A is wrong because Azure AD Conditional Access governs identity-based access (user, location, device, risk) and does not filter network traffic by source IP at the resource's data plane. Option B is wrong because Network Security Groups apply to subnets and NICs in a virtual network, not to PaaS AI Services endpoints, and there is no VM in this scenario. Option D is wrong because Azure Front Door WAF protects HTTP(S) applications at the edge and is not the mechanism for restricting direct access to an Azure AI Services resource's endpoint.

77
MCQhard

You are optimizing a model for a specific domain language. Which fine-tuning approach minimizes cost while maximizing domain adaptation?

A.Using LoRA (Low-Rank Adaptation).
B.Training the model from scratch.
C.Prompt engineering alone.
D.Full parameter fine-tuning.
AnswerA

LoRA freezes the pretrained weights and injects small trainable low-rank matrices into attention layers, so only a fraction of parameters are updated. This cuts GPU compute and storage costs substantially while still adapting the model to domain-specific language, satisfying the cost-minimisation constraint.

Why this answer

LoRA (Low-Rank Adaptation) freezes the pretrained model weights and injects small trainable low-rank matrices into attention layers, so only a tiny fraction of parameters are updated. This dramatically reduces GPU memory, compute, and storage costs compared to full fine-tuning while still adapting the model to domain-specific language. It is the standard cost-efficient fine-tuning technique for domain adaptation.

Exam trap

AI-300 often tests the misconception that 'more parameters updated = better adaptation,' causing candidates to pick full fine-tuning when the question emphasizes cost minimization.

How to eliminate wrong answers

Option B is wrong because training from scratch requires massive datasets, compute budgets, and time, and it discards the pretrained knowledge that already provides general language understanding. Option C is wrong because prompt engineering alone does not modify model weights, so it cannot deeply adapt the model to specialized domain vocabulary, jargon, or stylistic patterns. Option D is wrong because full parameter fine-tuning updates every weight, requiring far more GPU memory, storage, and training time, making it the most expensive approach rather than the cost-minimizing one.

78
Multi-Selecteasy

Which TWO of the following strategies are commonly used to optimize for cost in Generative AI?

Select 2 answers
A.Selecting the smallest capable model for the task.
B.Caching frequent prompts or responses.
C.Increasing the context window size to 128k.
D.Enabling verbose logging.
E.Using the highest possible temperature.
AnswersA, B

Smaller models consume fewer tokens and less compute per request, directly lowering inference cost. Where the task's accuracy requirements are still met, choosing the smallest capable model satisfies the cost-optimisation goal without sacrificing acceptable output quality.

Why this answer

Option A is correct because choosing the smallest capable model for a task directly reduces cost, since inference pricing scales with model size and capability—smaller models consume fewer compute resources per token. Option B is correct because caching frequent prompts or responses avoids redundant model invocations, so repeated queries are served from cache instead of incurring new token-generation charges. Option C is not a cost optimization: expanding the context window to 128k increases the number of input tokens processed per request, which typically raises cost.

Option D is not a cost optimization: verbose logging increases storage and observability overhead without reducing inference spend. Option E is not a cost optimization: using the highest possible temperature affects output randomness, not token pricing, and can even increase retries or output length.

79
MCQmedium

You need to update a prompt flow without downtime. What deployment strategy should you use?

A.Use a Blue-Green deployment pattern.
B.Directly overwrite the existing deployment.
C.Stop the service during the update.
D.Delete the old deployment and create a new one.
AnswerA

Blue-Green runs two identical environments, routing live traffic to the stable slot while the updated prompt flow is validated in the idle slot. Swapping only after verification eliminates downtime, satisfying the stem's no-downtime constraint without exposing users to an untested flow.

Why this answer

Blue-Green deployment is the correct strategy because it involves running two identical environments (blue and green) where the new version is deployed to the inactive environment, tested, and then traffic is switched over. This allows updates without downtime and provides a quick rollback if issues arise. It is a standard pattern for zero-downtime deployments in cloud-native applications.

Exam trap

AI-300 often tests deployment strategies and candidates may confuse zero-downtime patterns with simple redeployment, overlooking the need for parallel environments.

How to eliminate wrong answers

Option B is wrong because directly overwriting the existing deployment can cause downtime and leaves no easy rollback path. Option C is wrong because stopping the service during update guarantees downtime, which is unacceptable for high-availability systems. Option D is wrong because deleting the old deployment and creating a new one also causes downtime and may lose configuration or state.

80
MCQeasy

You are configuring a real-time managed online endpoint in Azure Machine Learning. The model must be updated frequently with minimal downtime, and you need the ability to roll back quickly if a new version performs poorly. Which deployment strategy should you use?

A.Use a batch endpoint and invoke it on a schedule to simulate real-time scoring.
B.Deploy the model to an Azure Kubernetes Service cluster outside Azure ML and manage traffic with an ingress controller.
C.Create a second deployment with the new model, shift traffic gradually to it, and keep the original deployment available for rollback.
D.Create a single deployment and update the model in place, then restart the deployment.
AnswerC

Managed online endpoints support multiple deployments behind one endpoint with configurable traffic splits. Creating a new deployment and gradually shifting traffic enables canary-style validation with minimal downtime, and because the original deployment remains intact, you can quickly route traffic back to it if the new model underperforms.

Why this answer

Managed online endpoints allow multiple deployments to coexist behind one endpoint, with traffic allocation controlled by a percentage split. Deploying the new model as a separate deployment and shifting traffic gradually enables safe validation and minimal downtime. Keeping the previous deployment active provides a fast rollback path, because traffic can be redirected back without redeploying the model.

Exam trap

The trap here is assuming that updating a single deployment in place provides rollback, when rollback actually requires retaining an alternate deployment behind the same endpoint.

81
Multi-Selecteasy

Which THREE of the following are types of Azure ML endpoints?

Select 3 answers
A.Network endpoint
B.Database endpoint
C.Batch endpoint
D.Web service (legacy)
E.Managed online endpoint
AnswersC, D, E

Batch endpoints run asynchronous scoring jobs over large datasets, returning results to a Datastore rather than a synchronous response. They are one of the three Azure Machine Learning endpoint types, alongside online and serverless endpoints.

Why this answer

C. Batch endpoint is correct because Azure Machine Learning supports batch endpoints as a distinct endpoint type used to run scoring jobs over large datasets asynchronously, producing file-based output. D.

Web service (legacy) is correct because Azure ML historically exposed deployed models as web services (the legacy AKS/ACI web service endpoint type) before the newer endpoint concepts were introduced. E. Managed online endpoint is correct because managed online endpoints are the current Azure ML endpoint type for real-time, low-latency inference with managed infrastructure and traffic routing.

A. Network endpoint is not an Azure ML endpoint type; it refers to networking constructs such as private endpoints or service endpoints, not model deployment endpoints. B.

Database endpoint is not an Azure ML endpoint type; it describes a database connectivity target, not an Azure ML deployment endpoint.

82
MCQhard

You are experiencing latency issues with a model deployed on a Managed Online Endpoint. What is the first thing you should check?

A.Application Insights logs
B.The Azure ML workspace name
C.The subscription limit
D.The storage account size
AnswerA

Application Insights captures request latency, dependency timings and failure telemetry for the deployed model. Reviewing it first shows whether latency originates in the endpoint, the model, or a downstream dependency, giving the diagnostic starting point the question asks for.

Why this answer

Reviewing logs in Application Insights identifies performance bottlenecks and latency issues.

83
MCQmedium

You need to ensure that training data is encrypted at rest in the Blob Storage linked to your Azure Machine Learning workspace. How do you ensure this?

A.Configure the training script to encrypt files.
B.Enable encryption at the storage account level.
C.Use SSL/TLS for all communication.
D.Use an encrypted VM for training.
AnswerB

Storage account-level encryption applies Microsoft-managed keys to all blobs, tables, queues and files at rest, transparently and by default. Enabling it satisfies the at-rest encryption requirement for the workspace-linked Blob Storage, covering training data without per-blob configuration.

Why this answer

Azure Storage accounts support Storage Service Encryption (SSE) by default. You can also use Customer-Managed Keys (CMK) for additional control.

84
MCQmedium

You are evaluating an LLM application using Prompt Flow. You want to measure the 'Groundedness' of the model response relative to the retrieved context. Which evaluator should you configure?

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

The Groundedness evaluator uses an LLM to judge whether the response's claims are supported by the retrieved context, scoring factual alignment. It satisfies the requirement to measure groundedness relative to the supplied context in Prompt Flow.

Why this answer

The Groundedness evaluator in Prompt Flow checks if the response is supported by the context provided.

85
Multi-Selectmedium

Which TWO of the following are benefits of using the Azure ML CLI v2 for your MLOps pipelines?

Select 2 answers
A.Native integration with CI/CD tools
B.Automatic model training
C.No need for Python
D.Built-in model visualization
E.Declarative YAML configurations
AnswersA, E

Azure ML CLI v2 is declarative YAML executed from a shell, so pipelines can be invoked directly from GitHub Actions, Azure DevOps or Jenkins without bespoke glue code. This native CI/CD integration is the benefit, enabling automated retraining and deployment triggered by repository events.

Why this answer

Option A is correct because the Azure ML CLI v2 is designed to be invoked from automation systems such as GitHub Actions, Azure Pipelines, and Jenkins, allowing pipeline steps (e.g., `az ml job create`) to be scripted and triggered as part of CI/CD workflows. Option E is correct because CLI v2 relies on declarative YAML files (such as job, component, and pipeline YAML schemas) to define environments, inputs, outputs, and pipeline steps, which makes configurations versionable and reproducible. Automatic model training (B) is not a benefit of the CLI itself, since training algorithms and jobs must still be defined by the user.

No need for Python (C) is false because CLI v2 is a wrapper over the Azure ML Python SDK v2 and many pipeline components are authored in Python. Built-in model visualization (D) is not a CLI v2 feature; visualization is provided through Azure ML studio and related tooling, not the command-line interface.

86
MCQhard

You are implementing a retraining trigger for a demand forecasting model. You want to trigger a pipeline execution only when the drift metric for the 'Price' feature exceeds a predefined threshold. Which service should you integrate with Azure Machine Learning?

A.Azure Batch schedules.
B.Azure Data Factory triggers.
C.Azure Monitor alerts on logs.
D.Azure Event Grid and Logic Apps.
AnswerD

Azure Event Grid routes the drift event emitted by Azure Machine Learning to Logic Apps, which evaluates the 'Price' threshold and triggers the pipeline. This event-driven integration fires only on threshold breach, unlike scheduled retraining.

Why this answer

Azure Machine Learning Data Drift Monitors can be configured to emit events to Azure Event Grid, which can then trigger an Azure Logic App or Azure Function to start the pipeline.

87
MCQeasy

You need to monitor the health of your deployed Azure ML models. Which service is integrated directly with Azure ML to provide automated metrics and logging?

A.Azure Event Grid
B.Azure Application Insights
C.Azure Policy
D.Azure Data Factory
AnswerB

Application Insights integrates directly with Azure ML, receiving telemetry from deployed endpoints and automatically collecting request latency, failure rates and dependency traces. This satisfies the requirement for automated metrics and logging without custom instrumentation, unlike Log Analytics or Monitor, which require manual wiring.

Why this answer

Azure Application Insights is the native service for monitoring logs, metrics, and telemetry from deployed model endpoints.

88
MCQmedium

You are using GitHub Actions. You want to authenticate to Azure without using hardcoded credentials. What should you use?

A.SSH keys
B.OIDC
C.Azure Storage keys
D.User name and password
AnswerB

OIDC enables GitHub Actions to exchange a short-lived federated token for an Azure access token via a federated identity credential, so no secret is stored. This satisfies the no-hardcoded-credentials constraint without managing rotated client secrets.

Why this answer

OIDC (OpenID Connect) is the secure way for GitHub Actions to authenticate to Azure.

89
MCQmedium

You want to track your model experiments and compare their performance metrics. Which Azure ML feature provides this capability?

A.Environments
B.Model Registry
C.Compute targets
D.Experiments
AnswerD

Experiments group runs, logging each run's metrics, parameters and artefacts so results can be compared side by side in Azure Machine Learning studio. This directly satisfies the requirement to track experiments and compare performance metrics across model training attempts.

Why this answer

In Azure Machine Learning, an experiment is the logical container for tracking runs of a model training script. Each run automatically logs metrics, parameters, artifacts, and outputs, enabling you to compare performance across different configurations. This is the core capability for experiment tracking and comparison.

Exam trap

AI-300 often tests the distinction between experiment tracking and model management, so candidates might confuse Model Registry with Experiments for comparing metrics.

How to eliminate wrong answers

Option A is wrong because Environments define the software dependencies and Docker images for training and inference, not experiment tracking. Option B is wrong because Model Registry is for versioning and managing trained models, not for tracking experiments or comparing metrics. Option C is wrong because Compute targets specify the infrastructure where training or inference runs, not the tracking mechanism.

90
MCQeasy

When configuring a compute instance, which setting allows you to automatically stop the instance during periods of inactivity?

A.Provisioning timeout
B.Idle shutdown
C.Auto-scaling
D.Priority based scheduling
AnswerB

Idle shutdown monitors the compute instance for interactive activity and automatically deallocates it after a configured idle period, preventing runaway billing. It directly satisfies the requirement to stop the instance during inactivity without manual intervention.

Why this answer

Idle shutdown automatically turns off the compute instance when no active processes are detected, saving costs.

91
MCQmedium

You need to audit all model access logs across your organization. What is the most effective approach?

A.Review individual request headers in the app logs.
B.Enable 'Diagnostic Settings' to send logs to a 'Log Analytics Workspace'.
C.Use 'Azure Advisor' to detect unauthorized access.
D.Download the 'Model Usage' report from the billing console.
AnswerB

Diagnostic Settings stream resource logs from each model endpoint into a Log Analytics Workspace, giving centralised, queryable retention across the organisation. This satisfies the audit requirement because logs persist beyond transient local storage and can be queried with KQL across subscriptions.

Why this answer

Enabling diagnostic settings on the Azure AI Services resource to send logs to a Log Analytics workspace is the standard for organization-wide auditing.

92
MCQmedium

You want to automate the deployment of a model using GitHub Actions. Which file format is standard for defining the Azure ML CLI v2 deployment configuration?

A.JSON
B.XML
C.Bicep
D.YAML
AnswerD

YAML is the standard declarative format for Azure ML CLI v2 deployment configuration, letting GitHub Actions invoke az ml online-deployment create with a version-controlled spec. This satisfies the stem's automation requirement by defining the deployment reproducibly in CI.

Why this answer

Azure ML CLI v2 uses YAML files to define configurations for jobs, endpoints, and deployments.

93
MCQmedium

You are creating a 'Pipeline' and want to share a dataset across multiple steps. What is the most efficient way to access this data?

A.Download the data to each step's local directory.
B.Use a 'Dataset' input object that mounts the storage.
C.Pass the file path as a string argument.
D.Copy the data between steps.
AnswerB

Mounting via a Dataset input object lets every pipeline step read the same registered data directly from storage, avoiding repeated downloads or copies between steps. This satisfies the efficiency constraint by referencing one shared, versioned dataset rather than duplicating data per step.

Why this answer

You should define the dataset as an 'Input' to the pipeline or use a 'Dataset' object that can be mounted by the compute for each step.

94
Multi-Selecthard

Which THREE of the following are key components of a robust MLOps strategy in Azure?

Select 3 answers
A.Manual model testing
B.Automated CI/CD pipelines
C.Version control for code and models
D.Using only local workstations
E.Automated model monitoring
AnswersB, C, E

Automated CI/CD pipelines provide repeatable, versioned deployment of models and scoring infrastructure, satisfying the stem's demand for a robust MLOps strategy. They integrate with Azure Machine Learning and Microsoft Entra ID, enabling automated retraining, testing and governed release, which manual processes cannot sustain reliably at scale.

Why this answer

Automated CI/CD pipelines (B) are a core MLOps component because Azure DevOps or GitHub Actions can automatically build, test, and deploy ML assets via Azure Machine Learning pipelines, ensuring repeatable and reliable releases. Version control for code and models (C) is essential since Azure ML and Git track code, datasets, and model artifacts, enabling reproducibility, auditability, and rollback of experiments and deployments. Automated model monitoring (E) is also key because Azure Machine Learning model monitoring detects data drift, prediction drift, and performance degradation in production, triggering alerts or retraining.

Manual model testing (A) is not a robust MLOps practice because it is error-prone, slow, and non-repeatable compared with automated testing in CI/CD. Using only local workstations (D) is incorrect because MLOps relies on shared, scalable cloud resources such as Azure Machine Learning compute, registries, and pipelines rather than isolated local environments.

95
MCQmedium

You are creating a CI/CD pipeline in Azure DevOps. Which extension is essential to integrate Azure ML tasks into your build/release pipeline?

A.Visual Studio Code extension
B.Terraform extension
C.Azure Machine Learning extension
D.Kubernetes extension
AnswerC

The Azure Machine Learning extension adds pipeline tasks to Azure DevOps, letting build and release pipelines trigger Azure ML jobs, register models and deploy endpoints. Without it, no native Azure ML task exists in the pipeline, so the CI/CD integration fails.

Why this answer

The Azure Machine Learning extension for Azure DevOps installs the pipeline tasks (such as AzureML job, model registration, and pipeline tasks) that let a build or release pipeline invoke Azure ML workspaces. Without this extension, the hosted agent has no task definitions to call Azure ML CLI v2 or SDK operations, so CI/CD integration with Azure ML cannot be orchestrated.

Exam trap

AI-300 often tests whether candidates can distinguish IDE tooling (VS Code) and infrastructure tooling (Terraform) from the specific Azure DevOps extension required to run Azure ML tasks, so any extension that sounds 'integration-related' can lure candidates away from the correct answer.

How to eliminate wrong answers

Option A is wrong because the Visual Studio Code extension is an authoring/IDE tool for local development, not a pipeline task provider for Azure DevOps agents. Option B is wrong because the Terraform extension provisions infrastructure as code and does not contain Azure ML job or model deployment tasks. Option D is wrong because the Kubernetes extension deploys containers to AKS clusters and has no awareness of Azure ML workspaces or jobs.

96
MCQmedium

You want to automate the evaluation of your LLM application using a 'Golden Dataset'. What is the primary purpose of this dataset in an MLOps pipeline?

A.To increase the model training speed
B.To serve as a baseline for measuring performance improvements
C.To reduce the number of tokens used
D.To generate new prompts for users
AnswerB

A golden dataset holds curated input and expected-output pairs, giving fixed reference scores each pipeline run. This satisfies the automation requirement by detecting regressions or improvements against a stable baseline rather than comparing ad hoc outputs.

Why this answer

A Golden Dataset serves as the ground truth to compare model outputs against during automated evaluation runs.

97
MCQmedium

You are configuring a 'Managed Online Endpoint' for production. You want to ensure high availability. What should you configure?

A.Use 'LowPriority' compute.
B.Set the 'instance_count' to at least 2.
C.Set the 'instance_count' to 1.
D.Enable 'Auto-scaling' only.
AnswerB

Setting instance_count to at least 2 provisions multiple replicas behind the endpoint, so a single node or replica failure does not take the service offline. This satisfies the high-availability requirement for the production Managed Online Endpoint.

Why this answer

To ensure high availability, you should configure the 'instance_count' to be greater than 1, spanning multiple availability zones if supported.

98
Multi-Selecteasy

Which THREE metrics are critical for monitoring a production Generative AI system?

Select 3 answers
A.Latency (Time-to-first-token).
B.The hardware temperature of the Azure server.
C.Model training loss.
D.Token usage per request.
E.Error rates (HTTP 4xx/5xx).
AnswersA, D, E

Time-to-first-token measures the delay before a generative model begins streaming output, capturing prefill and queueing latency. It directly reflects perceived responsiveness in production, exposing capacity shortfalls or throttling that total request duration alone would obscure.

Why this answer

Option A (Latency, specifically Time-to-first-token) is critical because in a production Generative AI system, TTFT directly measures the perceived responsiveness of streaming responses, and high TTFT degrades user experience and can indicate model, network, or inference bottlenecks. Option D (Token usage per request) is critical because tokens drive both cost and throughput in LLM serving; tracking prompt and completion tokens per request enables accurate chargeback, quota enforcement, and capacity planning against rate limits such as tokens-per-minute. Option E (Error rates, HTTP 4xx/5xx) is critical because 4xx codes reveal client-side issues like authentication failures, throttling (429), or malformed prompts, while 5xx codes expose server-side faults such as model timeouts or backend unavailability, making them essential for reliability and SLO monitoring.

Option B (hardware temperature of the Azure server) is not a critical application-level metric for a Generative AI system because Azure abstracts physical hardware and exposes health through platform metrics rather than requiring per-server temperature tracking. Option C (model training loss) is not appropriate here because it is an offline training-time metric and does not reflect the runtime health, cost, or reliability of a deployed production inference system.

99
Multi-Selectmedium

You are preparing a red teaming exercise for a generative AI application built with Azure AI Foundry. The goal is to systematically probe the application for harmful outputs and safety weaknesses before release. Which two activities are appropriate for a red teaming exercise? (Choose two.)

Select 2 answers
A.Calculating the BLEU score between model responses and a reference translation dataset.
B.Measuring the average token latency of the model across a representative production workload.
C.Crafting adversarial prompts that attempt to elicit prohibited content across categories such as violence, hate, and self-harm.
D.Reviewing the application's role-based access control assignments for the deployment resource.
E.Using the Azure AI Foundry Risk and Safety Evaluations to run automated adversarial prompt datasets against the model endpoint.
AnswersC, E

Red teaming is fundamentally an adversarial exercise in which testers deliberately attempt to bypass safety controls. Crafting adversarial prompts across multiple harm categories is a core activity that reveals how the application responds under hostile input. This aligns with the objective of systematically probing for harmful outputs before release.

Why this answer

Red teaming is an adversarial process that probes a generative AI application for safety weaknesses. Crafting adversarial prompts across harm categories and running automated adversarial prompt datasets through Azure AI Foundry risk and safety evaluations both directly test whether the application can be induced to produce harmful outputs. The other activities concern performance, access control, or text similarity and do not evaluate safety behavior.

Exam trap

The trap here is treating any quality or security measurement as red teaming, when red teaming specifically means adversarial probing for harmful model behavior.

100
MCQhard

An agent orchestration system is timing out because it waits too long for tool output. How can you optimize the infrastructure handling of tool calls?

A.Increase the 'CPU count' on the hosting server.
B.Implement 'Asynchronous' execution patterns for long-running tools.
C.Increase the 'Global Timeout' for the entire agent.
D.Reduce the 'System Prompt' size.
AnswerB

Asynchronous execution decouples tool invocation from the orchestration wait, letting the agent continue or poll rather than block on a synchronous response. This directly addresses the timeout constraint by removing the blocking call that exceeds the orchestration deadline for long-running tools.

Why this answer

Implementing asynchronous execution patterns for long-running tools is correct because it allows the agent orchestration to continue processing other tasks or handle timeouts gracefully without blocking on a single tool call. This decouples the tool's execution time from the agent's overall timeout, improving responsiveness and scalability. Increasing CPU or global timeout does not address the fundamental issue of synchronous blocking.

Exam trap

AI-300 often tests the misconception that increasing timeout or resources solves latency issues, when the real fix is architectural, such as asynchronous execution.

How to eliminate wrong answers

Option A is wrong because increasing CPU count does not reduce the latency of a tool call that is waiting on I/O or external API response; it only adds compute capacity, which is irrelevant if the bottleneck is network or external service. Option C is wrong because increasing the global timeout merely delays the timeout, potentially causing longer waits and resource exhaustion, without solving the underlying inefficiency. Option D is wrong because reducing system prompt size might slightly reduce token processing time but does not address the tool call timeout, which is about execution duration, not prompt size.

101
MCQhard

You are automating the deployment of your AI project. What is the recommended tool to manage infrastructure-as-code (IaC) for Azure AI Foundry?

A.Azure DevOps pipelines
B.Azure Bicep
C.Azure CLI alone
D.Python script with Azure SDK
AnswerB

Bicep is Microsoft's declarative domain-specific language for deploying Azure resources, giving idempotent, version-controlled templates that satisfy the IaC requirement for repeatable AI Foundry provisioning. It transpiles directly to ARM templates, so Foundry project resources deploy consistently across environments.

Why this answer

Bicep is the native, recommended IaC tool for Azure, providing deep integration for AI Foundry resources.

102
MCQhard

A data scientist needs to access data in an Azure Data Lake Storage Gen2 account from Azure ML. You need to ensure the workspace uses the most secure method to access this data. What should you configure?

A.Shared Key
B.User-Assigned Managed Identity
C.Public Access
D.Account SAS
AnswerB

A user-assigned managed identity gives the workspace an Entra ID identity whose credentials Azure manages and rotates, so no secrets are stored. Assigning it the Storage Blob Data Reader role on the Gen2 account satisfies the most-secure-access constraint.

Why this answer

A User-Assigned Managed Identity lets the Azure ML workspace authenticate to ADLS Gen2 via Microsoft Entra ID without storing credentials, and it can be scoped to specific resources with least-privilege RBAC (e.g., Storage Blob Data Reader). This is Microsoft's recommended, most secure access pattern for workspace-to-storage connectivity.

Exam trap

AI-300 often tests the misconception that Shared Key or SAS is 'secure enough' — the exam expects you to recognize managed identity as the only credential-less, centrally auditable option.

How to eliminate wrong answers

Option A is wrong because Shared Key uses account-level access keys that grant full control over the storage account and must be rotated manually — a leaked key compromises the entire account. Option C is wrong because Public Access exposes the storage account to the internet and violates the zero-trust/private-endpoint model required for secure ML workspaces. Option D is wrong because an Account SAS is a bearer token with a fixed expiry; it can be leaked, cannot be centrally revoked without rotating the account key, and lacks the identity-based audit trail of managed identity.

103
MCQmedium

You need to ensure that your model inference code has access to the latest secret keys without hardcoding them. What is the recommended integration?

A.Store keys as environment variables in the Dockerfile.
B.Use the workspace Key Vault to store and retrieve secrets.
C.Use a configuration file on the VM.
D.Pass them as arguments to the 'init()' function.
AnswerB

Storing secrets in the workspace-linked Key Vault lets inference code fetch them at runtime via the Key Vault SDK or Microsoft Entra ID-backed managed identity, so no credentials sit in source. This directly satisfies the no-hardcoding constraint while ensuring the latest rotated secret version is retrieved.

Why this answer

You should integrate your scoring script with Azure Key Vault using the workspace 'get_default_keyvault()' function to retrieve secrets at runtime.

104
MCQmedium

You have a large set of documents for a RAG system. How should you optimize retrieval speed?

A.Store embeddings in a dedicated vector database with indexing.
B.Process all documents in the prompt.
C.Increase the model's max_tokens.
D.Perform a brute-force search on all documents.
AnswerA

A dedicated vector database with indexing satisfies the large-scale retrieval constraint by using approximate nearest neighbour indexes (such as HNSW or IVF) to search embeddings in logarithmic rather than linear time. This avoids exhaustive comparisons across the entire document set, delivering the low-latency similarity search that a RAG system demands.

Why this answer

Storing embeddings in a dedicated vector database with an ANN index (HNSW, IVF) enables sub-linear nearest-neighbor search instead of scanning every document. This is the standard architecture for fast retrieval over large corpora in RAG systems. The index precomputes a graph or cluster structure so queries touch only a small fraction of vectors.

Exam trap

AI-300 often tests whether candidates recognize that brute-force search is the naive baseline, not an optimization — and that prompt-stuffing is not a retrieval strategy at all.

How to eliminate wrong answers

Option B is wrong because stuffing all documents into the prompt is infeasible for large corpora due to context-window limits and would be extremely slow and expensive. Option C is wrong because max_tokens controls output length, not retrieval speed. Option D is wrong because brute-force search is O(n) per query and becomes prohibitively slow as the document set grows — it is the exact opposite of optimization.

105
MCQhard

You are configuring a connection to a vector store. What is the best way to handle the secret credential?

A.Hardcode the key in the flow configuration.
B.Store in Azure Key Vault and reference in the connection.
C.Pass it as a parameter in the code.
D.Store it in an environment variable.
AnswerB

Azure Key Vault stores the secret centrally with access control and auditing, and the connection references it at runtime rather than embedding credentials in configuration. This satisfies the requirement to handle the secret securely, avoiding plaintext exposure in code or connection strings.

Why this answer

Key Vault is the centralized store for all application secrets in Azure, which should be linked to the project connection.

106
Multi-Selecthard

Which TWO of the following are required to secure an Azure ML workspace using a Private Link?

Select 2 answers
A.Public IP address
B.A Virtual Network (VNet)
C.Private Endpoint
D.Data Factory instance
E.Azure Active Directory B2C
AnswersB, C

A virtual network is mandatory because the private endpoint must be placed in a subnet within it, letting traffic reach the workspace privately. Without a VNet, no private endpoint can exist, so the Private Link requirement cannot be satisfied.

Why this answer

To secure an Azure Machine Learning workspace with Private Link, you must have a Virtual Network (VNet) (option B) because the private endpoint is deployed into a subnet within a VNet, which provides the network isolation boundary for the workspace. You also need a Private Endpoint (option C), which creates a private IP address in that VNet and maps it to the Azure ML workspace, allowing access over the Microsoft backbone network instead of the public internet. A public IP address (option A) is not required and actually contradicts the goal of private connectivity.

A Data Factory instance (option D) is unrelated to Private Link for Azure ML, and Azure Active Directory B2C (option E) is an identity service for customer-facing apps, not a networking component for Private Link.

107
Multi-Selectmedium

You are optimizing your Azure ML pipeline performance. Which THREE steps should you take to reduce execution time?

Select 3 answers
A.Increase the number of workspaces.
B.Use smaller compute clusters for everything.
C.Mount datasets instead of downloading them.
D.Enable step run reuse.
E.Use 'ParallelRunStep' for batch processing.
AnswersC, D, E

Mounting datasets exposes Azure Blob storage as a FUSE-based virtual filesystem, so compute nodes stream only the bytes each training run actually reads rather than copying the full dataset locally first. This directly satisfies the stem's execution-time constraint by eliminating the download-and-wait phase before training begins.

Why this answer

Option C is correct because mounting a dataset exposes it as a FUSE-based virtual filesystem (e.g., /mnt/azureml/...) so the compute target reads only the files it needs on demand, avoiding the full download-and-copy overhead that inflates startup and I/O time. Option D is correct because enabling step run reuse lets Azure ML skip re-executing a pipeline step when its code, inputs, parameters, and environment are unchanged, returning the cached output and eliminating redundant compute. Option E is correct because ParallelRunStep partitions a batch workload across multiple nodes/processes of the cluster and runs them concurrently, cutting wall-clock time for large-scale scoring or data processing.

Option A is not appropriate because adding workspaces only multiplies management boundaries and does not speed up a single pipeline's execution. Option B is not appropriate because undersized clusters for every step cause throttling, longer runtimes, and possible out-of-memory failures rather than faster execution.

Exam trap

AI-300 often tests the misconception that 'more compute equals faster pipelines' — candidates pick 'smaller clusters' or 'more workspaces' instead of recognizing that data movement, caching, and parallelism are the real levers.

108
MCQmedium

You are using Azure AI Studio to evaluate your model. Which tool allows you to perform batch testing on a large dataset of prompts?

A.Prompt Playground
B.Model catalog
C.Deployment logs
D.Evaluation tab
AnswerD

The Evaluation tab in Azure AI Studio runs batch evaluations across large prompt datasets, computing metrics such as groundedness, relevance and fluency. It satisfies the stem's requirement for batch testing at scale, unlike single-prompt playground interactions, by submitting the full dataset as one evaluation job and returning aggregated scores.

Why this answer

The Evaluation tab in Azure AI Studio (now Azure AI Foundry) provides batch evaluation capabilities, allowing you to run a model or prompt flow against a large dataset of prompts and compute metrics like groundedness, relevance, and fluency. This is the designated tool for batch testing at scale, as opposed to interactive testing in the playground.

Exam trap

The trap is confusing interactive testing surfaces (Prompt Playground) with batch evaluation; the exam expects you to know that large-scale dataset evaluation lives in the Evaluation tab, not the playground.

How to eliminate wrong answers

Option A is wrong because Prompt Playground is for interactive, single-prompt experimentation and does not run batch evaluations over large datasets. Option B is wrong because Model catalog is a discovery/browse surface for foundation models, not an evaluation tool. Option C is wrong because Deployment logs show runtime telemetry and request logs for a deployed endpoint, not batch evaluation results.

109
Multi-Selectmedium

You are optimizing a generative AI solution that uses Azure OpenAI for a multilingual customer feedback analysis application. The application must process large volumes of text quickly and cost-effectively. You need to reduce token usage without sacrificing the quality of the analysis. Which two actions should you take? (Choose two.)

Select 2 answers
A.Increase the max_tokens parameter to allow longer responses.
B.Use a smaller, fine-tuned model for specific languages to handle simpler tasks.
C.Enable streaming to receive responses faster.
D.Implement prompt compression techniques to remove redundant or non-essential words from the input.
E.Set the temperature to a high value to encourage more diverse responses.
AnswersB, D

Deploying a smaller, fine-tuned model for specific languages can handle simpler analysis tasks with fewer tokens and lower cost per token. Fine-tuning tailors the model to the domain, improving accuracy while reducing the need for lengthy prompts. This approach is cost-effective for high-volume, repetitive tasks and complements prompt compression.

Why this answer

Prompt compression reduces input tokens by removing redundancy, and using a smaller fine-tuned model for specific languages lowers per-token cost and often requires shorter prompts. Together, they optimize token usage without sacrificing quality. Increasing max_tokens, raising temperature, or enabling streaming do not reduce token consumption and may increase cost or reduce consistency.

Exam trap

The trap here is equating latency improvements like streaming with cost reduction, when token usage is what drives cost.

110
Multi-Selecteasy

Which THREE of the following are components of an Azure AI Foundry project?

Select 3 answers
A.Azure Key Vault (the resource itself).
B.Azure Subscriptions.
C.Prompt Flows.
D.Connections.
E.Models.
AnswersC, D, E

Prompt Flows provide the orchestration component within an Azure AI Foundry project, letting you chain prompts, models, and tools into executable flows. They are a first-class project asset, satisfying the stem's requirement to identify genuine project components.

Why this answer

In an Azure AI Foundry project, Prompt Flows (C) are a core component that lets you orchestrate prompts, tools, and logic into deployable AI workflows, so they are correctly listed. Connections (D) are also a project component because they define authenticated links from the project to external resources such as Azure OpenAI, Azure AI Search, or storage, enabling the project to consume those services. Models (E) are a component as well, since a Foundry project manages model deployments and references to models used by prompt flows and other assets.

Azure Key Vault (A) is not a component of the project itself; it is a separate Azure resource that a project may connect to for secret management. Azure Subscriptions (B) are not a project component either, as a subscription is the billing and management boundary that contains the Foundry resource and project, not an internal part of the project.

111
MCQhard

You are implementing a custom container for model training. You need to push the image to the 'Azure Container Registry' (ACR) linked to your workspace. What is the correct command?

A.'docker build' and 'docker push' to the ACR URL.
B.'az ml environment create --custom'.
C.'az container create'.
D.'az ml model deploy --image'.
AnswerA

A custom training image must first be built locally with 'docker build', then tagged with the workspace's ACR login server URL and uploaded using 'docker push'. This places the image where the compute target can pull it.

Why this answer

The standard approach is 'docker build' followed by 'docker push' to the ACR URL, ensuring authentication via 'az acr login'.

112
MCQmedium

You are building an Azure Machine Learning pipeline. You need to ensure that the pipeline components are reusable and versioned independently. What should you use?

A.Azure ML Datasets
B.Azure ML Pipelines Steps
C.Azure ML Components
D.Azure Container Registry images
AnswerC

Azure ML Components define each pipeline step as a self-contained, versioned artefact with declared inputs, outputs and environments, so steps can be registered, reused and versioned independently across pipelines. This directly satisfies the stem's reusability and independent versioning constraint, unlike monolithic pipeline scripts or inline command jobs.

Why this answer

Azure ML components allow for independent versioning and reusability across different pipelines.

113
MCQhard

In an LLM pipeline, what is the primary risk of relying solely on automated 'Groundedness' evaluators?

A.They prevent the use of custom prompts
B.They always increase latency significantly
C.They require a permanent database connection
D.They may have false negatives and miss subtle hallucinations
AnswerD

Automated groundedness evaluators, often LLM-based, can return high scores for fluent but unsupported claims, so subtle hallucinations escape detection. This false-negative risk directly undermines the stem's constraint: relying solely on automation without human review or corroborating evidence leaves undetected inaccuracies in the pipeline.

Why this answer

Automated groundedness evaluators (such as the groundedness metric in Azure AI Foundry's evaluation SDK) compare model output against supplied context using a judge model, and that judge is itself probabilistic. Because the evaluator relies on an LLM or NLP model to decide whether a claim is supported, it can return a passing score for a subtly fabricated or misattributed statement. This means false negatives — undetected hallucinations — are an inherent limitation, so human review and complementary metrics (relevance, fluency, retrieval score) remain necessary.

Exam trap

AI-300 often tests the misconception that automated evaluators are deterministic ground truth, causing candidates to overlook that LLM-as-judge metrics can produce false negatives and miss subtle hallucinations.

How to eliminate wrong answers

Option A is wrong because groundedness evaluators are invoked programmatically and do not restrict or prevent the use of custom prompts — prompt design is entirely independent of the evaluation layer. Option B is wrong because while evaluation adds some compute cost, it does not 'always increase latency significantly' in the user-facing inference path; evaluations typically run offline or asynchronously on logged data. Option C is wrong because groundedness evaluation operates on the context and response pair passed to it and does not require a permanent database connection.

114
MCQeasy

Which parameter in the Azure OpenAI API should be adjusted to make the model's output more deterministic and repeatable?

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

Temperature scales the randomness of token sampling; lowering it towards zero sharpens the probability distribution so the highest-likelihood token is chosen consistently. This directly satisfies the requirement for deterministic, repeatable output rather than varied creative responses.

Why this answer

Temperature controls the randomness of the model's output by scaling the logits before the softmax function. A lower temperature (e.g., 0 or near 0) makes the probability distribution sharper, so the model almost always picks the highest-probability token, resulting in deterministic and repeatable responses. Setting temperature to 0 is the standard way to achieve consistent outputs for the same input in Azure OpenAI.

Exam trap

AI-300 often tests the confusion between parameters that control output length (max_tokens) and those that control randomness (temperature), so candidates must remember that only temperature directly adjusts determinism.

How to eliminate wrong answers

Option A is wrong because max_tokens only limits the maximum number of tokens generated in the response; it does not affect the randomness or determinism of the output. Option B is wrong because presence_penalty discourages repeating tokens that have already appeared, which increases diversity rather than determinism. Option D is wrong because frequency_penalty reduces the likelihood of tokens based on how often they have appeared, also promoting diversity and not repeatability.

115
MCQhard

You are managing a multi-workspace environment. You need to restrict the ability to create new compute clusters to only specific users. Where should you apply this control?

A.Azure RBAC on the Workspace
B.Network Security Group
C.Azure Storage Access Policies
D.Azure ML Datastore configuration
AnswerA

Azure RBAC allows for granular permissions, specifically who can manage compute clusters.

Why this answer

RBAC (Role-Based Access Control) at the workspace level determines which users can interact with compute resources.

116
MCQmedium

Your team wants to use prompt versioning. Where should this be managed in the AI Foundry workflow?

A.Azure Database for PostgreSQL
B.GitHub repository only
C.Prompt Flow in Azure AI Foundry
D.Azure Blob Storage
AnswerC

Prompt Flow provides built-in versioning for prompt variants, letting teams iterate, compare and roll back prompt revisions within the AI Foundry workflow. It satisfies the requirement to manage prompt versioning centrally rather than through ad-hoc code or external repositories.

Why this answer

Prompt versioning in the AI Foundry workflow is managed through Prompt Flow, which treats prompts as versioned flow assets. Prompt Flow lets you author, version, and compare prompt variants, track them alongside flow runs, and promote a specific version to a deployment, giving reproducibility and rollback. This is the native mechanism for prompt lifecycle management in Azure AI Foundry.

Exam trap

AI-300 often tests the misconception that storing prompts in Git or blob storage constitutes prompt versioning in Foundry, when the native, integrated mechanism is Prompt Flow's versioned flows and variants.

How to eliminate wrong answers

Option A is wrong because Azure Database for PostgreSQL is a general-purpose relational database, not the prompt authoring/versioning surface in AI Foundry. Option B is wrong because while GitHub can store prompt text as code, 'GitHub repository only' is not the AI Foundry workflow's versioning mechanism and lacks integration with flow runs, evaluations, and deployments. Option D is wrong because Azure Blob Storage is object storage for files and artifacts; it does not provide prompt versioning semantics, comparison, or deployment promotion.

117
MCQeasy

You are moving a model from a local environment to Azure Machine Learning. Which file is required to define the entry script for the model inference?

A.'inference_config.json'.
B.'model.pkl'.
C.'environment.yml'.
D.'score.py'.
AnswerD

The score.py file is the mandatory entry script that Azure Machine Learning invokes at inference time; it must contain the init() and run() functions that load the model and return predictions, satisfying the requirement to define the entry script for model inference.

Why this answer

The entry script (often named 'score.py') is required to define 'init()' and 'run()' functions for the deployment.

118
MCQhard

You are optimizing a long-context application. Which technique is most effective for reducing context window costs in Azure OpenAI?

A.Using a smaller batch size.
B.Summarizing conversation history before passing to the next prompt.
C.Disabling streaming responses.
D.Increasing the frequency penalty.
AnswerB

Summarising prior turns replaces the full verbatim history with a condensed summary, shrinking the prompt token count that drives context window charges. This directly reduces per-request cost while preserving conversational continuity for the next prompt.

Why this answer

Long-context prompts are billed per input token, so the most direct cost lever is reducing the number of tokens sent. Summarizing conversation history replaces a growing transcript with a compact synopsis, cutting input tokens substantially while preserving semantic continuity. This is the standard pattern for multi-turn chat applications where history would otherwise balloon the context window.

Exam trap

AI-300 often tests whether candidates conflate sampling parameters (frequency penalty, temperature) or delivery settings (streaming) with token-reduction techniques, when only prompt-content compression actually lowers context cost.

How to eliminate wrong answers

Option A is wrong because batch size affects throughput and request grouping, not the token count of an individual prompt, so it does not reduce context window cost. Option C is wrong because disabling streaming changes response delivery UX, not the number of input tokens billed. Option D is wrong because frequency penalty is a sampling parameter that discourages token repetition; it does not shrink the prompt and can even slightly increase output token usage.

119
Multi-Selectmedium

Which TWO of the following are recommended methods for identifying 'hallucinations' in a RAG system?

Select 2 answers
A.Using an LLM-as-a-judge to compare against ground truth
B.Checking for grammatical errors
C.Comparing generated output against retrieval context
D.Measuring model response speed
E.Counting total prompt tokens
AnswersA, C

An LLM-as-a-judge compares the generated response against ground-truth reference answers, flagging unsupported or fabricated content as hallucination. This satisfies the stem's requirement by providing a scalable, automated assessment method rather than relying on manual review.

Why this answer

Option A is correct because using an LLM-as-a-judge to compare the generated answer against a known ground-truth reference is a standard evaluation technique for detecting hallucinations, as it directly assesses factual consistency and correctness of the output. Option C is correct because comparing the generated output against the retrieval context verifies whether the model's claims are actually grounded in the retrieved documents, which is the core definition of hallucination detection in RAG (faithfulness/groundedness checking). Option B is not appropriate because grammatical errors indicate fluency or language quality issues, not factual fabrication, and a hallucination can be perfectly grammatical.

Option D is not appropriate because response speed is a latency/performance metric and has no bearing on factual accuracy. Option E is not appropriate because counting prompt tokens measures input size and cost, not whether the generated content is factually supported.

120
MCQeasy

An application is hitting rate limits on the Azure OpenAI service. Which action is the most standard approach for handling this in production?

A.Delete the deployment and recreate it.
B.Implement exponential backoff in the client application.
C.Disable the rate limit in the portal.
D.Increase the temperature of the model.
AnswerB

Exponential backoff retries failed requests with progressively longer, randomised delays, letting the client recover from 429 throttling without hammering the service. This is the standard production pattern for transient rate-limit errors on Microsoft Entra ID-authenticated Azure OpenAI deployments.

Why this answer

The standard production approach for handling rate limits (HTTP 429) from Azure OpenAI is to implement retry logic with exponential backoff in the client application. Azure OpenAI returns a 429 status code with a Retry-After header when the tokens-per-minute (TPM) or requests-per-minute (RPM) quota is exceeded, and the client should wait and retry with progressively longer delays. This is the documented Microsoft-recommended pattern and is also built into the Azure OpenAI SDKs via retry policies.

Exam trap

AI-300 often tests the misconception that rate limits are a configuration setting that can be toggled or bypassed, when in reality they are enforced service-side quotas that must be handled client-side with retry/backoff logic or raised via quota requests.

How to eliminate wrong answers

Option A is wrong because deleting and recreating a deployment does not change the underlying quota assigned to the subscription and would cause downtime plus loss of the deployment configuration; it does not address the rate-limit condition at all. Option C is wrong because rate limits on Azure OpenAI are enforced by the service at the subscription/deployment level and cannot be disabled from the portal — the only way to raise them is to request a quota increase or provision more capacity (e.g., PTU). Option D is wrong because temperature controls the randomness/creativity of model output and has no relationship to throughput, throttling, or quota enforcement.

121
MCQhard

You need to prevent data egress from your Azure ML environment. What configuration is required?

A.Enable public access
B.Use a public load balancer
C.Create a new resource group
D.Managed VNet and egress locks
AnswerD

Managed VNet isolation combined with egress locks blocks outbound traffic from the workspace's managed network, so data cannot leave to unapproved destinations. This directly satisfies the no-egress requirement, which firewall rules alone cannot enforce for managed compute.

Why this answer

A workspace with no public IP and a managed virtual network with egress controls prevents unauthorized data movement.

122
MCQeasy

What is the primary benefit of using Azure ML compute clusters instead of compute instances for training?

A.Support for multiple nodes
B.Clusters have more RAM per node
C.Instances are deprecated
D.Cost is always lower
AnswerA

Compute clusters scale across multiple nodes, enabling distributed training that a single-node compute instance cannot provide. This directly satisfies the stem's training scenario, where parallelising work across nodes cuts wall-clock time for large models and datasets. Compute instances remain limited to one node, so they cannot deliver this horizontal scaling capability.

Why this answer

Compute clusters are designed for distributed, scalable training across multiple nodes.

123
Multi-Selectmedium

You are designing the infrastructure for a multi-agent system. Which THREE of the following are essential components to ensure agent orchestration scalability?

Select 3 answers
A.Azure Data Lake Storage for model weights.
B.Horizontal Pod Autoscaling (HPA) for inference services.
C.A message queue (e.g., Azure Service Bus) to decouple agent tasks.
D.A distributed cache (e.g., Azure Cache for Redis) for state management.
E.Azure Bastion for secure management.
AnswersB, C, D

Horizontal Pod Autoscaling dynamically scales inference pods based on CPU, memory or custom metrics, absorbing variable agent workloads. It satisfies the scalability requirement by adding capacity during demand spikes without manual intervention, keeping orchestration responsive.

Why this answer

Option B is correct because Horizontal Pod Autoscaling (HPA) dynamically adjusts the number of pod replicas for inference services based on metrics like CPU utilization or custom metrics, which is essential for scaling agent workloads elastically as demand fluctuates. Option C is correct because a message queue such as Azure Service Bus decouples agent tasks, enabling asynchronous communication, load leveling, and reliable task distribution across multiple agents, which is fundamental to orchestration scalability. Option D is correct because a distributed cache like Azure Cache for Redis provides low-latency shared state management, allowing agents to coordinate, share session context, and avoid bottlenecks from repeated database reads in a scaled-out system.

Option A is not essential for orchestration scalability, since Azure Data Lake Storage is a storage solution for large-scale data and model artifacts, not a runtime scaling or coordination component. Option E is not essential either, as Azure Bastion provides secure RDP/SSH access to virtual machines for management purposes and does not contribute to agent orchestration scalability.

Exam trap

AI-300 often tests the misconception that any storage or security service is essential for scalability, confusing data persistence or access management with the core components needed for elastic, decoupled, and stateful agent orchestration.

124
MCQeasy

Which feature in Azure OpenAI allows you to reserve throughput for a consistent user experience during high demand?

A.Regional failover.
B.Auto-scaling groups.
C.Provisioned Throughput Units (PTUs).
D.Token throttling.
AnswerC

Provisioned Throughput Units reserve dedicated model capacity on Azure OpenAI, guaranteeing consistent latency and throughput under load. Unlike pay-as-you-go token billing, which shares capacity and throttles during demand spikes, PTUs satisfy the stem's requirement for a consistent user experience during high demand.

Why this answer

Provisioned Throughput Units (PTUs) let you reserve a fixed amount of model processing capacity on an Azure OpenAI deployment, guaranteeing consistent latency and throughput even under high demand. Unlike standard (pay-as-you-go) deployments that share a regional pool and can be throttled, PTUs give you dedicated capacity measured in units of tokens-per-minute equivalent. This is the feature designed specifically for predictable, high-volume workloads.

Exam trap

AI-300 often tests whether candidates confuse throttling controls with capacity reservation; the trap is selecting 'token throttling' because it sounds like a throughput-management feature when it is actually the failure mode PTUs prevent.

How to eliminate wrong answers

Option A is wrong because regional failover is a resiliency mechanism for availability, not a throughput reservation; it does not guarantee capacity during demand spikes. Option B is wrong because auto-scaling groups are an Azure VM/compute concept (VMSS) and are not how Azure OpenAI capacity is managed — Azure OpenAI does not expose autoscaling groups for model deployments. Option D is wrong because token throttling is a rate-limiting behavior imposed when you exceed quota, not a feature that reserves capacity; it is the problem PTUs are meant to solve.

125
MCQhard

You are automating model registration using the Azure ML CLI. You need to ensure the registration only happens if the model accuracy is above 0.9. How do you implement this condition?

A.Use the 'condition' parameter in the 'model create' command.
B.Use an 'Azure Function' to trigger registration.
C.Configure a 'ValidationThreshold' in the registry.
D.Implement logic in the pipeline to gate the registration step.
AnswerD

The CLI registers whatever model artefact you submit, so the accuracy threshold must be evaluated before that call. Gating the registration step inside the pipeline lets the run compare the logged metric against 0.9 and skip registration when it fails.

Why this answer

You must include logic in your pipeline or script to evaluate the metric (e.g., via a 'PythonScriptStep') and only call the 'az ml model create' command if the condition is met.

126
MCQeasy

You are an MLOps engineer preparing to retrain a demand forecasting model on a schedule. The training data resides in an Azure Machine Learning datastore backed by Azure Blob Storage. You need the training job to run automatically every night at 02:00 UTC without manual intervention. What should you create?

A.A pipeline parameter named schedule_time that the pipeline reads at runtime to decide whether to start training.
B.A schedule attached to the training pipeline that uses a cron expression for 02:00 UTC and is enabled.
C.A compute cluster with autoscaling enabled so that nodes are available whenever the training job is submitted.
D.A registered model version with a tag indicating the desired retraining interval for the operations team to follow.
AnswerB

Azure Machine Learning schedules let you run pipelines or jobs on a recurring cadence defined by a cron expression. Creating and enabling a schedule with the appropriate cron string automates the nightly run at 02:00 UTC with no manual step, which is exactly the requirement.

Why this answer

Recurring, unattended execution in Azure Machine Learning is delivered by schedules, which bind a cron or recurrence definition to a pipeline or job. Once the schedule is enabled, the service launches the run at the specified time, so the nightly 02:00 UTC retraining happens without human action. Parameters, compute settings, and model tags cannot initiate runs on their own.

Exam trap

The trap here is confusing configuration objects that influence a run, such as parameters or autoscaling compute, with the schedule object that actually starts runs on a timetable.

127
MCQhard

You need to debug a training job that is failing inside a specific Docker container. What is the best way to investigate?

A.Delete the datastore
B.Use the Azure ML SDK to download the container image
C.Use 'az ml job stream' to view logs
D.Submit a new training job without parameters
AnswerC

Streaming the job's logs exposes the container's stdout and stderr in real time, revealing the exact failure point inside the Docker image without rebuilding or redeploying. This directly satisfies the requirement to investigate a training job failing within a specific container.

Why this answer

The 'az ml job stream' command streams the logs of a running or completed Azure ML job in real time, including container logs from the Docker environment. This allows you to see error messages, stack traces, and output from the training script inside the container, making it the most direct way to debug a failing job.

Exam trap

AI-300 often tests the specific CLI commands for job debugging, and candidates may choose generic troubleshooting steps instead of the precise 'az ml job stream' command.

How to eliminate wrong answers

Option A is wrong because deleting the datastore would remove data and not help debug the container failure. Option B is wrong because downloading the container image does not provide runtime logs or error details; you would need to run it locally, which may not reproduce the issue. Option D is wrong because submitting a new job without parameters does not address the failure and may produce the same error without additional diagnostic information.

128
MCQmedium

A team is scaling a GenAI application that utilizes multiple models via model-as-a-service. You notice that inference requests are being throttled. What is the most effective infrastructure-level adjustment to handle the increased load?

A.Purchase and deploy Provisioned Throughput Units (PTUs) for the specific model deployment.
B.Change the model version to a lower-parameter variant.
C.Move the deployment to a different subscription within the same Azure region.
D.Increase the number of instances in the associated Azure Kubernetes Service (AKS) cluster.
AnswerA

Provisioned Throughput Units reserve dedicated model capacity, converting the deployment from pay-as-you-go token limits to a guaranteed throughput allocation. This directly removes the shared-quota throttling the stem describes, since PTUs provide predictable, reserved inference capacity for that specific model rather than competing for pooled regional capacity.

Why this answer

Provisioned throughput units (PTUs) allow for dedicated capacity, which is the standard way to prevent throttling for high-scale GenAI workloads in Azure.

129
Multi-Selectmedium

Which TWO methods are best for debugging an LLM pipeline that fails on complex queries?

Select 2 answers
A.Inspecting raw input and output tokens via logs.
B.Tracing the request flow through the RAG pipeline.
C.Increasing the number of API users.
D.Disabling all security controls.
E.Deleting the deployment and rebuilding it.
AnswersA, B

Logging raw input and output tokens exposes exactly what the model received and emitted, revealing truncation, malformed prompts or unexpected content on complex queries. This satisfies the requirement to pinpoint where the pipeline diverges from expected behaviour.

Why this answer

Option A is correct because inspecting raw input and output tokens via logs reveals exactly what prompt text and context the model received and what it generated, exposing truncation, malformed prompt templates, or unexpected tokenization that cause failures on complex queries. Option B is correct because tracing the request flow through the RAG pipeline shows each stage — query rewriting, embedding, vector retrieval, reranking, and final generation — so you can pinpoint which component drops or corrupts information for complex queries. Option C is wrong because adding API users only increases load and does not diagnose pipeline failures.

Option D is wrong because disabling security controls introduces risk without providing any debugging insight. Option E is wrong because deleting and rebuilding the deployment is a destructive, non-diagnostic action that may erase logs and state needed for root-cause analysis.

130
MCQmedium

You have an automated model training pipeline that is failing intermittently due to compute availability. What should you configure to ensure the pipeline is more resilient?

A.Increase the 'max_nodes' of the cluster.
B.Set the 'allow_reuse' parameter to True.
C.Use 'LowPriority' compute.
D.Configure 'retry' settings for the step.
AnswerD

Retry settings re-run a failed pipeline step automatically after transient errors, so intermittent compute unavailability does not abort the whole run. This directly satisfies the resilience requirement by absorbing temporary capacity failures without manual intervention.

Why this answer

You should configure 'retry' settings in the 'PipelineStep' definition to handle transient compute errors.

131
Multi-Selectmedium

You are planning a production GenAI deployment. Which THREE of the following are necessary infrastructure considerations?

Select 3 answers
A.Implementing Private Link for network isolation.
B.Setting up auto-scaling for inference endpoints.
C.Using the cheapest SKU regardless of capacity.
D.Enabling diagnostic logging for audit and monitoring.
E.Hardcoding credentials in the code.
AnswersA, B, D

Private Link gives the GenAI deployment a private endpoint, so inference traffic traverses the Microsoft backbone rather than the public internet. This satisfies the production requirement for network isolation, preventing data exposure during model prompts and responses.

Why this answer

Security, scalability, and monitoring are the three pillars of a production-ready AI infrastructure.

132
MCQhard

You are deploying a model that requires a high-memory compute for inference. You are using a 'Managed Online Endpoint'. Where do you specify the instance type for this deployment?

A.In the 'Endpoint' YAML file.
B.In the 'Environment' definition.
C.In the 'Deployment' YAML file under 'instance_type'.
D.In the 'Workspace' settings.
AnswerC

For a Managed Online Endpoint, the compute instance type is declared in the deployment YAML under the instance_type property, which provisions the high-memory VM size required for inference. The endpoint itself only defines the scoring interface.

Why this answer

The instance type is defined in the 'Deployment' configuration object, typically in the 'instance_type' field.

133
MCQmedium

You are building a RAG application. Where should you store the indexed documents for optimal retrieval performance?

A.Azure Blob Storage
B.Azure Cache for Redis
C.Azure AI Search
D.Azure SQL Database
AnswerC

Azure AI Search provides vector and hybrid retrieval indexes purpose-built for RAG, satisfying the stem's optimal retrieval performance constraint. Its native semantic ranking and integrated vectorisation deliver low-latency similarity search across indexed documents, unlike general-purpose stores that lack native vector indexing. Microsoft Entra ID secures access to the service.

Why this answer

Azure AI Search is the native indexer and retriever for AI Foundry RAG applications.

134
MCQmedium

You are deploying a GenAI app to production and want to track the 'Token Usage' and 'Latency' metrics per user session. Which service should you integrate with your application?

A.Azure Application Insights
B.Azure Container Registry
C.Azure Key Vault
D.Azure Policy
E.Azure AI Search
AnswerA

Azure Application Insights captures custom telemetry such as token counts and latency, letting you attach per-session properties to each event. This satisfies the requirement to track Token Usage and Latency metrics per user session, since Application Insights supports custom metrics and dimensions that can be segmented by session identifier.

Why this answer

Azure Application Insights is the APM service that captures custom metrics, request telemetry, dependencies, and traces, making it the right place to track per-session Token Usage and Latency. You can emit custom metrics (e.g., 'tokens_used', 'latency_ms') tagged with a session ID and visualize them in workbooks or query them with KQL.

Exam trap

AI-300 often tests whether candidates can map observability needs (metrics, traces, exceptions) to the correct Azure service — Application Insights is the only APM option here, but distractors like Key Vault and AI Search sound 'AI-related' and lure candidates away.

How to eliminate wrong answers

Option B is wrong because Azure Container Registry stores container images and does not collect runtime metrics. Option C is wrong because Key Vault manages secrets and keys, not application telemetry. Option D is wrong because Azure Policy enforces governance rules on resources, not runtime performance tracking.

Option E is wrong because Azure AI Search is a search/vector index service, not a monitoring or metrics platform.

135
MCQeasy

Which component in an Azure ML pipeline definition is responsible for specifying the runtime environment, including Python packages and Conda dependencies?

A.Compute Target
B.Datastore
C.Component
D.Environment
AnswerD

The Environment component encapsulates the Docker image plus Conda and pip dependency specifications, so each pipeline step resolves a reproducible runtime. It is the definition element that pins Python packages and Conda dependencies for the job.

Why this answer

In an Azure ML pipeline, the Environment object encapsulates the runtime (Docker base image), Python packages, and Conda dependencies used by a component. Components reference an Environment to define their execution context, so the Environment is the correct answer for specifying packages and Conda dependencies.

Exam trap

AI-300 often tests whether candidates confuse the Component (the pipeline step) with the Environment (the runtime spec) — the question asks specifically about packages and Conda, which only the Environment defines.

How to eliminate wrong answers

Option A is wrong because a Compute Target defines where the job runs (CPU/GPU cluster, instance, etc.), not what packages are installed. Option B is wrong because a Datastore is an abstraction over storage (Blob, ADLS, SQL) used for data input/output, not for runtime dependencies. Option C is wrong because a Component is the reusable pipeline step that references an Environment — it does not itself define the package set; it consumes one.

136
MCQmedium

You are configuring a batch scoring job. You need to ensure that the job processes data in parallel to reduce completion time. What property should you adjust in the 'ParallelRunConfig'?

A.Change the 'output_action' to 'append_row'.
B.Adjust 'process_count_per_node' and 'node_count'.
C.Enable 'distributed_training'.
D.Set 'min_nodes' to 1.
AnswerB

Scaling parallelism requires tuning both `node_count` (cluster nodes) and `process_count_per_node` (processes per node); their product sets total concurrent workers. Increasing either alone caps throughput, so adjusting both satisfies the stem's requirement to reduce batch scoring completion time through genuine parallel processing.

Why this answer

The 'node_count' and 'process_count_per_node' are the key parameters in 'ParallelRunConfig' that dictate the degree of parallelism.

137
Multi-Selecteasy

Which TWO of the following are valid ways to authenticate to an Azure AI Foundry project?

Select 2 answers
A.API Keys.
B.Microsoft Entra ID (RBAC).
C.Hardcoded usernames in the code.
D.Local file-based passwords.
E.Public IP allow-listing only.
AnswersA, B

API keys authenticate directly against an Azure AI Foundry project endpoint, satisfying the requirement for a valid project-level authentication method. The key is scoped to the project resource, so callers present it without needing a separate identity token exchange. This makes it one of the two supported mechanisms alongside Microsoft Entra ID.

Why this answer

Option A (API Keys) is correct because Azure AI Foundry projects expose key-based authentication, where a project or resource key is passed in the request header (e.g., the api-key header) to authorize calls to the project's endpoints. Option B (Microsoft Entra ID with RBAC) is correct because Foundry projects support Entra ID token-based authentication, using role-based access control assignments (such as Cognitive Services User or Contributor) to authorize identities via OAuth 2.0 bearer tokens. Option C is not valid because hardcoding usernames in code is not an authentication mechanism and would be a security anti-pattern, not a supported credential type.

Option D is not valid because local file-based passwords are not an authentication method offered by Azure AI Foundry. Option E is not valid because IP allow-listing is a network-level control, not an authentication method, and it does not verify caller identity.

138
MCQeasy

Which Azure AI Foundry feature allows you to evaluate your model's performance?

A.Endpoint monitoring
B.Model Catalog
C.Deployment logs
D.Evaluation
AnswerD

Evaluation in Azure AI Foundry runs built-in and custom metrics against a model or prompt flow using test datasets, producing scored results. It is the feature that quantifies performance rather than merely deploying or monitoring the model.

Why this answer

The Evaluation feature in Azure AI Foundry is specifically designed to assess model performance using metrics like accuracy, F1 score, and coherence. It provides built-in evaluators and supports custom evaluation flows, enabling systematic testing of models before and after deployment. This directly addresses the need to evaluate model performance, unlike other options which focus on monitoring, cataloging, or logging.

Exam trap

AI-300 often tests the distinction between operational monitoring (endpoint monitoring, logs) and model performance evaluation, causing candidates to confuse monitoring with evaluation.

How to eliminate wrong answers

Option A is wrong because Endpoint monitoring tracks operational metrics such as latency, request rates, and error rates, not model quality or performance metrics like accuracy. Option B is wrong because Model Catalog is a repository for discovering and deploying prebuilt models; it does not provide evaluation capabilities. Option C is wrong because Deployment logs capture runtime events and errors for troubleshooting, not performance evaluation of the model's predictions.

139
MCQhard

A pipeline step fails because it cannot find a file in the datastore. What is the most likely cause?

A.The workspace is too large
B.The compute cluster is off
C.Incorrect path definition in the component
D.The subscription is expired
AnswerC

Components reference datastore data through declared input paths; if that path is wrong, the step resolves to a nonexistent location and fails at runtime. The datastore itself remains reachable, so the fault lies in the component's path definition rather than connectivity or credentials.

Why this answer

The mount path or the relative path defined in the pipeline step component configuration is likely incorrect.

140
MCQmedium

You notice that your fine-tuned model is 'forgetting' base capabilities after training on a small dataset. What strategy should you use to mitigate this?

A.Include a portion of the original training data during fine-tuning.
B.Increase the fine-tuning learning rate.
C.Change the model architecture to GPT-4.
D.Reduce the batch size to 1.
AnswerA

Replaying a portion of the original training data during fine-tuning constrains weight updates, preserving base capabilities that a small, narrow dataset would otherwise overwrite. This directly mitigates catastrophic forgetting, satisfying the stem's requirement to retain general model behaviour.

Why this answer

Catastrophic forgetting occurs when a model fine-tuned on a small dataset loses its general capabilities. To mitigate this, you should include a portion of the original training data (or a diverse set of general data) during fine-tuning so the model retains its base knowledge while learning the new task. This is a common technique in continual learning.

Exam trap

AI-300 often tests the concept of catastrophic forgetting and its mitigation. Candidates might think that increasing learning rate or changing model architecture solves the problem, but the correct approach is to include original data.

How to eliminate wrong answers

Option B is wrong because increasing the learning rate would likely exacerbate forgetting by making the model rapidly overfit to the new data. Option C is wrong because changing the model architecture to GPT-4 is not a strategy to mitigate forgetting; it's a different model and may not be feasible. Option D is wrong because reducing batch size to 1 increases noise in updates and can worsen forgetting, not mitigate it.

141
MCQmedium

You are deploying a model as a real-time endpoint. You want to ensure the deployment can handle sudden spikes in traffic. Which scaling configuration should you enable?

A.Auto-scaling
B.Static node count
C.Batch deployment
D.Pre-warmed instances
E.None of the above
AnswerA

Auto-scaling dynamically adjusts the number of endpoint instances in response to incoming request volume, directly satisfying the sudden traffic-spike requirement. Unlike manual scaling, which fixes capacity at a static instance count, auto-scaling reacts to real-time load metrics, provisioning additional instances during peaks and removing them afterwards to control cost.

Why this answer

Auto-scaling allows the endpoint to dynamically adjust node count based on CPU/Memory usage.

142
MCQmedium

What is the recommended approach for managing configuration settings for different environments (Dev, Test, Prod) in an AI application?

A.Deploy different model versions for each environment.
B.Create separate Azure subscriptions for every environment.
C.Use 'App Configuration' service to manage environment-specific variables.
D.Hardcode values in the application code.
AnswerC

App Configuration stores environment-specific key-values behind labels, so Dev, Test and Prod settings coexist in one store and are selected at runtime without code changes. This satisfies the stem's requirement for managing differing configuration across environments, and integrates with Microsoft Entra ID for access control.

Why this answer

Using environment variables or app configuration services is the standard way to inject configuration without hardcoding.

143
Multi-Selecteasy

Which THREE of the following are valid compute targets for Azure Machine Learning training?

Select 3 answers
A.Compute Cluster
B.Attached Kubernetes Cluster
C.Compute Instance
D.Azure Function
E.SQL Database
AnswersA, B, C

Compute Cluster is a valid AML training target: it provisions multi-node CPU or GPU clusters that automatically scale up on job submission and scale down to zero nodes when idle, satisfying the stem's requirement for a scalable, managed training compute target.

Why this answer

A. Compute Cluster is correct because Azure Machine Learning compute clusters are managed, auto-scaling clusters of CPU or GPU nodes specifically designed to run training scripts and pipelines at scale. B.

Attached Kubernetes Cluster is correct because Azure ML lets you attach an existing Azure Kubernetes Service (AKS) cluster as a compute target, which can then execute training workloads (and inference) via the Azure ML Kubernetes compute. C. Compute Instance is correct because a compute instance is a managed, single-node VM in your workspace that can be used as a training target for development, testing, and small-scale training jobs.

D. Azure Function is not a valid Azure ML compute target; it is a serverless event-driven compute service for running small pieces of code, not for orchestrating ML training jobs. E.

SQL Database is not a compute target at all; it is a data storage service and cannot execute training scripts.

144
Multi-Selectmedium

Which TWO of the following are benefits of using Prompt Flow for orchestration?

Select 2 answers
A.Removal of the need for an LLM.
B.Integrated testing and evaluation.
C.No need for authentication.
D.Automatic hardware management.
E.Visual design of complex flows.
AnswersB, E

Prompt Flow provides built-in evaluation flows that score outputs against metrics such as groundedness and relevance, plus batch testing across datasets. This satisfies the stem's orchestration benefit by embedding repeatable quality measurement directly into the pipeline, rather than requiring separate tooling to validate prompt variants before deployment.

Why this answer

Option B is correct because Prompt Flow provides built-in tooling for testing and evaluating flows, including the ability to run batch evaluations against datasets and compute metrics such as groundedness, relevance, and coherence, which supports iterative quality improvement. Option E is correct because Prompt Flow offers a visual designer (in Azure AI Foundry / Azure Machine Learning) where you can author and connect nodes—LLM, Python, prompt, and tool nodes—into directed acyclic graphs, making complex orchestration easier to design and understand. The unmarked options do not belong: A is wrong because Prompt Flow orchestrates calls to LLMs rather than removing the need for one, C is wrong because authentication and authorization are still required for accessing models and connected resources, and D is wrong because Prompt Flow does not automatically manage hardware—compute provisioning and scaling remain the user's responsibility.

145
MCQhard

You are building a RAG application and notice that the model sometimes hallucinates information not present in the retrieved documents. Which evaluation metric should you prioritize to mitigate this?

A.Groundedness
B.Relevance
C.Performance
D.Fluency
AnswerA

Groundedness measures whether the model's response is factually supported by the retrieved source documents. Prioritising it directly targets hallucination, since low groundedness scores flag answers containing claims absent from the retrieved context, satisfying the mitigation requirement.

Why this answer

Groundedness specifically assesses whether the generated response is derived from the retrieved documents.

146
MCQmedium

You are defining an Azure Machine Learning environment for a training job. The environment requires a specific set of Python libraries. What is the best practice for defining these dependencies?

A.Define dependencies in a 'conda.yaml' file.
B.Hardcode pip install commands in the training script.
C.Install libraries via a startup script in the compute cluster.
D.Pre-install them on the virtual machine image.
AnswerA

A conda.yaml file declaratively pins Python packages, their versions and channel sources, which Azure Machine Learning builds into a reproducible environment image. This satisfies the requirement for a specific, consistent set of Python libraries across training runs, rather than relying on ad-hoc pip installs that risk drift.

Why this answer

Using a 'conda.yaml' file is the best practice for managing reproducible Python environments in Azure ML.

147
MCQhard

You are debugging a prompt that is performing poorly on edge cases. You decide to use a 'Chain-of-Thought' approach. Why does this improve performance?

A.It enables the model to break down complex logic into sequential steps.
B.It bypasses the safety alignment layer.
C.It forces the model to use more input tokens, reducing costs.
D.It reduces the context window size.
AnswerA

Chain-of-Thought prompting improves edge-case handling by forcing the model to generate intermediate reasoning tokens before committing to an answer, decomposing complex logic into sequential steps. This explicit step-by-step generation reduces errors on multi-hop reasoning, satisfying the stem's requirement to improve performance on tricky edge cases.

Why this answer

Chain-of-Thought (CoT) prompting instructs the model to produce intermediate reasoning steps before the final answer, which improves accuracy on multi-step logic, arithmetic, and edge cases by giving the model more compute and context to work through ambiguity. This sequential decomposition is why CoT helps on problems where a direct answer would skip critical reasoning.

Exam trap

AI-300 often tests whether candidates understand that CoT trades higher token cost and latency for better reasoning accuracy, so any option claiming it reduces cost or context usage is a distractor.

How to eliminate wrong answers

Option B is wrong because CoT does not bypass safety alignment — safety layers operate independently of prompting strategy and remain active. Option C is wrong because CoT increases token usage and therefore cost, not reduces it; the claim inverts the actual effect. Option D is wrong because CoT consumes more context window, not less, since the reasoning steps occupy tokens.

148
MCQmedium

You are preparing an Azure Machine Learning training job that must read a large Parquet dataset stored in an Azure Data Lake Storage Gen2 account. The job runs on an Azure ML compute cluster, and you want the data to be streamed directly from the storage account without first downloading the full dataset to the compute node's local disk. You also need to avoid storing account keys in the job script. Which Azure ML datastore configuration should you use?

A.Register the storage account as an Azure ML datastore using account key authentication, then mount the datastore in the job.
B.Download the dataset to the compute cluster's default datastore before the job starts, then read it from the local path in the training script.
C.Create a FileDataset that references the ADLS Gen2 path and pass it as a mounted input to the job.
D.Register the storage account as an Azure ML datastore using credential-less (identity-based) authentication, then use the datastore URI with the azureml-fsspec or mltable input in the job.
AnswerD

Identity-based datastore authentication lets the compute cluster access the storage account using its managed identity, so no account keys are stored in the job script. Using the datastore URI with fsspec or mltable enables streaming reads directly from ADLS Gen2 rather than downloading the entire dataset to local disk, satisfying both the security and streaming requirements.

Why this answer

The scenario requires both credential-less access and streaming reads. Registering the ADLS Gen2 account with identity-based authentication allows the compute cluster's managed identity to reach the data without embedding account keys. Combining that datastore with a URI-based input such as fsspec or mltable enables the training script to stream Parquet data directly from storage, avoiding a full local download and meeting both constraints.

Exam trap

The trap here is assuming that any datastore mount automatically streams data and avoids credentials, when mounting typically caches data locally and account-key authentication still exposes secrets.

149
MCQhard

You want to measure 'Relevance' in a RAG application. The relevance evaluator detects how well the response answers the user query. If the model provides a factually correct answer that does not address the prompt, which metric will capture this failure?

A.Relevance
B.Fluency
C.Coherence
D.Groundedness
AnswerA

Relevance specifically measures whether the response directly addresses the user's query, independent of factual accuracy. A factually correct but off-topic answer scores poorly because the evaluator compares the response's intent against the prompt's intent, satisfying the stem's requirement to capture answers that fail to address the prompt.

Why this answer

Relevance specifically measures if the response directly addresses the user's intent.

150
Multi-Selecteasy

Which TWO of the following are effective ways to reduce hallucination?

Select 2 answers
A.Increasing the temperature to 0.7.
B.Removing the system prompt.
C.Using the longest possible response length.
D.Explicitly instructing the model to say 'I don't know' if the context is insufficient.
E.Providing ground-truth reference context in the prompt.
AnswersD, E

Giving the model an explicit escape route means it can decline rather than fabricate when retrieved context lacks the answer, directly reducing unsupported generation. This satisfies the hallucination-reduction constraint by converting an unknowable prompt into a grounded refusal instead of an invented response.

Why this answer

Option D is correct because explicitly instructing the model to say 'I don't know' when the context is insufficient gives it a permissible fallback behavior, reducing the tendency to fabricate plausible-sounding but unsupported answers. Option E is correct because supplying ground-truth reference context in the prompt anchors the model's response in verified source material, a technique commonly called retrieval-augmented or grounded generation, which measurably lowers hallucination rates. Option A is incorrect because raising the temperature to 0.7 increases sampling randomness, which typically increases rather than reduces hallucination.

Option B is incorrect because removing the system prompt strips away behavioral constraints and role guidance, generally making the model less reliable and more prone to unsupported output. Option C is incorrect because requesting the longest possible response length encourages verbosity and elaboration beyond the available evidence, which tends to increase hallucinated content rather than reduce it.

Exam trap

AI-300 often tests the confusion that higher temperature or longer responses improve quality, when in fact they increase hallucination; the exam expects knowledge that grounding and explicit uncertainty instructions are key mitigations.

Page 1

Page 2 of 3

Page 3

All pages