Courseiva

CCNA Mlops Infrastructure Questions

39 questions · Mlops Infrastructure · All types, answers revealed

1
MCQeasy

Which Azure feature is used to define infrastructure as code for your Azure ML workspace?

A.Azure Portal
B.Azure Bicep
C.PowerShell
D.Azure CLI
AnswerB

Azure Bicep is a declarative domain-specific language that compiles to ARM templates, letting you define the Azure ML workspace and its dependent resources — storage account, Key Vault, Application Insights, container registry — as versioned infrastructure as code, satisfying the stem's requirement for reproducible, template-based workspace provisioning.

Why this answer

Azure Bicep is the recommended tool for defining and deploying Azure resources as code.

2
Multi-Selectmedium

You are setting up an Azure Machine Learning workspace that must support reproducible training jobs. You need to ensure that the same code, dependencies, and data are used every time a job is rerun. Which two actions should you take? (Choose two.)

Select 2 answers
A.Pass the dataset as a local file path that points to a shared network drive outside Azure ML.
B.Register the environment as a versioned Azure ML environment asset and reference the specific version in the job.
C.Use an environment defined by a Docker image with a mutable tag such as latest.
D.Configure the job to always pull the newest model from the model registry at the start of training.
E.Register the training code as a versioned code asset and reference the specific version in the job.
AnswersB, E

A versioned environment asset captures the exact dependencies and base image used for the job. Referencing a specific version ensures that reruns use the same environment even if newer versions are created later. This is a core mechanism for reproducible training in Azure ML and complements code and data versioning.

Why this answer

Reproducibility requires pinning all inputs to immutable versions. Registering code and environments as versioned assets and referencing specific versions ensures that the same source and dependencies are used on every rerun. Data should likewise be versioned, but among the listed actions, versioning code and environment are the two that directly anchor the job to stable, immutable definitions.

Exam trap

The trap here is treating a mutable image tag or an external path as sufficient for reproducibility, when only immutable, versioned assets guarantee identical reruns.

3
MCQhard

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?

A.Modify the storage account permissions
B.Restart the compute cluster
C.Update the image tag and refresh the Environment
D.Delete and recreate the workspace
AnswerC

Azure ML resolves environments by image tag, so pushing a new tag to ACR and refreshing the Environment makes the updated image available. Reusing the old tag leaves the cached image reference unchanged, so training would keep running the previous version.

Why this answer

Azure ML references container images through Environment objects, which pin a specific image tag (or digest) from ACR. To pick up a new image, you must push the updated image with a new tag (or overwrite the tag and force a refresh), then update the Environment definition to reference that tag and re-register it. This ensures training jobs pull the correct, latest image rather than a cached older version.

Exam trap

AI-300 often tests the misconception that restarting compute or tweaking storage permissions refreshes the container image, when the actual mechanism is updating the Environment's image tag and re-registering it.

How to eliminate wrong answers

Option A is wrong because storage account permissions govern access to datasets and artifacts, not container image resolution — changing them has no effect on which image Azure ML uses. Option B is wrong because restarting the compute cluster only recycles nodes; it does not change the Environment's image reference, so the same stale image is pulled. Option D is wrong because deleting and recreating the workspace is a destructive, disproportionate action that destroys all assets, experiments, and registered models without addressing the image versioning issue.

4
Multi-Selectmedium

Which TWO of the following can be used to manage Azure ML assets like environments and models?

Select 2 answers
A.Azure Monitor
B.Azure Logic Apps
C.Azure CLI v2
D.Azure ML Studio
E.Power BI
AnswersC, D

Azure CLI v2 exposes the ml extension, whose commands create, update, list and archive workspaces, environments, models and datasets. This satisfies the asset-management requirement because it drives the same Azure ML control plane as the studio, scriptable and repeatable.

Why this answer

Azure CLI v2 (option C) is correct because it provides the `az ml` extension commands (e.g., `az ml environment create`, `az ml model register`) that let you create, register, and manage Azure Machine Learning assets such as environments and models directly from the command line. Azure ML Studio (option D) is correct because it is the web-based authoring portal where you can create, register, version, and manage environments and models through the Assets/Models and Environments pages. Azure Monitor (A) is for observability and metrics/logs, not asset lifecycle management; Azure Logic Apps (B) is a workflow automation service, not an ML asset management tool; and Power BI (E) is a business intelligence visualization tool with no role in managing Azure ML environments or models.

5
MCQeasy

In Azure ML, what is a 'Component'?

A.A storage account
B.A reusable pipeline step
C.A user role
D.A physical server
AnswerB

A Component packages code, environment and inputs into a reusable pipeline step, letting the same logic be invoked across multiple pipelines without duplication. This modular reuse is the defining characteristic distinguishing Components from one-off pipeline steps.

Why this answer

A component is a reusable, versioned building block for an ML pipeline.

6
Multi-Selecteasy

Which TWO of the following are benefits of using Azure ML Environments?

Select 2 answers
A.Network traffic filtering
B.Consistent software dependencies
C.Database optimization
D.Versioning of software stacks
E.Automatic scaling
AnswersB, D

Azure ML Environments package dependencies into a reusable definition referenced across training and scoring. This satisfies the stem's benefit by guaranteeing identical library versions wherever the environment is used, eliminating drift between local experimentation, pipelines and deployed inference endpoints.

Why this answer

Environments ensure reproducibility and simplify dependency management across environments.

7
MCQmedium

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?

A.Azure Key Vault
B.Environment variables in the Dockerfile
C.Local configuration files
D.Hardcoding in the script
AnswerA

Azure Key Vault stores secrets centrally, and Azure Machine Learning retrieves them at runtime through its workspace-linked key vault, injecting values without hardcoding. This satisfies the stem's requirement for scripts to access API keys securely without embedding them.

Why this answer

Azure Key Vault is integrated with Azure ML to securely manage and inject secrets into training jobs.

8
MCQmedium

You need to orchestrate a series of ML steps (Data prep, Training, Evaluation). Which Azure ML feature is specifically designed for this?

A.Notebooks
B.Azure ML Pipelines
C.Batch endpoints
D.AutoML
AnswerB

Azure ML Pipelines model a directed acyclic graph of discrete steps, each with its own inputs, outputs and compute, so data prep, training and evaluation run in dependency order with reusable artefacts. This orchestration is the feature purpose-built for chaining ML steps.

Why this answer

Azure ML Pipelines allow you to string together components into a workflow.

9
MCQeasy

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.Azure Bastion
B.Application Gateway
C.Private Endpoint
D.Service Tags
AnswerC

A private endpoint creates a private IP address within your virtual network for the Azure Machine Learning workspace, eliminating public internet exposure entirely. This directly satisfies the requirement that the workspace must not be accessible from the public internet, since traffic traverses the Microsoft backbone network rather than public routes.

Why this answer

A Private Endpoint creates a private IP address within your virtual network for the Azure Machine Learning workspace, effectively removing public internet exposure. It maps to a specific private link resource (e.g., 'amlworkspace') and allows secure access over the Azure backbone network. This is the correct feature to ensure the workspace is not accessible from the public internet.

Exam trap

AI-300 often tests the misconception that Azure Bastion or Application Gateway can provide private connectivity to PaaS services, when in fact Private Endpoint is the dedicated feature for that purpose.

How to eliminate wrong answers

Option A is wrong because Azure Bastion provides secure RDP/SSH access to virtual machines, not to Azure Machine Learning workspaces. Option B is wrong because Application Gateway is a web traffic load balancer and does not provide private connectivity to PaaS services. Option D is wrong because Service Tags are used in network security group rules to simplify IP range management, but they do not create private endpoints or disable public access.

10
MCQhard

You are designing a reusable Azure ML pipeline that must run a data validation step, a training step, and a registration step. The pipeline will be executed repeatedly with different input datasets, and you need each step to run in its own isolated environment with pinned dependencies. You also need the pipeline to be versioned and shareable across workspaces. What should you use to define the pipeline?

A.A pipeline that uses a single environment for all steps and passes the dataset as a pipeline parameter, with the pipeline registered as a model.
B.A YAML pipeline definition that references registered components with pinned environments, submitted with the Azure ML CLI v2.
C.A pipeline defined with the designer drag-and-drop interface and exported as a JSON file stored in a Git repository.
D.A single PythonScriptStep-based pipeline defined inline in a notebook, with all dependencies installed at the start of the notebook session.
AnswerB

A YAML pipeline definition using registered components lets each step specify its own environment with pinned dependencies, providing isolation. The pipeline itself can be registered and versioned in the workspace, and because it references components and environments by name and version, it can be shared and reproduced across workspaces that have access to those assets.

Why this answer

Registered components in a YAML pipeline definition give each step its own environment, enabling dependency isolation. The pipeline can be registered and versioned as a pipeline asset, and because it references components and environments by name and version, it can be shared and rerun across workspaces that have those assets. This satisfies isolation, versioning, and shareability in one approach.

Exam trap

The trap here is conflating pipeline versioning with model registration, when a pipeline is a separate asset type and must be registered as a pipeline, not a model.

11
MCQeasy

What is the purpose of the Azure ML 'Model Registry'?

A.Managing network access
B.Calculating accuracy metrics
C.Executing training jobs
D.Storing model version history
AnswerD

The Model Registry stores registered models with incrementing versions, lineage, tags and stage metadata, enabling reproducible deployment of a specific version. This satisfies the version-history purpose, letting teams retrieve, compare and roll back to any previously registered artefact.

Why this answer

The Registry manages versioning and metadata of trained models.

12
MCQeasy

What is the primary function of an Azure ML 'Datastore'?

A.Connection to storage services
B.Experiment tracking
C.Model registry
D.Compute resource management
AnswerA

An Azure ML datastore abstracts a storage account into a named, workspace-registered connection, holding the service endpoint and authentication credentials. This satisfies the stem's requirement for a primary function: it lets compute targets and jobs reference Azure Blob, ADLS or file shares without embedding secrets or paths in every script.

Why this answer

Datastores are abstractions to securely connect to underlying data storage services like Blob storage or Data Lake.

13
Multi-Selecteasy

Which TWO of the following storage types can be registered as an Azure ML Datastore?

Select 2 answers
A.Azure App Service
B.Azure Blob Storage
C.Azure Data Lake Storage Gen2
D.Azure Active Directory
E.Azure Bot Service
AnswersB, C

Azure Blob Storage is natively supported as an Azure ML Datastore, letting compute targets read and write training data through the workspace's credential-based connection. It satisfies the requirement that the registered storage type be a first-class datastore backend.

Why this answer

Azure Blob Storage (B) is correct because it is one of the core Azure storage services natively supported by Azure Machine Learning for registering as a datastore, allowing ML workspaces to reference blob containers for datasets, training data, and model artifacts via the azureml-core SDK or studio. Azure Data Lake Storage Gen2 (C) is also correct because it is a supported datastore type in Azure ML, providing hierarchical namespace access over blob storage for big-data analytics and ML workloads. Azure App Service (A) is a PaaS web hosting platform, not a storage service, so it cannot be registered as a datastore.

Azure Active Directory (D) is an identity and access management service, not a storage backend. Azure Bot Service (E) is a conversational AI service, not a storage service, and therefore cannot be registered as an Azure ML datastore.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

36
Multi-Selectmedium

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

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

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

Why this answer

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

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

37
Multi-Selecthard

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

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

Causes runtime import errors.

Why this answer

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

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

38
Multi-Selectmedium

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

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

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

Why this answer

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

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

Exam trap

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

39
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

Ready to test yourself?

Try a timed practice session using only Mlops Infrastructure questions.