AZ-305 ยท Compute solution design
Batch and HPC processing
Azure Batch pools, jobs and tasks, low-priority/Spot nodes, HPC VM sizes, choosing Batch vs Container Apps jobs vs Functions for batch work.
Key points
- Azure Batch: pool = nodes, job = group of tasks, task = command line on a node.
- Pools: dedicated plus Spot nodes (API: low-priority, e.g. targetLowPriorityNodes); autoscale formula; scale to zero.
- Batch Spot: no SLA, capacity eviction only (no max price), tasks requeued, separate vCPU quota.
- Spot: short, restartable tasks; multi-node MPI jobs: dedicated nodes.
- Alternatives: Container Apps jobs, Functions, CycleCloud (HPC schedulers).
Source: https://learn.microsoft.com/en-us/azure/batch/batch-spot-vms
Practice questions
In Azure Batch, what is the unit of work that runs a command line on a compute node?
- Pool
- Job
- Task
- Batch account
Show answer
Answer: C. Task
A task runs a command line on a node. A job is a collection of tasks, a pool is the set of nodes that run them, and the Batch account is the top-level resource.
Which statements about Spot nodes in Azure Batch are true?
- Tasks interrupted by preemption are requeued automatically
- You can set a maximum price for the Spot nodes in a pool
- Spot nodes have a vCPU quota separate from dedicated nodes
- Spot nodes in Batch support ephemeral OS disks
- One pool can contain both dedicated and Spot nodes
Show answer
Answer: A. Tasks interrupted by preemption are requeued automatically, C. Spot nodes have a vCPU quota separate from dedicated nodes, E. One pool can contain both dedicated and Spot nodes
Batch requeues tasks that were interrupted by preemption, Spot nodes use a separate (higher) vCPU quota, and a pool can contain both dedicated and Spot nodes. Batch does not let you set a Spot max price, and ephemeral OS disks are not supported with Spot nodes.
Spot nodes in an Azure Batch pool can be evicted when the Spot price rises above the max price you configured for the pool.
Show answer
Answer: False
False. Batch Spot nodes do not support a max price or price-based eviction; they are evicted only when Azure needs the capacity back. Price-based eviction applies to Spot VMs you deploy directly, not to Batch pools.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
