Machine Learning Workspace Resources
The workspace and its dependent resources
A workspace is the top-level resource in Azure Machine Learning, and it is the first thing you create because every other task runs inside it: registering a dataset or model, submitting a training job, or publishing an endpoint. Treat it as the hub a team shares, with everything else on this page hanging off it, the storage it uses, the datastores that reach your data, the compute that runs your code, and the identity and roles that govern who can do what.
When you create a workspace and do not bring your own, Azure ML automatically provisions the Azure services it depends on (What is an Azure Machine Learning workspace?[1]):
- An Azure Storage account holds artifacts such as job logs and notebook files, and it is where uploaded data and job outputs land by default.
- An Azure Key Vault stores secrets and other sensitive information the workspace needs.
- Azure Application Insights collects diagnostics and monitors your inference endpoints.
- An Azure Container Registry (ACR) stores the Docker images the workspace builds. It is created lazily: only the first time you build a custom environment image or deploy an AutoML model. Until then the workspace has no ACR at all.
That ACR timing is a common trap. Because the registry appears only when a custom image is first built, a brand-new workspace legitimately has none attached, so a missing ACR is not a misconfiguration to go fix.
Hub workspaces for shared governance
A hub workspace groups several project workspaces under one set of security settings, connections, and compute, which is how a platform team centralizes governance. A hub is the same resource type as a Microsoft Foundry hub, so the same hub works from both Azure Machine Learning studio and Foundry. This is the one place where the classic ML workspace and the generative-AI side of the platform share a container. Mind the boundary the other way: a plain Foundry project is for building generative AI apps and agents and does not replace the workspace as the home for classic training assets.
One thing you cannot do: move it
A workspace cannot be moved to a different subscription, and the owning subscription cannot be moved to a new tenant (What is an Azure Machine Learning workspace?[1]). Placement is effectively permanent, so settle the subscription, resource group, and region up front. If the workspace needs to live somewhere else later, recreate it there rather than migrating it.
Datastores: connect to storage without secrets
Suppose a training script needs a CSV that lives in a Blob container. You could paste the storage connection string and account key straight into the code, but then the secret travels with every copy of the script and rotating it breaks every job. A datastore removes that problem. It is a saved reference to an existing Azure storage service, kept in the workspace, that holds the connection details and credentials once so scripts connect by a short, friendly name.
The indirection is the point: a datastore does not create storage and does not hold your data. It stores a pointer to the underlying storage plus the information needed to authenticate to it. The bytes stay in Blob, Azure Data Lake Storage (ADLS) Gen2, Files, or OneLake; the datastore is just the named, secured connection in front of them.
Storage types and how they authenticate
A datastore can target four storage services, each authenticated one of a few ways (Use datastores[2]):
| Storage service | Typical use | Credential options |
|---|---|---|
| Azure Blob Storage | General artifact and file storage | Account key, SAS token, or credential-less |
| Azure Data Lake Storage Gen2 | Hierarchical / analytics data | Service principal or credential-less |
| Azure Files | Shared file share | Account key or SAS token |
| OneLake (Microsoft Fabric) | Fabric lakehouse data | Service principal or credential-less |
A credential-less (identity-based) datastore stores no key or token at all; access uses the caller's Microsoft Entra identity at the moment the data is read. That is the pattern to reach for whenever the requirement is to connect without storing secrets. One retirement to remember: Azure Data Lake Storage Gen1 datastores are gone, because Gen1 itself retired on February 29, 2024, so use Gen2.
The default datastore
Every workspace is created with a built-in default named workspaceblobstore. Azure ML uploads data and writes job outputs there unless you point them elsewhere, so you can start working before creating any datastore of your own. Its paths take the form azureml://datastores/workspaceblobstore/paths/....
Creating an identity-based Blob datastore (CLI v2)
The YAML below defines a credential-less Blob datastore. Because it names no account_key and no sas_token, access falls back to the caller's Entra identity. Register it with az ml datastore create:
# my_blob_datastore.yml
$schema: https://azuremlschemas.azureedge.net/latest/azureBlob.schema.json
name: my_blob_ds
type: azure_blob
account_name: my_account_name
container_name: my_container_name
# no credentials: block => credential-less (identity-based) access
az ml datastore create --file my_blob_datastore.yml
Here the absent credentials block is exactly what makes the datastore identity-based. Adding an account_key or a sas_token under a credentials: key instead would make it credential-based, which stores that secret in the workspace.
Compute targets: match hardware to the workload
An environment defines the software a job needs; a compute target provides the hardware it runs on. The workspace offers several targets, and the exam almost always tests whether you can match the right one to a described workload.
Start from the split the rest of the page uses: three of these targets run training or interactive work, differing only in how much you manage, from single-node and interactive, to a multi-node cluster that autoscales per job, to fully managed with nothing to size; the other two serve a deployed model for inference. The five to recognize:
- A compute instance is a single-node managed workstation for one user, for authoring and running notebooks. It keeps billing while it is running, so its cost control is idle shutdown, not scaling to zero.
- A compute cluster (AmlCompute) autoscales between a minimum and maximum node count, giving each submitted job its own dedicated nodes (so jobs stay isolated) and de-allocating back to the minimum when idle. Set the minimum to 0 and you pay nothing between runs while still getting per-job isolation, the combination a compute instance cannot give you.
- Serverless compute goes one step further: there is no cluster to create at all. Omit the
computeparameter on a command, sweep, or AutoML job and Azure ML creates, scales, and tears down the compute for you. - A managed online endpoint runs low-latency real-time inference on Microsoft-managed compute.
- Attached Kubernetes (Azure Kubernetes Service or Arc-enabled) serves high-scale or on-premises and edge inference on a cluster you own and patch.
Autoscaling and low-priority cost control
Two levers keep training compute cheap. The first is scale-to-zero. On a compute cluster, setting min_instances: 0 lets Azure ML de-allocate every node when no job is running, so an idle cluster costs nothing (Create compute clusters[3]); any minimum above 0 keeps that many nodes billing even while idle. The second is discounted capacity. Training and batch compute can run on Azure's surplus low-priority (Spot) capacity, which is much cheaper but can be evicted mid-job. On a compute cluster you request it with tier: low_priority; on serverless you set queue_settings.job_tier: Spot. Real-time serving (managed online endpoints, Azure Container Instances, and AKS) has no low-priority tier.
Creating an autoscaling low-priority cluster (CLI v2)
This spec creates an AmlCompute cluster that scales from 0 to 2 nodes and runs on low-priority VMs. The min_instances: 0 line is what enables zero idle cost, and tier: low_priority is what selects Spot capacity. Register it with az ml compute create:
# create-cluster.yml
$schema: https://azuremlschemas.azureedge.net/latest/amlCompute.schema.json
name: low-pri-example
type: amlcompute
size: STANDARD_DS3_v2
min_instances: 0
max_instances: 2
idle_time_before_scale_down: 120
tier: low_priority
az ml compute create --file create-cluster.yml
Serverless: the no-infrastructure answer
When a scenario says to run training jobs without provisioning or managing infrastructure, the answer is serverless compute, reached by omitting the compute target, not a compute cluster, Azure Container Instances, AKS, or local compute (Model training on serverless compute[4]). Serverless still consumes the same Azure ML compute quota, and if you also leave out the resources block, it defaults the instance count and picks an instance_type from your quota so the job does not fail on an insufficient-quota error. For a pipeline job you select it by setting the pipeline's default_compute to serverless (azureml:serverless in CLI YAML).
Identity and access: least privilege by design
Access to a workspace is governed by Azure role-based access control (Azure RBAC), and the exam rewards choosing the narrowest role that still lets a person do their job. Azure ML ships built-in roles tuned for exactly that (Manage roles in your workspace[5]):
| Built-in role | What it grants |
|---|---|
| AzureML Data Scientist | Every action in the workspace except creating or deleting compute, and except modifying the workspace itself |
| AzureML Compute Operator | Create, manage, delete, and access compute |
| AzureML Registry User | Read, write, and delete assets in a registry, but not create or delete the registry resource |
| Reader / Contributor / Owner | The general Azure roles: view only; full management without role assignment; and full control including role assignment |
The intended pattern combines the two narrow roles: grant a data scientist AzureML Data Scientist plus AzureML Compute Operator and they can run experiments and self-serve compute without ever holding Owner or Contributor. Reaching for Owner or Contributor just to let someone work is the classic over-privileging mistake.
The workspace's own identity
Users are not the only principal that needs access; the workspace itself must reach its dependent Storage, Key Vault, and Container Registry. It does so with a managed identity (system-assigned by default, or user-assigned if you supply one), so no credential is embedded anywhere (Set up authentication between Azure Machine Learning and other services[6]). A managed identity is a service principal whose certificate Azure creates and rotates for you, and it comes in two forms: system-assigned, tied to the workspace's lifecycle and deleted with it, and user-assigned, a standalone resource you can share across workspaces.
The scope of that identity changed for the better. For workspaces created after 2024-11-19, the system-assigned identity is granted the Azure AI Administrator role on the resource group, a role scoped to just what the workspace needs. Workspaces created before that date received the broader Contributor role instead, and Microsoft recommends converting them (with the az ml workspace update --allow-roleassignment-on-rg true command) to the narrower role (Manage roles in your workspace[5]). Prefer this scoped managed-identity model over embedding credentials or handing out blanket Contributor access.
Exam-pattern recognition
The workspace-resources questions are mostly of one shape: pick the single best resource for a stated requirement. The stems become easy once you map the trigger phrase to the resource.
- Run training jobs without provisioning or managing infrastructure points to serverless compute (omit the compute target). Distractors offering a compute cluster, Azure Container Instances, AKS, or local compute all still make you size or manage something.
- Isolated per-job compute at zero cost when idle is a compute cluster with
min_instances: 0. A compute instance is wrong because it bills while running and only idle-shuts-down; a fixed-size cluster is wrong because a minimum above 0 keeps billing. - Least-privilege role so a data scientist can run experiments is AzureML Data Scientist (add AzureML Compute Operator if they must create compute). Owner and Contributor are the over-privileged distractors.
- Connect to storage without storing keys or secrets is a credential-less (identity-based) datastore, which uses the caller's Entra identity. Account-key and SAS-token datastores are the tempting but wrong answers.
- The workspace needs to build a custom Docker image is when the Azure Container Registry is created; a stem implying the registry should already exist on a fresh workspace is testing the lazy-creation fact.
- Top-level container for classic ML training assets is the workspace, not a Foundry project; the Foundry project is for generative-AI apps and agents.
- Move the workspace to another subscription has no valid do-it answer; the correct response is that it is not supported, so you recreate it in the target.
Across all of these the meta-pattern is least privilege and least management: choose the resource or role that meets the requirement with the least standing cost, the least infrastructure to babysit, and the narrowest permissions.
Compute target selection
| Decision criterion | Compute instance | Compute cluster (AmlCompute) | Serverless compute | Managed online endpoint | Attached Kubernetes (AKS/Arc) |
|---|---|---|---|---|---|
| Node topology | Single node, one user | Multi-node, autoscales per job | Managed, on-demand nodes | Microsoft-managed compute | Customer-managed cluster |
| Scales to zero when idle | No (idle shutdown stops it) | Yes (set min nodes to 0) | Yes (fully managed) | Autoscale via Azure Monitor | Only within the fixed cluster |
| Low-priority / Spot tier | No | Yes (tier: low_priority) | Yes (job_tier: Spot) | No | No |
| Primary use | Interactive notebooks | Training and batch jobs | Training with no cluster to manage | Real-time online inference | High-scale or edge inference |
| Who manages the hardware | You start and stop the VM | You set min and max nodes | Azure manages everything | Azure manages everything | You own nodes and OS patching |
Decision tree
Sharp facts the exam loves — give these one last read before exam day.
Cheat sheet
Sharp facts the exam loves — scan these before test day.
- The workspace is the top-level Azure ML resource created first
The Azure Machine Learning workspace is the top-level resource and the centralized place where teams collaborate and where assets (datasets, models, components, environments, and jobs) are created and stored. Because every other Azure ML task (registering data or models, running jobs, creating endpoints) happens inside a workspace, a shared workspace must be provisioned first.
Trap A Microsoft Foundry project is for building generative AI apps and agents, not the top-level container for classic Azure ML training assets, so it does not replace the workspace.
14 questions test this
- An MLOps engineer must give a data science team one Azure Machine Learning resource that both organizes their assets — datasets, models, components, environments, and jobs — and also hosts the resourc
- A machine learning team wants one Azure resource that groups all their related work and keeps a history of every training run, including logs, metrics, output, lineage metadata, and a snapshot of the
- A team lead wants one Azure Machine Learning resource per project that acts as the boundary for role-based access control, per-project cost reporting, and data isolation, and that is also the place wh
- A machine learning team wants a single Azure resource that automatically keeps a history of every training run, including logs, metrics, outputs, lineage metadata, and a snapshot of the scripts, and t
- A company already uses Microsoft Foundry to build generative AI agents and chat applications. A separate data science team now wants to begin classic machine learning work: they need one centralized,
- An architect is about to create Azure Machine Learning resources for one small data science team that will run a single project. To 'future-proof' the setup, the architect suggests creating a hub work
- A data science team is adopting Azure Machine Learning. They have an Azure subscription but no Azure Machine Learning resources yet, and they need a single place to register data assets, run training
- A team is planning its first real-time inference service in Azure Machine Learning and intends to deploy a model to a managed online endpoint. They realize that the endpoint, the registered model it s
- A single data science team is starting its first and only machine learning project and simply needs a top-level resource where members can collaborate and organize their datasets, models, and jobs. An
- An organization wants to share a curated set of models, environments, and components across several Azure Machine Learning workspaces in different regions by using an Azure Machine Learning registry.
- A data scientist is given an empty Azure subscription and is asked to register a training dataset as a data asset and then run the team's first model-training job in Azure Machine Learning. No Azure M
- You are the MLOps lead onboarding a new project. Before your data scientists can register data assets, author reusable training pipelines, log models with MLflow, or attach compute, they need the sing
- An engineer needs to create an Azure Machine Learning compute cluster so the team can run training jobs on autoscaling nodes. When the engineer starts to create the cluster, they are prompted to selec
- A team has an Azure subscription and installs the Azure CLI ml extension (v2), expecting to immediately register data assets and submit training jobs. Their commands fail because every az ml operation
- Workspace auto-provisions its associated Azure resources
If you do not supply them, creating a workspace automatically provisions the associated resources it depends on: an Azure Storage account and an Azure Key Vault, plus Application Insights for endpoint monitoring. An Azure Container Registry (ACR) is created lazily, only the first time you build a custom Docker image.
Trap ACR is not always created up front; a workspace can exist without an ACR until a custom environment image is built.
13 questions test this
- You are documenting what happens when a colleague creates an Azure Machine Learning workspace in the Azure portal using default options and supplies none of the dependent resources. You need to state
- A new Azure Machine Learning workspace is created without specifying dependent resources. By default, the workspace uses one of its automatically provisioned associated resources to store machine lear
- Your Azure Machine Learning workspace was created with its default associated resources. You deploy a model to an online endpoint and now need to monitor the endpoint and collect diagnostic informatio
- For cost and quota planning before you deploy an Azure Machine Learning workspace, you must document every additional Azure resource the workspace will create by default and note which one is deferred
- A governance policy requires your team to use a specific, pre-approved Azure Storage account and Azure Key Vault for a new Azure Machine Learning workspace, rather than letting Azure create brand-new
- Immediately after creating a new Azure Machine Learning workspace with default settings, an administrator opens the resource group and sees an auto-created storage account, key vault, and Application
- When you create an Azure Machine Learning workspace without bringing your own resources, one associated resource is provisioned to help you monitor and collect diagnostic information from your inferen
- You are creating an Azure Machine Learning workspace with the Azure CLI ml extension and you do not specify any dependent resources in the command. To plan the deployment, you need to know which assoc
- Shortly after an engineer provisions a new Azure Machine Learning workspace without specifying dependent resources, a teammate notices there is no Azure Container Registry in the resource group, even
- A new Azure Machine Learning workspace was created with all default settings, so its dependent resources were auto-provisioned. A data scientist uploads data and later runs several jobs, then notices
- A data science team creates an Azure Machine Learning workspace with default settings and later builds a custom training environment as a Docker image. They want to know which of the workspace's autom
- An Azure Machine Learning workspace has been running for weeks with a storage account, key vault, and Application Insights, but no Azure Container Registry has ever appeared in its resource group. A d
- A governance team must reuse an existing corporate Azure Storage account and Azure Key Vault that are already hardened for compliance, rather than letting a new Azure Machine Learning workspace spin u
A hub workspace groups multiple project workspaces under shared security settings, connections, and compute; it is the same resource type as a Microsoft Foundry hub, so it can be used from both Azure ML studio and Foundry. A workspace cannot be moved to a different subscription or tenant.
- A datastore references existing storage and secures its credentials
A datastore is a reference to an existing Azure storage service; it does not create or copy the storage. It securely keeps the connection information and credentials in the workspace so scripts connect by a friendly datastore name instead of embedding storage connection strings and secrets in code.
Trap A datastore does not hold the data itself; it stores a pointer plus credentials to the underlying Blob, ADLS, or File storage.
12 questions test this
- Your security team rotates the account key on an Azure Storage account. Immediately afterward, every Azure Machine Learning training job that reads a container through a key-based datastore starts fai
- During onboarding, a data scientist wants the single Azure Machine Learning resource whose job is to hold the connection information and credentials for an existing storage service, so that team membe
- When you register an Azure Machine Learning datastore that uses an account key or SAS token for a storage service, the connection secret must be protected rather than left in plain configuration. Your
- A security policy forbids storing any storage account keys or SAS tokens in your Azure Machine Learning workspace, and requires that data access be authorized using each caller's own Microsoft Entra i
- You register a credential-less (identity-based) Azure Machine Learning datastore to an existing Azure Blob container so that no account key or SAS token is stored in the workspace. When a training job
- Your data science team keeps its training data in an existing Azure Blob Storage container and wants Azure Machine Learning jobs to read it. Before any jobs run, a colleague asks whether registering a
- An MLOps engineer registered an Azure Machine Learning datastore that points to an existing Azure Blob Storage container. Because another team now owns that container, you want to remove the datastore
- You want Azure Machine Learning jobs to connect to an entire existing Azure Blob Storage account by a friendly name, storing its connection details and credentials once so any script can reach the acc
- After you create an Azure Machine Learning datastore that points to an existing Azure Data Lake Storage Gen2 filesystem, a teammate assumes the workspace now contains a second copy of all that data an
- Across an Azure Machine Learning project, several training scripts each embed a different raw storage connection string to reach the same blob container, which is error-prone and leaks secrets. You wa
- Several data scientists on your team each maintain their own copy of the Azure Storage account key in personal notebooks to reach the same training data, causing duplicated secrets and inconsistent ac
- Your Azure Machine Learning workspace already has a datastore that connects to a blob container of curated data. The team now wants a single, named, versioned reference to one specific training file,
- Datastore storage types and credential options
Datastores connect to Azure Blob Storage, Azure Data Lake Storage Gen2, Azure Files, and OneLake (Microsoft Fabric). Each is authenticated with an account key, a SAS token, or a service principal, or created credential-less for identity-based (Microsoft Entra) access. Data Lake Storage Gen1 datastores retired in February 2024.
Trap A credential-less (identity-based) datastore uses the caller's Entra identity at access time rather than a stored account key or SAS token.
10 questions test this
- A team keeps training data in an Azure file share and needs an Azure Machine Learning datastore to connect to it. During design review, a colleague asks which authentication options an Azure Files dat
- You are creating an Azure Data Lake Storage Gen2 datastore and cannot use identity-based access because the workspace must authenticate with a stored credential. During setup you must choose a credent
- A data science team wants their Azure Machine Learning jobs to read files that live in a Microsoft Fabric lakehouse, in its Files area, without copying that data into a separate Azure storage account.
- A security policy forbids storing any storage account keys or SAS tokens in your Azure Machine Learning workspace, and requires that data access be authorized using each caller's own Microsoft Entra i
- You register a credential-less (identity-based) Azure Machine Learning datastore to an existing Azure Blob container so that no account key or SAS token is stored in the workspace. When a training job
- A data science team already keeps curated training files on an existing Azure storage service that is exposed as an SMB file share, which their compute mounts as a network drive. They want to register
- A team keeps the data they want for training in an Azure SQL Database. They ask you to register that database directly as an Azure Machine Learning datastore so jobs can read the rows by a friendly na
- You are reviewing an older runbook that instructs engineers to register an Azure Data Lake Storage Gen1 account as an Azure Machine Learning datastore. Because you can no longer create new datastores
- Your Azure Machine Learning workspace already uses its built-in default datastore, but a new project needs the workspace to also read data from a separate, pre-existing Azure Data Lake Storage Gen2 ac
- A partner team must be granted time-limited, delegated read access to a single Azure Blob container through an Azure Machine Learning datastore, without sharing the storage account key and without rel
- workspaceblobstore is the default datastore
Every workspace is created with built-in default datastores; workspaceblobstore is the default that Azure ML uses when you upload data or write job outputs (path form azureml://datastores/workspaceblobstore/paths/...). Create additional datastores with az ml datastore create --file .
Trap Uploaded data and job outputs land in workspaceblobstore by default; you do not have to create a datastore first to start working.
4 questions test this
- A new Azure Machine Learning workspace was just created and no custom datastores have been added yet. A data engineer uploads a training dataset and later runs a job that writes outputs, without speci
- Your Azure Machine Learning workspace already has its built-in workspaceblobstore, but a new project must read data from a separate, existing Azure Blob container in a different storage account owned
- Your Azure Machine Learning workspace already uses its built-in default datastore, but a new project needs the workspace to also read data from a separate, pre-existing Azure Data Lake Storage Gen2 ac
- During a training job in Azure Machine Learning, the pipeline writes its output files but the author did not specify any datastore in the output path. You need to know exactly which built-in datastore
- Autoscaling compute clusters isolate jobs and scale to zero
An Azure ML compute cluster (AmlCompute) autoscales between its minimum and maximum node counts, provisioning dedicated nodes per submitted job (so workloads stay isolated) and de-allocating back to the minimum when idle. Setting the minimum node count to 0 means you pay nothing between runs.
Trap A fixed-size cluster (minimum nodes greater than 0) keeps billing while idle; only autoscale-to-zero satisfies both per-job isolation and zero idle cost.
8 questions test this
- An MLOps lead worries that letting several data scientists submit training jobs to one shared Azure Machine Learning compute cluster will make the jobs interfere by running on the same nodes. The team
- A research group shares a single Azure Machine Learning workspace and submits unpredictable bursts of independent training jobs during business hours, but the workspace sits completely idle for long s
- A team needs to run distributed training jobs that spread across multiple nodes and automatically add nodes when a job starts, then release them when it finishes, while being shareable across several
- Your data science team runs several independent training jobs each day on an Azure Machine Learning compute cluster that was created with its minimum node count set equal to its maximum. Finance repor
- Your data science team submits bursts of independent retraining jobs to an Azure Machine Learning workspace each night, and nothing runs during the day. You must give each job its own dedicated nodes
- Your Azure Machine Learning workspace already uses an AmlCompute cluster for training, but finance flags that it keeps billing even on weekends when no jobs run because it was created with a minimum n
- To speed up job start times, an engineer configured a training compute cluster with a high minimum node count, so the cluster now runs those nodes continuously. Leadership wants each submitted job to
- You are provisioning an Azure Machine Learning compute cluster for a workload that submits many short, independent training jobs throughout the business day but sits unused overnight and on weekends.
- Compute clusters support low-priority (Spot) VMs
A compute cluster can be set to the low-priority (Spot) VM tier to run training and batch workloads on Azure surplus capacity at a steep discount. Compute instances, Azure Container Instances, and AKS inference do not offer a low-priority tier.
Trap Low-priority/Spot discounting applies to training and batch compute clusters, not to AKS or ACI real-time inference.
7 questions test this
- An MLOps engineer runs a nightly batch-scoring job in Azure Machine Learning that tolerates interruption and can be safely resubmitted if a node is reclaimed. To cut cost, the compute must run on Azur
- A cost-conscious engineer wants the low-priority (Spot) discount applied to the single-node compute instance they use for daily interactive development, so their idle notebook time becomes cheaper. Be
- A team runs its model-training jobs on Azure Machine Learning serverless compute so it never has to create or manage a cluster. The jobs are fault-tolerant and checkpoint regularly, and the team now w
- A team wants to minimize the cost of a long deep-learning training job in Azure Machine Learning. The job writes checkpoints periodically and can safely resume if a node is reclaimed, and the team is
- To reduce spend, an MLOps engineer wants to move eligible workloads onto Azure's discounted low-priority (Spot) surplus-capacity virtual machines, accepting that a node may be evicted at any time. The
- Your data science team runs several independent training jobs each day on an Azure Machine Learning compute cluster that was created with its minimum node count set equal to its maximum. Finance repor
- Your Azure Machine Learning workspace already uses an AmlCompute cluster for training, but finance flags that it keeps billing even on weekends when no jobs run because it was created with a minimum n
- Match the compute target type to the workload
A compute instance is a single-node managed dev workstation for one user (with idle shutdown); a compute cluster (AmlCompute) is multi-node autoscaling training and batch compute; managed online endpoints run on Microsoft-managed compute; attached Kubernetes (AKS or Arc) serves high-scale production inference; serverless compute is Microsoft-managed with no cluster to create.
Trap A compute instance is for interactive development, not distributed training or production serving.
20 questions test this
- An analytics team must score tens of millions of records from files once a night in Azure Machine Learning. The workload is asynchronous and not latency-sensitive, needs to run in parallel across mult
- A data scientist joining your Azure Machine Learning workspace needs a personal, fully managed cloud workstation to write and run notebooks interactively in Jupyter and VS Code while exploring a datas
- An MLOps lead worries that letting several data scientists submit training jobs to one shared Azure Machine Learning compute cluster will make the jobs interfere by running on the same nodes. The team
- A team registers a model and must expose it as a customer-facing service that returns synchronous, low-latency predictions over HTTPS at production scale. A colleague proposes hosting the service on a
- You author a multi-step training pipeline in Azure Machine Learning and want every step to run without creating, sizing, or maintaining any compute cluster, letting Azure provision and tear down the c
- An MLOps engineer runs a nightly batch-scoring job in Azure Machine Learning that tolerates interruption and can be safely resubmitted if a node is reclaimed. To cut cost, the compute must run on Azur
- A cost-conscious engineer wants the low-priority (Spot) discount applied to the single-node compute instance they use for daily interactive development, so their idle notebook time becomes cheaper. Be
- A company must serve a registered model for real-time inference to production users in Azure and wants Azure Machine Learning to manage the underlying serving compute so the team avoids operating its
- An MLOps team has a registered model and needs to serve it for synchronous, low-latency real-time predictions over HTTPS. They want Microsoft to provision, scale, patch, and secure the underlying comp
- A research group shares a single Azure Machine Learning workspace and submits unpredictable bursts of independent training jobs during business hours, but the workspace sits completely idle for long s
- A team needs to run distributed training jobs that spread across multiple nodes and automatically add nodes when a job starts, then release them when it finishes, while being shareable across several
- A newly onboarded data scientist needs a personal, fully managed cloud workstation in the Azure Machine Learning workspace where they alone can open notebooks in Jupyter and VS Code, prototype models
- A team wants to minimize the cost of a long deep-learning training job in Azure Machine Learning. The job writes checkpoints periodically and can safely resume if a node is reclaimed, and the team is
- To reduce spend, an MLOps engineer wants to move eligible workloads onto Azure's discounted low-priority (Spot) surplus-capacity virtual machines, accepting that a node may be evicted at any time. The
- An engineer is about to create and configure a new compute cluster - choosing a VM size, minimum and maximum node counts, and an idle timeout - just to run a single command training script one time. T
- Your data science team submits bursts of independent retraining jobs to an Azure Machine Learning workspace each night, and nothing runs during the day. You must give each job its own dedicated nodes
- An MLOps engineer must run a one-off command training job in Azure Machine Learning but wants to avoid creating, sizing, scaling, or maintaining any compute infrastructure, and wants Azure to pick an
- Several data scientists in one Azure Machine Learning workspace each submit their own independent training jobs throughout the day. Instead of every person creating and maintaining their own compute,
- Your company must serve a model for real-time inference from its own existing Kubernetes cluster running in an on-premises datacenter, because data-residency rules prevent hosting the endpoint on Micr
- A team's training jobs on a hand-configured Azure Machine Learning compute cluster keep failing to start because the VM size they hard-coded exceeds their available core quota. They want Azure Machine
- Serverless compute runs training jobs with no cluster and quota-aware VM sizing
Serverless compute is a fully managed, on-demand compute that Azure Machine Learning creates, scales, and tears down for you, so there is no cluster to create or manage. You run a command, sweep, or AutoML job on it simply by omitting the compute parameter (for a pipeline job, set default_compute to "serverless"), and if you also leave out resources it defaults the instance count and picks an instance_type using your quota, cost, performance, and disk size, so it selects an appropriate VM size from your quota to avoid insufficient-quota failures.
Trap Reaching for a compute cluster, Azure Container Instances, AKS, or local compute for a 'run training jobs without provisioning or managing infrastructure' scenario; omitting the compute target to use serverless is the no-management answer, and it consumes the same Azure ML compute quota with no min/max node cluster to size.
8 questions test this
- A data scientist joining your Azure Machine Learning workspace needs a personal, fully managed cloud workstation to write and run notebooks interactively in Jupyter and VS Code while exploring a datas
- You author a multi-step training pipeline in Azure Machine Learning and want every step to run without creating, sizing, or maintaining any compute cluster, letting Azure provision and tear down the c
- A team runs its model-training jobs on Azure Machine Learning serverless compute so it never has to create or manage a cluster. The jobs are fault-tolerant and checkpoint regularly, and the team now w
- An MLOps engineer authors a multi-step Azure Machine Learning pipeline for training and evaluation and wants every step to run on fully managed, on-demand compute so no one has to create or attach a c
- An engineer is about to create and configure a new compute cluster - choosing a VM size, minimum and maximum node counts, and an idle timeout - just to run a single command training script one time. T
- An MLOps engineer must run a one-off command training job in Azure Machine Learning but wants to avoid creating, sizing, scaling, or maintaining any compute infrastructure, and wants Azure to pick an
- A team's training jobs on a hand-configured Azure Machine Learning compute cluster keep failing to start because the VM size they hard-coded exceeds their available core quota. They want Azure Machine
- Your team's training jobs on Azure Machine Learning repeatedly fail because the fixed compute cluster requests a VM size for which the subscription has insufficient quota. You want Azure Machine Learn
- Built-in AzureML RBAC roles
Azure ML provides built-in roles: AzureML Data Scientist can perform all workspace actions except creating/deleting compute or modifying the workspace itself; AzureML Compute Operator can create, manage, delete, and access compute; plus Reader, Contributor, and Owner. Combine AzureML Data Scientist and AzureML Compute Operator to let a user run experiments and self-serve compute.
Trap Granting Owner or Contributor over-privileges a data scientist; AzureML Data Scientist is the least-privilege built-in role for running experiments.
9 questions test this
- A review finds that a junior data scientist was granted the Contributor role on the resource group that contains your Azure Machine Learning workspace so she could start running training jobs. Securit
- A data scientist on your team must run experiments, submit training jobs, and register models inside an existing Azure Machine Learning workspace, but company policy says the person must not be able t
- Your workspace has a large, frequently changing group of data scientists, and managing an individual role assignment for each person has become error-prone and is approaching the Azure subscription li
- Data scientists on your team must be able to run experiments and manage models in an Azure Machine Learning workspace, and they also need to create, resize, and delete their own compute clusters on de
- In your Azure Machine Learning workspace, one operations engineer is responsible solely for provisioning and lifecycle of compute: creating compute clusters and compute instances, resizing them, and d
- A senior data scientist needs to run experiments and submit jobs in an Azure Machine Learning workspace and must also be able to create and delete her own compute clusters on demand, so she is not blo
- A newly created Azure Machine Learning workspace uses its system-assigned managed identity to manage the dependent resources in its resource group, such as the storage account, key vault, and containe
- A platform engineer is responsible only for provisioning and maintaining the compute clusters and compute instances in an Azure Machine Learning workspace for the data science team. The engineer shoul
- A DevOps engineer supporting an Azure Machine Learning project needs to create experiments, create and attach compute clusters, submit runs, and deploy models as web services throughout the workspace.
- The workspace uses a managed identity for dependent resources
The workspace uses a managed identity (system-assigned by default, or user-assigned) to reach its dependent resources such as storage, key vault, and ACR. For workspaces created after 2024-11-19 that identity is granted the Azure AI Administrator role on the resource group, which is narrower (least-privilege) than the older Contributor default.
Trap Prefer scoped Azure RBAC roles and the workspace managed identity over embedding credentials or granting broad Contributor access.
12 questions test this
- When your Azure Machine Learning workspace stores job logs, reads data, and retrieves secrets, it must authenticate to its dependent Azure resources such as the storage account, key vault, and contain
- Three Azure Machine Learning workspaces in your division must share the same storage account and container registry. The security team wants a single identity whose lifecycle is managed independently
- Your platform team notices that new Azure Machine Learning workspaces assign the Azure AI Administrator role, rather than the older Contributor role, to each workspace's system-assigned managed identi
- A colleague is documenting how a newly created Azure Machine Learning workspace communicates with the other Azure services it depends on, such as the storage account and key vault, before any custom c
- Your organization's security policy requires disabling the admin user account on the Azure Container Registry that your Azure Machine Learning workspace uses to store training and inference images. Wi
- You deploy a model to a managed online endpoint in Azure Machine Learning. At inference time, the scoring script must read reference data from an Azure Storage account and fetch a secret from a key va
- Your organization provisions a new Azure Machine Learning workspace this quarter. During a security review, an architect asks which role the workspace's system-assigned managed identity is granted on
- A newly created Azure Machine Learning workspace uses its system-assigned managed identity to manage the dependent resources in its resource group, such as the storage account, key vault, and containe
- A regulated project stores confidential training data in Azure Blob Storage, and policy says the individual data scientists must not be granted direct access to that data. Even so, their training jobs
- An Azure Machine Learning workspace must reach its associated storage account, key vault, and container registry to run jobs and store artifacts. Your security team forbids storing any storage account
- Your team provisions a single, standalone Azure Machine Learning workspace for one data science group. The workspace must authenticate to its dependent storage account, key vault, and container regist
- A datastore in your Azure Machine Learning workspace currently caches the storage account key in the workspace key vault so jobs can reach the data. Your security team is concerned that any workspace
Also tested in
References
- What is a workspace? - Azure Machine Learning
- Use datastores - Azure Machine Learning
- Create compute clusters - Azure Machine Learning
- Model Training on Serverless Compute - Azure Machine Learning
- Manage roles in your workspace - Azure Machine Learning
- Set up service authentication - Azure Machine Learning