Which TWO techniques should you use to improve the accuracy of a RAG pipeline?
Higher quality embeddings lead to better semantic relevance.
Why this answer
Chunking strategy and better embedding models directly impact the quality of retrieved data.
204 questions total · 3pages · All types, answers revealed
Page 1 of 3
Page 2Which TWO techniques should you use to improve the accuracy of a RAG pipeline?
Higher quality embeddings lead to better semantic relevance.
Why this answer
Chunking strategy and better embedding models directly impact the quality of retrieved data.
You are monitoring the cost of your GenAI infrastructure. You want to track usage per specific project. Which feature in Azure AI Foundry should you use?
Tags are the native method to categorize costs in Azure billing.
Why this answer
Tags are the standard mechanism in Azure for grouping resources and tracking costs associated with specific projects or teams.
You need to monitor the data drift of a model deployed in Azure ML. What is the first step you must take?
Data Drift Monitor is the specific feature for tracking distribution changes.
Why this answer
You must create a Data Drift Monitor object linked to your target dataset and baseline dataset to begin tracking.
You are setting up a CI/CD pipeline for GenAI models. You need to evaluate the model's performance on a benchmark dataset before it is promoted to the production endpoint. Which Azure AI Foundry capability should be integrated into your pipeline?
Evaluation runs are specifically designed to measure model responses against ground truth benchmarks.
Why this answer
Evaluation runs in Prompt Flow allow for automated testing of model quality against datasets, which is a required step for a robust GenAI CI/CD pipeline.
Which Azure feature is used to define infrastructure as code for your Azure ML workspace?
Bicep is a declarative language for deploying Azure infrastructure.
Why this answer
Azure Bicep is the recommended tool for defining and deploying Azure resources as code.
Which THREE features does Azure AI Foundry provide to help developers?
Simplifies model testing.
Why this answer
Model Catalog, Prompt Flow, and Evaluation are key developer-facing features in Azure AI Foundry.
Which THREE metrics can be logged during training to track performance in Azure ML?
Standard metric.
Why this answer
Accuracy, loss, and custom metrics are standard loggable items.
You are configuring a CI/CD pipeline for model deployment. Which THREE actions must you perform to ensure model traceability?
Versioning is essential for tracking changes over time.
Why this answer
Model registry registration, metadata tagging, and linking to the source code commit are standard MLOps practices for traceability.
You are deploying a model via a Managed Online Endpoint. You want to implement a Canary deployment where 10% of traffic is sent to a new model version. How do you configure this?
This is the correct way to shift traffic weights.
Why this answer
You use the 'update' command on the endpoint to set the 'traffic' parameter, distributing weights across deployment names.
Which THREE factors contribute to increased latency in an LLM application?
Larger models take longer to compute per token.
Why this answer
Model size, input/output token count, and network transit time are the main drivers of latency.
Your team uses a custom Docker image for training. You need to update the image in the Azure Container Registry (ACR). What is the recommended workflow to ensure Azure ML picks up the latest version?
Azure ML environments rely on tags; refreshing the environment definition ensures the latest image is used.
Why this answer
Updating the image tag and updating the environment definition in Azure ML forces the system to pull the new version.
Your team is using Semantic Kernel for agent orchestration. You notice frequent transient errors when the agent interacts with multiple LLM services. How should you implement infrastructure-level resiliency?
APIM policies provide a robust, centralized mechanism to handle retries for LLM endpoints.
Why this answer
Implementing exponential backoff and retries via the 'RetryHandler' in the HttpClient factory or Semantic Kernel settings is the standard approach for infrastructure-level resiliency.
Which TWO of the following can be used to manage Azure ML assets like environments and models?
Provides command-line management.
Why this answer
The Azure ML Studio UI and the CLI v2 are both primary interfaces for asset management.
Which TWO languages are natively supported for the Azure ML SDK?
Supported language.
Why this answer
Python and R are the primary languages with official SDK support.
You are deploying a model that requires specific GPUs. How do you ensure you get the right infrastructure?
SKU selection determines the underlying compute resources.
Why this answer
Selecting the appropriate SKU (e.g., standard vs. GPU-optimized) during the deployment process ensures you get the required infrastructure.
When configuring observability for an AI application, which TWO telemetry types should you collect to analyze both performance and quality?
Essential quality metric.
Why this answer
Performance metrics (latency) and quality/safety flags are essential for observability.
You want to automate the scaling of your AI agent orchestration. Which TWO components do you need to configure?
Rules that determine when to scale.
Why this answer
Auto-scaling is driven by metrics and defined by policies that govern instance counts.
Which THREE metrics are critical for monitoring the health of a GenAI deployment?
Indicator of performance.
Why this answer
Latency, throughput (tokens per second), and error rates are the standard health metrics for AI deployments.
You want to evaluate your prompt engineering changes quantitatively. Which method is most reliable for comparing two prompt versions?
Evaluation datasets ensure consistent, objective comparison metrics.
Why this answer
A/B testing with a ground-truth dataset allows for objective measurement of performance changes.
You are configuring a chat application. What is the benefit of enabling streaming in the Azure OpenAI API?
Streaming provides immediate feedback rather than waiting for the entire response.
Why this answer
Streaming improves perceived latency by delivering tokens as they are generated.
Which THREE items are captured in the experiment lineage in Azure Machine Learning?
Code lineage.
Why this answer
Datasets, code, and environments are the pillars of reproducibility.
You are monitoring an Azure OpenAI deployment and need to identify if a model is outputting content that violates safety policies. Which Azure AI Content Safety feature should you enable to categorize harmful content?
The Content Safety API allows for scanning text against predefined safety categories.
Why this answer
The Content Safety service provides classification categories such as Hate, Self-Harm, Sexual, and Violence to filter model outputs.
You want to perform hyperparameter tuning using the 'HyperDrive' service. You have a requirement to stop poor-performing runs early to save compute costs. Which policy should you use?
This is also valid, but Bandit is the most common answer for this scenario.
Why this answer
The 'BanditPolicy' is the standard early-termination policy that stops runs based on a slack factor/amount compared to the best-performing run.
A training job is consuming too much disk space on a compute cluster. What can you do to provide more persistent scratch space?
Mounting a Datastore provides external storage that can be used for large datasets or scratch space.
Why this answer
Mounting a Datastore or using Azure Files provides persistent, shared scratch space accessible by the compute cluster.
What is the benefit of using 'Model Catalog' in Azure AI Foundry?
This allows for rapid and standard deployment of models.
Why this answer
The Model Catalog provides a curated list of models that are pre-optimized for deployment on Azure infrastructure.
In Azure ML, what is a 'Component'?
Components are modular, reusable steps in an ML pipeline.
Why this answer
A component is a reusable, versioned building block for an ML pipeline.
You are tracking LLM performance. Which metric is most critical to monitor if your cost-per-request is increasing unexpectedly?
Token consumption is the primary driver of costs.
Why this answer
Token usage directly correlates with cost in most LLM provider pricing models.
In an LLM evaluation workflow, what does the 'Coherence' metric measure?
Coherence is specifically about the logical quality of the output.
Why this answer
Coherence measures how well a model-generated answer makes sense and flows logically as a human-like response.
Which TWO resources are created inside an Azure Machine Learning workspace?
ML resource.
Why this answer
Compute and Datastores are resources managed within the workspace.
You are running a distributed training job using the 'PyTorch' framework on Azure Machine Learning. You need to configure the 'DistributionConfiguration'. Which setting is mandatory for multi-node training?
This defines the parallel distribution parameters.
Why this answer
When using 'PyTorch' distribution, you must specify the 'process_count' or 'node_count' to correctly distribute the workload across the compute cluster.
Your team needs to share a model across different workspaces. What is the most efficient way to achieve this in Azure Machine Learning?
Registries provide cross-workspace asset management.
Why this answer
Azure Machine Learning Registries allow for the sharing of model assets, environments, and components across multiple workspaces.
You are setting up an evaluation suite for your LLM. Which THREE metrics are commonly provided by the 'Built-in' evaluators in Azure AI Prompt Flow?
Built-in metric.
Why this answer
The standard built-in metrics in Prompt Flow include Groundedness, Relevance, and Coherence.
Which TWO of the following are benefits of using Azure ML Environments?
Ensures reproducibility.
Why this answer
Environments ensure reproducibility and simplify dependency management across environments.
You need to ensure that a training script running on Azure ML has access to secrets (like API keys) without hardcoding them in the script. What should you use?
Key Vault stores secrets securely and allows the workspace to retrieve them at runtime.
Why this answer
Azure Key Vault is integrated with Azure ML to securely manage and inject secrets into training jobs.
You are deploying a high-throughput Large Language Model on Azure AI Foundry. You need to ensure the underlying infrastructure supports rapid auto-scaling based on request latency. Which configuration should you prioritize in the deployment settings?
Scaling by latency ensures infrastructure expands before performance degrades.
Why this answer
Auto-scaling for Azure AI Model Catalog deployments is managed via the 'Scale' tab, specifically targeting 'Instances' to handle request concurrency.
You are securing an agent orchestration infrastructure where agents must access internal data stores. To prevent data exfiltration, you need to restrict all traffic to the Azure AI Foundry project to a private network. What should be configured?
Private Endpoints ensure traffic stays on the Microsoft backbone and is isolated from the public internet.
Why this answer
A Private Endpoint for the Azure AI project ensures that all communication with the service happens over a private IP address within your VNet.
Which TWO types of compute can be used for training in Azure Machine Learning?
Used for large, distributed training.
Why this answer
Compute Clusters and Compute Instances are the standard training targets.
You need to attach an existing Azure Kubernetes Service (AKS) cluster to your Azure ML workspace for model inference. Which credential type is required to establish this connection?
Azure ML requires a Service Principal to manage and interact with the Kubernetes API on the attached cluster.
Why this answer
The Service Principal is the standard method for managing identity-based access for AKS clusters attached to Azure ML.
You are debugging an Azure ML pipeline. You want to see the stdout of a specific step that failed. How do you access this?
This command retrieves the logs for the specified job run.
Why this answer
You can access the logs for each step by clicking on the 'Outputs + logs' tab of that specific step run in the Azure ML Studio interface.
You are designing a quality assurance gate for your model. If a model output has a 'Violence' score of 0.8 according to Azure AI Content Safety, what is the best practice to handle it?
Blocking unsafe content is the industry standard for content safety.
Why this answer
A high score indicates a potential violation, and the output should be blocked or sanitized before reaching the end user.
What is the primary purpose of a 'Labeling Project' in Azure Machine Learning?
This is the core function of the tool.
Why this answer
Labeling projects are used to manage the process of annotating data (images, text) to create datasets for supervised learning.
You need to orchestrate a series of ML steps (Data prep, Training, Evaluation). Which Azure ML feature is specifically designed for this?
Pipelines are the standard for chaining ML tasks.
Why this answer
Azure ML Pipelines allow you to string together components into a workflow.
What is the purpose of a 'System-Assigned Managed Identity' in the context of an Azure AI project?
This is the primary purpose of managed identities.
Why this answer
Managed identities allow the project or compute resource to securely access other Azure resources (like Key Vault or storage) without managing explicit credentials.
Which Azure Machine Learning resource provides a pre-configured environment for development?
Designed for developer workstation experience.
Why this answer
A 'Compute Instance' is a managed, cloud-based development environment that comes pre-installed with the Azure ML SDK, Jupyter, and other tools.
What is the 'Workspace' in Azure Machine Learning?
This is the correct definition.
Why this answer
The Workspace is the top-level resource for Azure Machine Learning, providing a centralized place to manage all artifacts, computes, and jobs.
When designing a content safety policy, which THREE categories are explicitly supported by the Azure AI Content Safety API?
Supported category.
Why this answer
Azure AI Content Safety supports Hate, Sexual, Violence, and Self-Harm categories.
When configuring a private endpoint for your Azure AI resource, which TWO of the following must be set up?
Required for endpoint placement.
Why this answer
A private endpoint requires a target subnet and a private DNS zone for resolution.
You are troubleshooting high latency in a RAG-based application. The vector search is fast, but the generation phase is slow. Which component should be scaled?
Scaling the LLM inference instance count increases generation throughput.
Why this answer
If the generation phase is slow, you likely need to scale the LLM inference endpoint (e.g., increasing instances or provisioned capacity).
You are preparing a model for deployment. Which THREE items should you include in the model package?
The actual model.
Why this answer
Model file, environment requirements, and inference code.
What is the benefit of using 'Azure Machine Learning Datasets' (or Data Assets) over raw storage paths?
This is the primary benefit over raw URIs.
Why this answer
Data Assets allow for versioning, lineage tracking, and simplified usage across different compute targets.
Which THREE items should you keep track of in your AI Foundry project to ensure good governance?
For operational stability.
Why this answer
Governance relies on tracking tags, role assignments, and quotas.
You want to evaluate how well your model adheres to specific brand guidelines. Which evaluation method is best suited for this?
A custom evaluator can be prompted to check for specific brand style guidelines.
Why this answer
Custom evaluation using a judge model (LLM-as-a-judge) configured with a rubric allows for checking specific style or brand compliance.
You have a sudden spike in requests. What is the quickest way to check if you have hit your Azure OpenAI token quota?
This provides real-time visibility into quota usage.
Why this answer
The 'Quotas' section in the Azure AI Foundry or the Azure Portal 'Usage + Quotas' page displays current usage versus limits.
You are deploying a large model. During the deployment, you encounter a 'Resource Not Available' error. What is the most likely cause?
Capacity constraints are common for specific high-end GPU SKUs.
Why this answer
This error usually indicates that the region lacks sufficient capacity for the specific SKU requested.
You need to ensure that your LLM responses are filtered for harmful content. Which infrastructure component provides this capability?
Content Safety is the native service for content moderation in AI Foundry.
Why this answer
Azure AI Content Safety is the integrated service used within AI Foundry to monitor and filter model outputs.
You are setting up an Azure Machine Learning workspace and need to ensure that the workspace is not accessible from the public internet. Which networking feature should you configure?
A Private Endpoint provides a private IP address for the workspace, blocking public access.
Why this answer
A Private Endpoint allows you to access your workspace securely via a private IP address within your virtual network.
You are managing model lifecycle security. Which THREE actions are recommended to secure your ML models?
Secures credentials.
Why this answer
Use RBAC, Key Vault for secrets, and private endpoints for network security.
Which service allows you to track ML models and their associated artifacts?
This is the correct component.
Why this answer
The 'Azure Machine Learning Model Registry' is specifically designed to store, version, and manage models.
You are fine-tuning a model on Azure OpenAI and notice the training loss curve is fluctuating significantly. What is the most likely cause?
A high learning rate causes the model to overshoot optimal weights.
Why this answer
High learning rate in fine-tuning often causes divergence and loss fluctuations.
When sharing an AI project with a team, which resource group architecture is best practice for lifecycle management?
Single-group containment is best for lifecycle management.
Why this answer
Grouping the project, storage, and key vault in a single resource group simplifies management and deletion of the entire lifecycle.
You have an automated deployment pipeline. You want to run an integration test on the model after deployment. Which tool is best suited for this?
Standard CI/CD orchestration.
Why this answer
'Azure DevOps' (or GitHub Actions) is the industry-standard tool for orchestrating post-deployment testing as part of a CI/CD pipeline.
You are auditing your model's safety logs and notice several 'jailbreak' attempts. Where can you find these logs in the Azure ecosystem?
Log Analytics stores the data captured by Content Safety for auditing.
Why this answer
Azure AI Content Safety logs, when integrated with Azure Monitor/Log Analytics, allow for auditing and analysis of safety events.
You are experiencing throttling on your AI endpoint. Which TWO steps should you take?
Identifies the source of throttling.
Why this answer
To resolve throttling, you need to either optimize usage or increase the available quota/capacity.
You have a new model deployment that is incurring high costs. How can you find the top-consuming deployments?
Cost analysis is the standard tool for identifying spend by resource.
Why this answer
The cost analysis tool in the Azure portal allows you to group costs by 'Resource' or 'Tag' to identify top-consuming deployments.
Where do you define the model deployment settings, including instance count and version?
This is the correct navigation path for model deployments.
Why this answer
The 'Models + Endpoints' section within the Azure AI Foundry portal is where model deployments are managed.
What is the purpose of a 'Datastore' in Azure Machine Learning?
This is the definition of a Datastore.
Why this answer
A Datastore is an abstraction layer over Azure storage services (Blob, Files, ADLS) used to manage connections and data access in ML tasks.
Which TWO actions can you perform in the Azure Machine Learning studio?
Core function.
Why this answer
Experiment management and data asset management are core UI functions.
A user wants to restrict the model's output to valid JSON format. What is the most effective way to ensure this?
This feature forces the model to output valid JSON.
Why this answer
Using the 'Response Format' feature in Azure OpenAI enforces structured output, reducing parsing errors.
What is the purpose of the Azure ML 'Model Registry'?
The registry keeps track of models, versions, and lineage.
Why this answer
The Registry manages versioning and metadata of trained models.
Which of the following is a key component of an observability strategy for Generative AI applications?
Comprehensive observability covers both system health and output quality.
Why this answer
Observability requires tracking both technical metrics (latency, errors) and quality metrics (groundedness, safety).
What is the primary function of an Azure ML 'Datastore'?
Datastores act as a bridge to underlying storage, keeping credentials abstract.
Why this answer
Datastores are abstractions to securely connect to underlying data storage services like Blob storage or Data Lake.
You are troubleshooting a deployment. Which THREE logs are most helpful to check?
Shows infrastructure issues.
Why this answer
Application logs, system logs, and deployment status logs are crucial.
You are troubleshooting a failed agent deployment. Which TWO areas should you inspect first?
Indicates if the infrastructure is actually accepting requests.
Why this answer
Deployment logs and endpoint connectivity are the primary sources for identifying deployment failures.
Which THREE tools in Azure can be used to monitor the health and performance of your GenAI infrastructure?
Standard for log aggregation.
Why this answer
Application Insights, Log Analytics, and Azure Monitor are core observability tools.
Your team is deploying a large language model in Azure AI Foundry. You need to ensure that the inference endpoint remains highly available across different regions. Which configuration should you implement?
Azure Front Door is the recommended service for global HTTP load balancing across regional AI endpoints.
Why this answer
Azure AI Foundry supports multi-region endpoints via Azure Front Door or traffic manager integration to distribute requests across regional inference endpoints for high availability.
Page 1 of 3
Page 2Practice AI-300 by domain
Target a specific domain to shore up weak areas.