# When should I use an Azure ML online endpoint or a batch endpoint?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Implement machine learning model lifecycle and operations
Updated: 2026-11-25T04:35:30.815238+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-choose-azure-ml-online-or-batch.html

## Also asked as

- How do synchronous and batch inference differ in Azure Machine Learning?
- Which Azure ML endpoint fits an interactive request or a long-running scoring job?

Use managed online inference when the consumer needs a result during the request and the complete response path can meet its latency target. Use a batch endpoint when the consumer can submit work and collect results later, such as scoring a large set of stored files. An online request returns a response. Invoking a batch endpoint creates a job whose outputs become available separately.

Both endpoint types let the consumer use a stable invocation address while deployments define the runtime and artifact. Managed online endpoints can split ordinary requests across deployments. A batch endpoint uses its default deployment unless a caller selects a specific one, so switching the default changes where future default invocations go. For custom-trained models, choose from the consumer's payload, latency and completion requirements.

### Microsoft Learn

* [Endpoints for inference - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/concept-endpoints?view=azureml-api-2)
* [Online endpoints for real-time inference - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/concept-endpoints-online?view=azureml-api-2)
* [What are batch endpoints? - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/concept-endpoints-batch?view=azureml-api-2)

Source: [AI-300: Choosing Online and Batch Inference](https://learningpathx.com/news/ai-300-choosing-online-and-batch-inference.html)
