Azure Machine Learning interview questions in 2026 test whether you can run the full model lifecycle on Azure with SDK v2 and CLI v2: data assets, jobs and pipelines, MLflow tracking, registries, managed online and batch endpoints, monitoring, private networking and cost control. Interviewers also expect you to know where Azure ML stops and Microsoft Foundry starts, because generative AI apps and agents now live mostly in Foundry. This guide works through 60 commonly asked questions, from fundamentals to production scenarios, with answers written the way a senior ML platform engineer would give them.
How to use this guide. Different levels are probed differently:
- Freshers and data science graduates: the workspace, compute types, data assets, jobs, AutoML and the difference between online and batch endpoints. Have one end-to-end project you can explain.
- Data scientists and ML engineers: pipelines and components, sweeps, MLflow, the model registry, safe rollout, model monitoring and the Responsible AI dashboard.
- Senior, platform and architect roles: registries across dev, test and prod, managed virtual networks, identity design, quota and cost governance, migration from v1, and how Azure ML fits beside Foundry in an enterprise AI estate.
Microsoft changes names and retires features often. Where something was renamed or retired, this guide says so. Check current documentation on Microsoft Learn before an interview.
Contents
- Fundamentals (Q1 to Q6)
- Data (Q7 to Q11)
- Training and AutoML (Q12 to Q18)
- MLOps (Q19 to Q24)
- Deployment (Q25 to Q31)
- Responsible AI and monitoring (Q32 to Q35)
- GenAI with Foundry vs Azure ML (Q36 to Q39)
- Security (Q40 to Q44)
- Cost (Q45 to Q48)
- Real-world scenarios (Q49 to Q60)
- Key takeaways
- Interview preparation checklist
- FAQ
Fundamentals
1. What is Azure Machine Learning, and who is it for?
Answer: Azure Machine Learning is Microsoft's managed service for the machine learning lifecycle: preparing data, training and tuning models, tracking experiments, registering models, deploying them to endpoints and monitoring them in production. It is aimed at data scientists, ML engineers and platform teams who need that lifecycle to be repeatable, secure and auditable. You can train models built in open-source frameworks such as PyTorch, TensorFlow, scikit-learn, XGBoost and LightGBM, or use AutoML. The interfaces are Azure ML studio (the web UI), the Python SDK v2 (azure-ai-ml), the Azure CLI ml extension (CLI v2) and the REST APIs.
2. What are the core resources and assets in an Azure ML workspace?
Answer: The workspace is the top-level resource. It organises everything and holds the access controls. Around it sit associated Azure resources: a storage account, a key vault, a container registry and Application Insights. Inside the workspace you work with:
- Compute: compute instances, compute clusters, serverless compute, attached Kubernetes and serverless Spark.
- Datastores: references to existing storage, such as Blob, ADLS Gen2 and Azure Files.
- Data assets: versioned, named pointers to data.
- Environments: versioned Docker images plus Conda or pip dependencies.
- Components: reusable, versioned pipeline steps.
- Jobs: command, sweep, pipeline, AutoML, parallel and Spark jobs.
- Models: versioned entries in the model registry.
- Endpoints and deployments: online and batch.
Connections store credentials for external services.
Real-world example: The old v1 vocabulary of "experiments, runs and pipelines" and "datasets" still shows up on resumes. In v2, these are unified as jobs and data assets. Use the v2 terms in interviews.
3. What is the status of SDK v1 and CLI v1, and why does it matter?
Answer: Microsoft's upgrade guide says CLI v1 support ended on 30 September 2025. SDK v1 (the azureml-core family) was deprecated on 31 March 2025, and its support ended on 30 June 2026. Existing v1 code keeps running, but it gets no fixes and can break if the product changes. New features ship only in v2. The workspace itself does not need upgrading, because v1 and v2 are client interfaces to the same service. Models, environments, compute and datastores created in v1 are usable from v2. v1 datasets map into v2 types: FileDataset becomes uri_folder and TabularDataset becomes mltable. The reverse does not work.
Interview tip: If you show v1 code such as Workspace.from_config(), ScriptRunConfig or HyperDriveConfig, say that you know the v2 equivalents: MLClient, command() and sweep jobs. That one sentence signals that your knowledge is current.
4. Compare compute instances, compute clusters and serverless compute.
Answer:
| Compute | Purpose | Key behaviour |
|---|---|---|
| Compute instance | Personal dev box: notebooks, VS Code, terminal | Single VM. It stays on until stopped, so use idle shutdown and start/stop schedules. |
| Compute cluster (AmlCompute) | Training and batch jobs | Autoscales between minimum and maximum nodes. Set the minimum to zero to avoid idle cost. |
| Serverless compute | Training jobs without managing a cluster | Omit compute and Azure ML creates, scales and removes compute per job. You can set the instance type and count. It uses the same quota and billing as AmlCompute. |
| Kubernetes (AKS or Arc) | Training or inference on your own cluster | You manage the cluster. It suits teams with existing Kubernetes operations. |
Serverless compute supports command, sweep, AutoML, parallel and pipeline jobs. It supports user identity or the workspace's user-assigned managed identity, but not a system-assigned identity.
5. What is an environment, and when would you build a custom one?
Answer: An environment is a versioned definition of the software a job or deployment runs in: a base Docker image plus Conda or pip dependencies, or a full Dockerfile or build context. Curated environments are Microsoft-maintained images for common frameworks. Custom environments are yours. Build a custom one when you need pinned library versions, OS packages, internal wheels or a hardened base image. Environments are built into images in the workspace container registry and cached, so a dependency change triggers a rebuild.
Production consideration: Pin versions. "Latest" in a training environment is the most common cause of "it trained last month but fails today". Microsoft patches base images, but a deployment uses a patched image only after you redeploy it.
6. Walk me through the end-to-end Azure ML lifecycle.
Answer: Here is a sequence that matches how production teams work:
Data in ADLS/Blob -> datastore -> data asset (v1, v2)
|
Pipeline job: prep -> train (sweep) -> evaluate
| (MLflow logs metrics + model)
Register model (workspace) -> promote to registry
|
Online endpoint: blue 100 / green 0 -> mirror
| -> gradual traffic shift
Data collection -> model monitor -> alert
|
Event Grid / schedule -> retraining pipeline
Lineage links each deployment back to the model version, job, code snapshot, environment and data version.
Data
7. What is the difference between a datastore and a data asset?
Answer: A datastore is a reference to an existing storage service. It holds connection information so that scripts do not contain secrets. Supported types are Azure Blob, Azure Files and ADLS Gen1 and Gen2. A data asset is a named, versioned pointer to a specific path, like a bookmark. It records the location and metadata but does not copy the data, so it adds no storage cost. You reference a data asset as azureml:customer_txn:3 and a datastore path as azureml://datastores/<name>/paths/<folder>/. Every workspace gets default datastores, such as workspaceblobstore for uploads, code snapshots and pipeline cache.
8. Explain uri_file, uri_folder and mltable. When do you use each?
Answer:
uri_file: a single file, such as one CSV or one Parquet file. It is mapped directly, so your script gets a file path.uri_folder: a folder. Use it for a set of Parquet files, images or audio for deep learning. It is a plain mapping to the compute filesystem.mltable: a table definition, stored in your storage, that describes how to materialise tabular data (schema, transforms, subsets) into pandas or Spark. AutoML tabular tasks needmltableinputs.
Interview tip: Model monitoring runs on Spark, and Microsoft advises avoiding complex mltable definitions in monitoring jobs. That kind of detail shows you have used the platform rather than just read about it.
9. What input and output modes exist, and how do you choose?
Answer:
- Inputs:
ro_mount(read-only mount),downloadanddirect(the URI is passed as a string for your code, such as Spark, to read itself). - Outputs:
rw_mountorupload.
Mount streams data on demand, so it suits datasets larger than the local disk. Download copies everything first, which is faster for many small files that are read repeatedly in training loops. The Azure ML data runtime (written in Rust) handles prefetching and parallel loading to keep GPUs fed.
10. Credential-based vs identity-based data access: which do you recommend?
Answer: Prefer identity-based access. With it, the job uses the submitting user's Microsoft Entra token or a managed identity, and storage RBAC (for example, Storage Blob Data Reader) decides access. Credential-based datastores store an account key, SAS token or service principal secret. Microsoft's docs note that users with Reader access to the workspace can read those datastore credentials. In regulated environments, that alone is a reason to avoid account keys. Identity-based access also gives you per-user audit trails in storage logs. Not every storage type supports it: Azure Files datastores are credential-based only.
11. How do you handle very large datasets and feature preparation?
Answer: Keep heavy data engineering close to the data. Use Spark (serverless Spark compute in Azure ML, an attached Synapse Spark pool, or Databricks/Fabric upstream) to produce curated Parquet in ADLS. Then register that output as a versioned data asset for training. In pipelines, split preparation into its own component so that it is cached and reused across sweep trials. Every sweep trial restarts from scratch, including data loaders, so expensive preparation inside the training script multiplies cost. Use parallel jobs for embarrassingly parallel work, such as one model per store or per region.
For the data-engineering side of this, see AI for data engineers.
Training and AutoML
12. What is a command job, and how do you submit one with SDK v2?
Answer: A command job runs a command, usually python train.py, with defined code, inputs, outputs, an environment and compute. It is the basic training unit in v2, and sweeps and pipelines are built from it. A minimal sketch:
from azure.ai.ml import MLClient, command, Input
from azure.identity import DefaultAzureCredential
ml = MLClient(DefaultAzureCredential(),
"<sub>", "<rg>", "<workspace>")
job = command(
code="./src",
command="python train.py --data ${{inputs.data}}",
inputs={"data": Input(type="uri_folder",
path="azureml:claims_train:4")},
environment="azureml:train-env:7",
) # no compute set: runs on serverless
ml.create_or_update(job)
The YAML equivalent, submitted with az ml job create --file job.yml, is what you keep in Git.
13. How does distributed training work in Azure ML?
Answer: You set instance_count greater than one and a distribution type on the command job. Azure ML supports PyTorch distributed, TensorFlow and MPI (for Horovod or custom multi-node logic) on compute clusters, serverless compute and Kubernetes compute. Azure ML launches the processes and sets the rendezvous environment variables. Your code still has to be written for distributed data parallelism or model sharding. For GPU-heavy work, pick VM families with fast interconnect, checkpoint regularly to storage, and log the throughput per GPU, not just the loss.
For deeper material on the model side, the deep learning interview questions guide covers parallelism strategies.
14. What replaced HyperDrive, and how do sweep jobs work?
Answer: In v2, hyperparameter tuning is a sweep job (the SweepJob class, or type: sweep in YAML). HyperDrive was the v1 name. You define:
- a search space, using
Choice,Uniform,LogUniform,Normalor the quantised variants; - a sampling algorithm;
- a primary metric and goal (maximise or minimise);
- an early termination policy;
- limits:
max_total_trials,max_concurrent_trials,timeoutandtrial_timeout.
The training script must log the primary metric under exactly the name the sweep expects, typically with mlflow.log_metric. A mismatch is the classic reason a sweep "never improves".
15. Compare grid, random and Bayesian sampling and the early termination policies.
Answer:
- Grid sampling works only with
choiceparameters and searches every combination. Use it when the space is small and you can afford all of it. - Random sampling supports discrete and continuous parameters and is a good first pass. It also offers a Sobol rule for better space coverage.
- Bayesian sampling picks new trials based on earlier results. Microsoft suggests a budget of at least 20 times the number of tuned parameters, and lower concurrency so each trial benefits from previous ones.
The early termination policies are:
- Bandit: stops trials that fall outside a slack factor or slack amount from the top-performing trial.
- Median stopping: stops trials that are worse than the median of running averages.
- Truncation selection: cancels the lowest-performing share of trials at each interval.
- None: the default.
Use delay_evaluation so young trials are not killed before they warm up.
Interview tip: Say which you would start with and why, for example random with median stopping, then a narrower Bayesian pass.
16. What does AutoML do, and which tasks does it support?
Answer: AutoML trains many pipelines in parallel, combining featurisation, algorithms and hyperparameters, and ranks them on your primary metric until an exit criterion is met. It supports:
- Tabular: classification, regression and time-series forecasting. Forecasting includes holiday featurisation, lags, rolling windows, rolling-origin cross-validation and many-models grouping.
- Computer vision: multi-class and multi-label classification, object detection and instance segmentation.
- NLP: text classification and named entity recognition.
Featurisation steps become part of the model, so inference applies the same transforms. Ensembles (voting and stacking) are on by default. Models can be exported to ONNX for supported algorithms. AutoML generates the scoring script and environment, so deployment can be no-code.
17. When would you not use AutoML?
Answer: AutoML is a strong baseline and a good way to find out whether the data has signal. Avoid it as the final answer in these cases:
- You need a specific, explainable model family to satisfy model-risk reviewers.
- Featurisation must follow domain rules.
- Training must be cheap and frequent.
- Latency or model size limits rule out ensembles.
Watch for leakage, too. AutoML optimises whatever you give it, including a column that encodes the label. Also, the Responsible AI dashboard does not currently support AutoML MLflow models, which matters if fairness reports are mandatory.
Real-world example: Consider an insurer that uses AutoML to show a claims-severity model is feasible within days, then rebuilds the selected approach as a hand-written LightGBM pipeline. The rebuild gets controlled features, monotonic constraints and a Responsible AI dashboard report for the model-risk committee.
18. How does MLflow integrate with Azure ML?
Answer: An Azure ML workspace is MLflow-compatible. You point MLflow's tracking URI at the workspace (the azureml-mlflow plugin handles authentication) and use the standard mlflow.log_param, log_metric, log_artifact and log_model calls. This works from jobs, from your laptop, or from Databricks and Synapse. SDK v2 deliberately has no logging API of its own, so Microsoft recommends MLflow for tracking. That keeps training code portable. MLflow models deploy to online and batch endpoints without a scoring script or environment (no-code deployment).
Production consideration: Support for MLflow Projects (MLproject files) in Azure ML was scheduled to retire in September 2026. MLflow itself is still fully supported, so use Azure ML jobs to submit training.
MLOps
19. What are pipelines and components, and why use them?
Answer: A component is a self-contained, versioned step with typed inputs and outputs, code, an environment and a command. It is like a function with a contract. A pipeline job wires components into a DAG. Pipelines give you:
- reuse across teams;
- step-level caching, so unchanged steps are not rerun;
- a different compute per step, for example CPU for prep and GPU for training;
- scheduling, by cron or recurrence;
- lineage across steps.
Set default_compute: azureml:serverless (YAML) or default_compute="serverless" (SDK) to run steps on serverless compute.
Interview tip: The designer (drag and drop) still exists. Classic prebuilt designer components cannot be mixed with v2 custom components in one pipeline. Mention that the designer suits prototyping, while production pipelines are code and YAML in Git.
20. How does the model registry work, and what is a registry?
Answer: The workspace model registry stores versioned models of type MLflow, custom or Triton, with tags, properties and lineage back to the job that produced them. An Azure ML registry is a separate, organisation-level resource that decouples assets from workspaces, much like a Git repository. It can hold models, environments, components and data assets, and workspaces in different subscriptions and regions can consume them. You promote a candidate model from a dev workspace to a registry, then deploy it from the registry to endpoints in test and prod workspaces. Pipelines move the same way: register the components and environments, and each workspace runs them with its own compute and data.
The AzureML Registry User role grants read, write and delete on assets inside a registry. Creating or deleting the registry itself needs Contributor or Owner.
21. How would you design CI/CD for Azure ML?
Answer: Separate ML code from control-plane definitions, and keep both in Git as YAML. A typical flow:
- Pull request: run unit tests, lint, and a small smoke training job on sample data.
- Merge to main: CI runs
az ml job createfor the training pipeline in the dev workspace. - Quality gate: evaluation metrics are compared against the current champion, together with fairness checks.
- Promotion: the model is registered in the shared registry.
- Release: the release pipeline creates a new deployment on the prod endpoint with zero traffic, mirrors traffic to it, runs smoke tests, then shifts traffic in steps after approval.
Use workload identity federation (OIDC) for GitHub Actions or Azure DevOps rather than stored secrets. Give the CI identity only the roles it needs, and make it the only identity allowed to change prod endpoints. Microsoft's mlops-v2 solution accelerator on GitHub is a reference implementation.
For the generic pipeline patterns, see CI/CD for AI applications. For broader MLOps questions, see the MLOps interview questions guide.
22. How do you make training reproducible?
Answer: Pin everything a job depends on:
- the code (Azure ML snapshots it, and you also record the Git commit);
- the environment version;
- the data asset version, not just a path;
- the component versions;
- random seeds;
- the compute SKU, because GPU type can change results.
Log parameters and metrics with MLflow, and tag the registered model with the job name. Azure ML lineage then links all of these together. If any input is "latest", the run is not reproducible, whatever the logs say.
23. How do you trigger retraining?
Answer: There are three common patterns. A schedule on the pipeline handles periodic retraining. An event, such as a model-monitoring alert or a new data arrival, is delivered via Azure Event Grid to a Logic App, a Function or a CI pipeline that submits the retraining job. A manual approval is used for high-risk models. Retraining should never auto-deploy straight to production. It produces a candidate that goes through the same evaluation gate and safe rollout as any other release.
24. How do you migrate a v1 codebase to v2?
Answer: Work through it in this order:
- Inventory what uses v1:
azureml-coreimports,az mlv1 extension scripts,ScriptRunConfig,HyperDriveConfig,ParallelRunStep, ACI/AKS web services and v1 data drift monitors. - Move training to command and sweep jobs, and pipelines to v2 components.
ParallelRunStepbecomes a parallel job, or a batch endpoint for scoring. - Replace v1 logging (
run.log) with MLflow. - Move ACI/AKS v1 web services to managed online endpoints, or Kubernetes online endpoints.
- Replace v1 secrets helpers (
get_secret) with Key Vault client libraries and managed identity.
Workspaces, compute, models and environments carry over. Don't mix v1 and v2 SDKs in one script: class names like Workspace and Model exist in both and cause confusion.
Production consideration: Some older workspaces with private endpoints have the v1_legacy_mode flag enabled, which blocks v2 APIs. Check it early, because it turns into a networking change request rather than a code change.
Deployment
25. What is the difference between an endpoint and a deployment?
Answer: An endpoint is a stable URL with authentication and routing. A deployment is the compute plus model, code and environment that actually serves requests. One online or batch endpoint can hold several deployments, and that separation is what makes safe rollout possible. Clients call one URL while you swap implementations behind it. A deployment needs four things: a model (registered or inline), a scoring script (unless the model is MLflow or Triton), an environment, and an instance type and count.
26. Compare online endpoints, batch endpoints and standard deployments.
Answer:
| Aspect | Online endpoint | Batch endpoint | Standard deployment |
|---|---|---|---|
| Use | Synchronous, low-latency requests | Long-running scoring over many files | Catalog foundation models, real time |
| Deploys | Models | Models and pipeline components | Specific catalog models only |
| Routing | Traffic split and mirroring | Default deployment switch | None |
| Scale to zero | No | Yes | Built in |
| Spot/low-priority | No | Yes | Not applicable |
| Auth | Key, Azure ML token, Entra token | Microsoft Entra ID | Key |
| Cost basis | Instances while deployed | Compute consumed per job | Per token |
Standard deployments (previously called serverless API deployments) do not consume your compute quota. If a team says "we only need predictions overnight for 40 million rows", the answer is a batch endpoint, not an always-on online endpoint.
27. Managed online endpoints vs Kubernetes online endpoints?
Answer: Managed online endpoints are Microsoft's recommended default. Azure ML provisions the VMs, patches the host OS, recovers failed nodes, integrates with Azure Monitor and Log Analytics, shows cost per deployment, and supports traffic mirroring and managed network isolation. Kubernetes online endpoints (AKS or Arc-enabled clusters with the Azure ML extension) run on a cluster you own. You get control, reuse of existing clusters and on-premises or other-cloud placement. In exchange, you handle node provisioning, patching, networking and monitoring, and traffic mirroring is not supported. The v1 options, ACI and AKS web services, are now legacy.
The Kubernetes for FDE engineers article covers the cluster-side skills if you go the Kubernetes route.
28. How do you do blue/green deployment and shadow testing?
Answer: Create the new "green" deployment under the same endpoint with zero traffic. Test it directly by sending requests with the azureml-model-deployment header, which bypasses the traffic rules. Next, mirror a share of live traffic to green: clients still get blue's responses, but green's metrics and logs are recorded. Then split traffic, a small slice at first, increasing as latency, error rate and business metrics stay healthy. When green carries all traffic and has been stable, delete blue to stop paying for it.
+--> blue (v1) traffic: 100
client -> endpoint
+--> green (v2) traffic: 0, mirror: 10
step 2: blue 90 / green 10
step 3: blue 0 / green 100 -> delete blue
29. What goes into a scoring script, and how do you debug deployments?
Answer: The scoring script defines init() and run(). init() runs once when the container starts or is updated: load the model into memory there. run() runs on every request, so validate input, predict and return a serialisable response. Debug in layers:
- Run the Azure ML inference HTTP server package locally against your script, which needs no Docker.
- Deploy to a local endpoint in Docker. It supports only one deployment and no auth or traffic rules.
- Read the container logs. The storage-initializer log shows whether the model and code downloaded, and the inference-server log shows your
print/logging output.
Most "deployment failed" tickets are a missing dependency, a model path error in init() or an image that can't be pulled.
30. How do autoscaling and quota work for managed online endpoints?
Answer: Autoscale uses Azure Monitor autoscale rules. They can be metric-based (CPU, memory or request metrics), schedule-based (for example, business hours) or a combination. You set minimum and maximum instance counts. For high availability, Microsoft recommends at least three instances. For many VM SKUs, Azure ML also reserves an extra 20 percent of instance quota for upgrades and recovery, so ten instances of a four-core SKU need quota for 48 cores. That reserve is not billed unless used, but it can block a deployment if your quota is tight.
31. How do you deploy an MLflow model vs a custom model, and when do you bring your own container?
Answer: You have three options:
- No-code: MLflow and Triton models deploy with an auto-generated scoring script and a curated environment. AutoML models fit here too.
- Low-code: you provide the scoring script and dependencies on top of a curated or custom image.
- BYOC (bring your own container): your own image with its own server. You still get autoscaling, safe rollout and monitoring.
Use BYOC when you need a specific serving stack, non-Python inference or a hardened corporate base image. The container registry must be reachable by the endpoint identity through Entra auth and RBAC. Private registries other than Azure Container Registry aren't supported for managed endpoints.
Responsible AI and monitoring
32. What is the Responsible AI dashboard, and what are its limits?
Answer: The Responsible AI dashboard brings together these tools in one view:
- model overview and fairness assessment (Fairlearn);
- error analysis;
- data analysis;
- interpretability (InterpretML);
- counterfactual what-if analysis (DiCE);
- causal inference (EconML).
You build it with SDK v2, CLI v2 or studio components and export a PDF Responsible AI scorecard for risk and compliance reviewers. The limits interviewers like to probe:
- It supports tabular regression and classification only.
- Models must be MLflow models with a scikit-learn implementation, or wrapped to expose
predict()/predict_proba(). - Inputs must be pandas DataFrames in Parquet.
- The UI visualises up to about five thousand rows.
- AutoML MLflow models aren't supported.
For image and text, Microsoft points to the open-source Responsible AI Toolbox.
For the governance side, see the Responsible AI interview questions guide and AI bias and fairness testing.
33. What is data drift, and how is it different from model drift?
Answer: Data drift means the distribution of model inputs in production has moved away from a reference, usually the training data. Prediction drift means the distribution of outputs has moved. Concept drift, often loosely called model drift, means the relationship between inputs and the target has changed. In that case the inputs can look stable while accuracy falls. You detect it only with ground truth: actual labels such as whether a loan defaulted or a claim proved fraudulent. Drift alerts are early warnings. Performance against ground truth is the real test. In practice, people use "model drift" for any loss of model quality over time, so clarify which one the interviewer means.
34. How does Azure ML model monitoring work?
Answer: First, collect production inference data. For online endpoints, enable model data collection, which logs inputs and outputs to storage. For batch endpoints or models hosted outside Azure ML, you collect the data yourself. Then create a monitor (SDK/CLI v2 or studio) that runs on a schedule as a Spark job. It compares a production window against reference data using signals:
- Data drift: Jensen-Shannon distance, PSI, normalised Wasserstein, Kolmogorov-Smirnov and chi-squared tests.
- Prediction drift.
- Data quality: null rate, type errors and out-of-bounds values.
- Feature attribution drift (preview).
- Model performance against ground truth (preview).
You can also add custom signals. Thresholds raise alerts and Event Grid events. Use training data as the reference for data drift and validation data for prediction drift, and make sure the reference and production windows don't overlap.
Production consideration: Model monitoring currently doesn't support the allow only approved outbound managed network mode. Find out early if the security team insists on that mode.
35. What operational metrics do you watch on an endpoint besides drift?
Answer: Watch these Azure Monitor metrics per deployment:
- request rate;
- latency, at p50, p95 and p99;
- HTTP 4xx and 5xx counts;
- CPU, GPU and memory utilisation;
- instance count against the autoscale maximum.
Endpoint traffic and console logs go to Log Analytics tables, and Application Insights can capture custom events from your scoring code. Alert on the symptoms users feel (latency, errors) and on business-level checks, for example the share of transactions flagged per hour compared with the usual baseline.
The AI observability article goes deeper on dashboards and tracing.
GenAI with Foundry vs Azure ML
36. How does Azure ML relate to Microsoft Foundry?
Answer: Microsoft Foundry (previously Azure AI Studio, then Azure AI Foundry) is Microsoft's platform for generative AI apps and agents. It gives you the Foundry Models catalog, Foundry Agent Service, tools, tracing, evaluations and guardrails. It is managed as a Foundry resource with projects, which replaced the older model of a hub plus separate Azure OpenAI and AI Services resources. Azure ML remains the platform for custom model training, classical ML, AutoML, pipelines, managed endpoints and MLOps. Azure ML studio still has a model catalog, and Microsoft's docs say both studio and Foundry let you work with LLMs. In practice:
- Building an agent or a RAG application on hosted models usually starts in Foundry.
- Training a fraud model on your own tabular data, or fine-tuning and serving an open-weight model on your own GPUs, uses Azure ML.
For the Foundry side in depth, use the Azure AI interview questions guide.
37. What is a hub workspace, and is it still the way to start GenAI work?
Answer: A hub is a kind of Azure ML workspace that centrally holds security, networking, connections, compute quota and associated resources. Project workspaces created from it inherit those settings, share one managed virtual network and can be reached through one private endpoint on the hub. Hub-based projects were the resource model behind Azure AI Studio and Azure AI Foundry. Today they are accessible in the Foundry (classic) portal, and Microsoft says new investment is focused on Foundry projects (the Foundry resource) in the new portal. Hub workspaces also have functional limits: compute clusters, parallel run steps and batch endpoints aren't supported, and serverless compute is used instead. You can't convert a regular workspace into a hub.
Interview tip: If asked "hub or Foundry project for a new GenAI app?", say Foundry project, and mention that existing hub-based estates still run and need a migration plan.
38. What is the status of prompt flow?
Answer: Prompt flow, in both Azure ML and Foundry, is scheduled for retirement on 20 April 2027. Microsoft says it is no longer recommended for new development. Its runtime container images (promptflow-runtime and related images) no longer get updates, including security updates. After that date, the authoring experience, the VS Code extensions and the images will no longer be available. Microsoft's guidance is to migrate to Microsoft Agent Framework (the successor to Semantic Kernel and AutoGen), and it publishes a migration guide and code samples.
Production consideration: If a customer has prompt flow endpoints in production, treat the move as a project: build an inventory, rewrite flows as Agent Framework code, rebuild the evaluations, cut over through a new endpoint, and retire the old one well before the deadline.
39. When would you fine-tune or host an LLM in Azure ML rather than use Foundry Models?
Answer: Use Foundry Models first when a hosted model meets quality, data-residency and cost needs: there is no GPU fleet to run. Move to Azure ML in these cases:
- You need to fine-tune or continue training an open-weight model with custom code.
- You need to serve a model that isn't offered as a standard deployment.
- You need full control of the inference stack, such as a custom container or Triton.
- Compliance demands that weights run only on compute you control inside your network.
The price is GPU quota, capacity planning and patching. Serverless compute can be used for fine-tuning catalog models, which reduces some of that work.
For the trade-offs, see self-hosting LLMs and the fine-tuning guide.
Security
40. Explain managed virtual network isolation modes.
Answer: A workspace managed virtual network puts Azure ML-managed compute (compute instances, clusters, serverless, managed online endpoints) in a Microsoft-managed VNet. It has three modes:
- Allow internet outbound: unrestricted outbound, convenient for pip and Hugging Face downloads.
- Allow only approved outbound: outbound only to service tags, private endpoints and FQDN rules you approve. This mode minimises data exfiltration risk.
- Disabled: no managed isolation. Either the workspace is public or you use your own VNet.
Things to know:
- FQDN rules are implemented with Azure Firewall, which adds cost.
- The mode is one-way. You can't move from internet outbound back to disabled, or from approved-only back to internet outbound.
- The network is provisioned with the first compute. That can take around 30 minutes, so Microsoft recommends provisioning it manually.
- Online deployments need the network provisioned first.
- Serverless Spark needs explicit provisioning with Spark enabled.
41. How do private endpoints fit with the managed VNet?
Answer: Inbound and outbound are separate concerns. Inbound: a private endpoint on the workspace in your VNet lets users and CI reach studio, the APIs and online endpoint scoring privately, and you then disable public network access. Outbound: the managed VNet creates private endpoint outbound rules to the workspace's storage, key vault and container registry, plus any data sources you add (ADLS, SQL, Azure AI Search). Private DNS resolution must be correct on both sides. Most "studio loads but notebooks fail" issues are DNS. With a hub, one private endpoint on the hub serves its projects.
42. How do you use managed identities in Azure ML?
Answer: Identities appear in four places:
- Workspace identity: system-assigned or user-assigned. It accesses the associated storage, key vault and registry. Workspaces created after 19 November 2024 give the system-assigned identity the narrower Azure AI Administrator role instead of Contributor on the resource group.
- Compute identity: clusters and instances can have managed identities that jobs use to reach data.
- Job identity: user identity (credential passthrough) for interactive work, and managed identity for production pipelines.
- Endpoint identity: online deployments use a system- or user-assigned identity to pull images and models and to call downstream services. Use a user-assigned identity when you want to pre-grant permissions before the deployment exists.
Secrets that remain go in Key Vault, accessed with that identity. Don't use v1's get_secret helpers.
43. Which RBAC roles would you give a data scientist, an ML engineer and the CI pipeline?
Answer: The built-in roles are:
- AzureML Data Scientist: everything in the workspace except creating or deleting compute and changing the workspace itself.
- AzureML Compute Operator: creates and manages compute.
- Reader, Contributor and Owner.
- AzureML Registry User: for registries.
A sensible split:
- Data scientists: Data Scientist in dev, plus Compute Operator if self-service compute is allowed, and Reader in prod.
- ML engineers: Data Scientist plus Registry User.
- CI service principal: a custom role that can create jobs, models and online deployments in prod and nothing else.
Assign roles to Entra security groups, not individuals. Remember that a Reader can see credential-based datastore secrets, which is another reason to use identity-based datastores.
44. How do you secure online endpoint authentication and data?
Answer: Online endpoints support key auth, Azure ML token auth and Microsoft Entra token auth. Prefer Entra tokens for service-to-service calls, so callers use their own managed identity and access is governed by RBAC. Keys are static secrets that must be rotated. Batch endpoints use Entra ID only. Traffic is TLS by default. Add a workspace private endpoint and disable public access for private scoring. Use customer-managed keys where policy requires them. Enable data collection carefully: production inputs may contain personal data, so the collection storage needs the same classification, retention and access controls as the source system.
For India-specific obligations, see the DPDP Act for AI applications.
Cost
45. What are the main cost levers in Azure ML?
Answer:
- Clusters: set the minimum nodes to zero. Tune the idle time before scale-down (default 120 seconds): shorter for occasional jobs, longer for rapid iteration.
- Compute instances: enable idle shutdown and start/stop schedules. Forgotten GPU instances are a classic budget leak.
- Serverless compute: pay per job with right-sized instance types.
- Quotas: set workspace-level quotas by VM family so one team can't consume the subscription.
- Termination: use job timeouts, sweep early termination and AutoML exit criteria.
- Batch endpoints: use them instead of always-on online endpoints for offline scoring.
- Online endpoints: autoscale them, and delete old blue deployments and failed deployments, which may still hold VMs.
- Placement and storage: keep compute in the same region as the data, and set lifecycle policies on pipeline intermediate data.
- Commitments: reserved instances, which apply automatically to Azure ML compute, for steady base load.
46. What changed with low-priority VMs?
Answer: Microsoft retired low-priority VMs for Azure ML on 31 March 2026. Clusters that still specify tier: low_priority keep working, but Azure Batch now allocates their nodes as Spot VMs. Spot pricing is variable, not a fixed discount: it changes by region and demand and can approach pay-as-you-go when spare capacity is scarce, though it is never above the dedicated price. You can't set a maximum price for these clusters. For serverless jobs, the equivalent setting is queue_settings.job_tier: Spot. Spot suits checkpointed training and batch scoring that can resume after eviction. It is not available for compute instances.
Interview tip: Quoting the old "fixed low-priority discount" idea is a common outdated answer. Say "Spot, variable rate, design for eviction".
47. How do you attribute and control Azure ML cost across teams?
Answer: Use the structure first. Give each team or environment separate workspaces (or hubs and projects) with workspace-level quotas, tag resources by cost centre, and set Azure budgets with alerts per resource group. Managed online endpoints show cost down to each deployment. Use Azure Policy to restrict allowed VM SKUs, require idle shutdown on compute instances, or deny public workspaces. Review monthly: GPU utilisation per job, endpoints with low traffic but many instances, and old deployments.
For the wider approach, see cloud cost optimisation for AI.
48. How do you right-size an online deployment?
Answer: Load-test a single instance to find its throughput at your latency target. Set the minimum instances for steady load and high availability, and the maximum for peak with headroom. Add scale-out rules on CPU or request metrics, and schedule rules for known peaks. Revisit after real traffic. Often a smaller SKU with more instances is cheaper and more resilient than a few large GPUs, unless the model genuinely needs GPU memory.
Real-world scenarios
49. A bank's credit-risk model must move from a data scientist's notebook to a governed production service. How do you do it?
Answer: Consider a bank where the model exists only as a notebook on a compute instance. First, refactor it into components (prep, train, evaluate) with pinned environments and versioned data assets. Second, track everything with MLflow and register the model with lineage tags. Third, build a Responsible AI dashboard report and scorecard for model-risk review, using fairness across permitted cohorts and explanations for adverse decisions. Finally, promote the model through a registry to a prod workspace with a managed VNet and private endpoints, and deploy it with blue/green.
What I would check:
- Is the model a scikit-learn MLflow model, so the Responsible AI dashboard can analyse it?
- Which identity scores the endpoint, and can it reach only the feature store it needs?
- What ground truth (defaults) arrives, and when, for performance monitoring?
- Does an approval step stand between registry promotion and production traffic?
Production consideration: Model-risk teams care about reproducibility more than accuracy. The lineage from endpoint to job, data version and code commit is the deliverable.
50. A new green deployment is live with a small share of traffic, and 5xx errors spike. What do you do?
Answer: Set green's traffic to zero immediately. Blue is still deployed, so rollback is a traffic change, not a redeploy. Then investigate green using the routing header for direct test calls.
What I would check:
- Container logs: is
init()failing on some instances, or isrun()raising on certain payloads? - Memory: does the new model plus the batch size exceed the SKU, causing OOM restarts?
- Schema: did the input contract change and clients send old fields?
- Timeouts: is latency above the request timeout under real load?
Production consideration: Mirroring traffic before splitting would have caught most of these without customer impact. Make "mirror first" part of the release checklist.
51. A retailer's demand forecast degrades after a festival season. Monitoring shows data drift on several features. What next?
Answer: Drift during Diwali or a sale season may be expected seasonality rather than a broken model, so first separate "expected" from "harmful". Compare the forecast error against actuals as they arrive. Check whether the training data covered previous festival periods, and whether holiday features were set for Indian holidays.
What I would check:
- Is the reference window right? Last year's same season may be a better baseline than the full training set.
- Do drifted features carry high importance? Use the top-N-feature monitoring option.
- Did an upstream change (a new store format, a category code change) cause the drift?
- Would a many-models setup (per region or category) handle heterogeneity better?
Production consideration: Tune alert thresholds with the data scientists who own the model, or the on-call team will learn to ignore drift alerts every festival.
52. Security insists on "allow only approved outbound". Training jobs now fail installing packages. How do you fix this?
Answer: That mode blocks the public internet, so pip install from PyPI or model downloads from Hugging Face fail. You have three options:
- Pre-build environments into images in the workspace's container registry, so jobs need no install at run time.
- Mirror packages to an internal feed reachable via a private endpoint.
- Add narrowly scoped FQDN outbound rules for approved package sources, accepting the Azure Firewall cost.
For serverless Spark, Conda dependencies in session configuration don't install in this mode. Package a self-contained wheel in private storage instead.
What I would check:
- Was the managed network provisioned (with Spark, if needed) before compute was created?
- Are the outbound private endpoints to storage, registry and data sources approved?
- Is model monitoring in scope? It doesn't support this mode today, so agree on an alternative.
Production consideration: The isolation mode can't be relaxed later, so settle these needs before switching.
53. A GCC team in Hyderabad runs dev, test and prod in separate subscriptions. How do you share models and pipelines?
Answer: Create an Azure ML registry, replicated to the regions you deploy in. Register components and environments there, so every workspace runs the same pipeline definition with its own data and compute. Dev registers candidate models to the registry. Test deploys from it and runs integration tests. Prod deploys the same model version after approval. Grant data scientists Registry User, and give prod's deployment identity read access only.
What I would check:
- Is lineage back to the dev training job still visible from prod?
- Do prod and dev data differ, and is there a retraining step on prod data inside the prod boundary?
- Are network rules in place so prod workspaces can reach the registry privately?
54. A hospital wants nightly risk scores for every admitted patient. Online or batch?
Answer: Batch. Consider a hospital that needs scores by morning rounds, not within milliseconds. A batch endpoint takes a reference to the night's extract in storage, runs a job in parallel across a cluster that scales to zero afterwards, and writes results back for the clinical system. You pay only for compute during the job. Spot capacity is an option if the job can retry within the time window.
What I would check:
- Where does patient data live, and is access identity-based with private endpoints?
- What happens if the job fails at 3 a.m.: alerting, a retry policy and a fallback to the previous scores?
- Will clinicians receive explanations with the scores, and who reviews the model's fairness across patient groups?
Production consideration: Make the batch deployment a pipeline component if scoring needs pre- and post-processing. Batch endpoints can deploy pipeline components, not just models.
55. Your monthly Azure ML bill doubled. How do you investigate?
Answer: Start in Cost Management, filtered to Azure ML resources, and group by resource and meter.
What I would check:
- Compute instances with no idle shutdown, especially GPU ones.
- Clusters with a minimum node count above zero.
- Online endpoints with old blue deployments still running, failed deployments holding VMs, or a minimum instance count set too high.
- Sweeps without early termination or limits, and a runaway retraining schedule.
- FQDN outbound rules adding Azure Firewall charges.
- Cross-region data movement, and storage growth from pipeline intermediates.
- Low-priority clusters now billed at Spot rates that vary by region.
Production consideration: Fix the cause, then prevent it coming back. Azure Policy for idle shutdown, workspace quotas and budget alerts per team stop it recurring.
56. A customer still runs prompt flow endpoints for an internal assistant. What is your plan?
Answer: Explain the timeline: prompt flow retires on 20 April 2027, and its runtime images already receive no security updates. That makes it a risk issue today, not a 2027 issue. Plan the migration to Microsoft Agent Framework, hosted in Foundry or on your own compute.
What I would check:
- An inventory of flows, connections, deployments and the apps that call them.
- Whether evaluation datasets exist, so the migrated version can be shown to be equivalent or better.
- Whether the assistant really needs agent behaviour, or is a RAG pipeline that could be simpler.
Production consideration: Run old and new side by side behind a feature flag, compare evaluation scores and user feedback, then switch. See LLM evaluation for how to build the comparison set.
57. An insurer needs to explain individual claim-fraud decisions to auditors. How do you design for it?
Answer: Choose a model family that explainability tools support well, such as gradient boosting via scikit-learn-compatible APIs logged as MLflow. Generate a Responsible AI dashboard with interpretability (global and local) and counterfactuals, and export the scorecard for each released version. At inference time, compute local explanations for flagged claims and store them with the decision.
What I would check:
- Are any sensitive or proxy attributes used, and is the fairness analysis run on the relevant cohorts?
- Do the explanations stay stable across retrains, or do they change wildly?
- Is a human reviewer in the loop for adverse outcomes?
Production consideration: Store the model version, the explanation and the input snapshot for each decision. Auditors ask about specific historical cases, not just the current model.
58. Training jobs queue for a long time or fail with quota errors. How do you resolve it?
Answer: Quota is per VM family, per region, at subscription level, and optionally capped per workspace. Serverless jobs wait in a queue when quota is in use. A cluster job fails if the cluster's maximum nodes exceed the available quota.
What I would check:
- Usage and quotas in studio for the VM family and region.
- Workspace-level quota caps set by the platform team.
- Managed online endpoints holding quota, including the extra upgrade reserve.
- Whether a different VM family or region with spare quota fits the job.
59. Two data scientists get different results from "the same" training run. How do you debug it?
Answer: "Same" usually isn't the same.
What I would check:
- Data: did both use the same data asset version, or a path whose contents changed?
- Environment: the same environment version, or one rebuilt with unpinned packages?
- Code: the same Git commit? Compare the job code snapshots.
- Compute: different GPU types or a different node count in distributed training.
- Seeds and non-deterministic GPU operations.
Production consideration: Make the versions of data, environment and components mandatory in pipeline YAML, and fail CI on "latest". Compare the two jobs' MLflow parameters side by side in studio. Differences usually show up quickly.
60. A product team asks you to "add AI" to an Azure estate: a churn model and an internal policy assistant. How do you split the work between Azure ML and Foundry?
Answer: They are two workloads with different lifecycles.
- Churn prediction is supervised learning on the company's own tabular data. It needs training, tuning, a registry, batch or online scoring and drift monitoring, which is Azure ML.
- The policy assistant is a RAG or agent application on hosted LLMs. It needs model deployments, retrieval, guardrails, tracing and evaluation, which is a Foundry project.
Share the platform foundations: Entra ID groups and managed identities, private networking, Key Vault, tagging and budgets.
Shared: Entra ID, VNet, Key Vault
/ \
Azure ML workspace Foundry project
data -> pipeline -> model models + AI Search
registry -> batch/online agent -> evals
monitor drift tracing + guardrails
What I would check:
- What is the business outcome and the metric for each: churn reduction, deflected HR tickets?
- Where does each dataset live, and what classification does it have?
- Who owns each system after go-live?
Production consideration: Don't force both into one tool. Customers trust engineers who pick the right platform for each workload and explain why. That is the "from AI demo to enterprise outcome" skill set described in Azure for FDE engineers.
Want to practise this hands-on, with pipelines, endpoints and monitoring built on real cloud accounts rather than slides? Cloudsoft's APEX AI, ML, Cloud and Cyber Security program covers ML engineering and MLOps alongside cloud and security foundations.
Key takeaways
- Answer in v2 terms:
MLClient, jobs, data assets, components, sweeps and endpoints. SDK v1 support ended on 30 June 2026 and CLI v1 support ended on 30 September 2025. - MLflow is the tracking and model-logging standard in Azure ML. MLflow models deploy without a scoring script.
- Use registries to move models, components and environments across dev, test and prod with lineage intact.
- Managed online endpoints are the default for real-time inference. Use deployments for blue/green, mirroring and gradual traffic shifts. Batch endpoints suit large offline scoring and scale to zero.
- Monitoring needs production data collection plus ground truth. Drift is a warning and performance is the test.
- GenAI apps and agents now start in Microsoft Foundry. Hub-based projects are Foundry (classic), and prompt flow retires on 20 April 2027 in favour of Microsoft Agent Framework.
- Security and cost are design inputs. Decide on managed VNet modes, identities, quotas, idle shutdown and Spot behaviour early.
Interview preparation checklist
- Create a workspace and run a command job on serverless compute from both the SDK v2 and a CLI v2 YAML file.
- Register a data asset (
uri_folderandmltable) and use it with an explicit version. - Build a three-step pipeline from components, and see caching work on a rerun.
- Run a sweep with random sampling and a median stopping policy. Confirm the primary metric name matches your MLflow log.
- Run one AutoML classification or forecasting job, and explain what it did and what you would change.
- Deploy an MLflow model to a managed online endpoint, add a second deployment, mirror traffic, then split it.
- Create a batch endpoint and score a folder of files.
- Enable data collection and set up a model monitor with drift and data-quality signals.
- Generate a Responsible AI dashboard for a scikit-learn model and export the scorecard.
- Write down your RBAC and managed-identity design for dev, test and prod, and the managed VNet mode you would choose and why.
- Be ready to explain Azure ML vs Microsoft Foundry and the prompt flow retirement in two minutes.
- Prepare one cost story: what you would check first if the bill doubled.
FAQ
What skills are required for an Azure Machine Learning role?
Python and core ML (scikit-learn, a deep learning framework), the Azure ML SDK v2 and CLI v2, MLflow, Docker basics for environments, Git and CI/CD, and Azure fundamentals: identity, networking, storage and monitoring. Senior roles add MLOps design across environments, security reviews and cost governance.
Is Azure Machine Learning still relevant now that Microsoft Foundry exists?
Yes. Foundry is where generative AI apps and agents are built on hosted models. Azure ML remains the platform for training custom models on your own data, AutoML, pipelines, managed endpoints and model monitoring. Many enterprises use both.
Should I learn SDK v1 or SDK v2?
Learn SDK v2 and CLI v2. Support for SDK v1 ended on 30 June 2026 and new features ship only in v2. Knowing how v1 concepts map to v2 helps with migration work in older codebases.
How should I prepare for an Azure ML interview?
Build one small end-to-end project: a pipeline that trains with MLflow, registers a model, deploys to a managed online endpoint with a second deployment for rollout, and has a monitor attached. Then practise explaining design choices, failure scenarios and costs out loud.
Do I need a certification for Azure ML jobs?
A certification can help you get shortlisted, but interviewers decide on practical depth. A working project in your portfolio and clear answers on deployment, monitoring and security usually carry more weight. Check Microsoft Learn for the current exams, because Microsoft updates them regularly.
Is Azure Machine Learning a good career path for freshers?
It can be, especially in Indian GCCs and services firms that run Microsoft-heavy estates. Start with strong ML fundamentals and Python, then add Azure ML hands-on work. Employers value freshers who can show a deployed model rather than only notebooks.
What is the difference between an Azure data scientist and an Azure ML engineer?
A data scientist focuses on problem framing, features, model choice and evaluation. An ML engineer focuses on pipelines, environments, deployment, monitoring and reliability. Azure ML interviews for either role usually test both, with different weighting.
How much Azure networking do I need to know?
Enough to explain managed virtual network modes, private endpoints for inbound and outbound traffic, DNS basics and why a job cannot reach a package source. For platform and architect roles, networking questions are common and often decide the interview.
Which programming languages does Azure ML support?
Python is the primary language for the SDK and most training code. R and Java can run in jobs with some MLflow tracking limitations, and the CLI and REST APIs work from any language or CI tool.
If you want guided, project-based preparation, Cloudsoft runs classroom batches in Ameerpet, Hyderabad, and live online sessions. The APEX program for AI, ML and cloud careers covers the ML and MLOps track. If your goal is to take AI systems into customer environments end to end, look at the AI Forward Deployed Engineer course (FDE PRO), which includes placement support until you're placed. Call +91 96660 19191 for a free demo.



