Azure Container Instances: Run Short-Lived Linux Containers Without Managing Servers
A build pipeline must run a Linux container for about 10 minutes per request. The team does not want to manage servers or a Kubernetes cluster. Which Azure service should the administrator choose?
Quick Answer
The answer is Azure Container Instances (ACI) because it is the only Azure service designed to run short-lived Linux containers without requiring any server or Kubernetes management. ACI launches a container on demand, executes the task—such as a 10-minute build pipeline job—and then stops, charging only for the exact seconds of compute time used. On the AZ-104 exam, this question tests your ability to differentiate between container orchestration options: ACI is for simple, ephemeral workloads, while Azure Kubernetes Service (AKS) is for complex, long-running clusters. A common trap is choosing AKS because it also runs containers, but the key phrase “without managing servers or a Kubernetes cluster” eliminates it. Remember the memory tip: “ACI for a quick CI”—if your container job is a one-off, short-lived task like a build or test, think ACI, not AKS.
⚠ Common exam trap
Candidates often confuse Azure Container Instances with Azure Kubernetes Service, assuming that any container workload requires an orchestrator, but ACI is purpose-built for simple, serverless container execution without cluster management.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Azure Container Instances
Azure Container Instances (ACI) is the correct choice because it allows you to run a Linux container directly on Azure without managing any underlying servers or orchestrators. The 10-minute execution time fits perfectly within ACI's per-second billing model, and the service automatically starts and stops the container on demand, making it ideal for short-lived, ephemeral workloads like build pipeline tasks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Azure Container Instances
Why this is correct
Azure Container Instances runs containers on demand without managing servers or orchestration clusters.
- ✗
Azure Virtual Machines
Why it's wrong here
VMs work, but they require more ongoing administration than a serverless container option.
When this WOULD be correct
If the requirement was to run a custom application that requires full control over the OS, specific kernel modules, or legacy software that cannot be containerized, and the team is willing to manage the VM lifecycle, Azure Virtual Machines would be the correct choice.
- ✗
Azure App Service
Why it's wrong here
App Service is best for web apps and APIs, not arbitrary short-lived container jobs.
When this WOULD be correct
A team needs to deploy a containerized web application that must auto-scale based on HTTP traffic, with built-in load balancing and CI/CD support, and they want to avoid managing the underlying OS. Azure App Service would be the correct choice.
- ✗
Azure Kubernetes Service
Why it's wrong here
AKS is powerful, but it adds cluster management that the team does not want.
When this WOULD be correct
A question where the requirement is to run multiple containers that need to work together, with scaling, rolling updates, and service discovery, but the team wants to avoid managing the control plane. For example: 'A team needs to deploy a microservices application with multiple containers that must communicate and scale independently, but they want to minimize operational overhead of the orchestration layer.'
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Azure Container InstancesCorrect answer▾
Why this is correct
Azure Container Instances runs containers on demand without managing servers or orchestration clusters.
✗Azure Virtual MachinesWrong answer — click to see why▾
Why this is wrong here
Azure Virtual Machines require managing the underlying OS and patching, which contradicts the requirement to not manage servers. They also take longer to provision and are not optimized for short-lived tasks like a 10-minute container run.
★ When this WOULD be the correct answer
If the requirement was to run a custom application that requires full control over the OS, specific kernel modules, or legacy software that cannot be containerized, and the team is willing to manage the VM lifecycle, Azure Virtual Machines would be the correct choice.
Why candidates choose this
Candidates may think VMs are the default for running any workload, overlooking that containers provide a lighter, faster alternative for short-lived tasks without server management.
✗Azure App ServiceWrong answer — click to see why▾
Why this is wrong here
Azure App Service requires a web app or API to be deployed, not a standalone container that runs for 10 minutes and then stops. It is designed for continuous web hosting, not ephemeral batch jobs.
★ When this WOULD be the correct answer
A team needs to deploy a containerized web application that must auto-scale based on HTTP traffic, with built-in load balancing and CI/CD support, and they want to avoid managing the underlying OS. Azure App Service would be the correct choice.
Why candidates choose this
Candidates may think App Service supports containers (which it does via Web App for Containers) and assume it can run any container workload, overlooking that it is optimized for long-running web applications, not short-lived tasks.
✗Azure Kubernetes ServiceWrong answer — click to see why▾
Why this is wrong here
Azure Kubernetes Service (AKS) is a managed Kubernetes cluster, which still requires cluster management and is overkill for running a single container for 10 minutes. The team explicitly wants to avoid managing servers or a Kubernetes cluster.
★ When this WOULD be the correct answer
A question where the requirement is to run multiple containers that need to work together, with scaling, rolling updates, and service discovery, but the team wants to avoid managing the control plane. For example: 'A team needs to deploy a microservices application with multiple containers that must communicate and scale independently, but they want to minimize operational overhead of the orchestration layer.'
Why candidates choose this
Candidates may think AKS is the only option for running containers at scale, or they may confuse 'managed Kubernetes' with 'serverless containers,' not realizing that AKS still involves managing a cluster (node pools, upgrades, etc.).
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
Learn chapter
Managed Identities for Azure Resources
Key term
Container
A container is a lightweight, standalone software package that includes everything needed to run an application, such as code, runtime, system tools, and libraries.
Key term
Kubernetes cluster
A set of machines, called nodes, that work together to run and manage containerized applications using Kubernetes orchestration software.
About these practice questions
This AZ-104 question is part of Courseiva's 1,049-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on AZ-104
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A development team needs to run a Linux container for about 12 minutes each time a request is received. The team does not want to manage a server, cluster, or virtual machine. Which Azure service should the administrator use?
easy- A.Azure Kubernetes Service
- ✓ B.Azure Container Instances
- C.Azure Virtual Machines
- D.Azure App Service
Why B: Azure Container Instances (ACI) is the correct choice because it allows the team to run a Linux container directly in Azure without managing any underlying infrastructure, such as servers, clusters, or virtual machines. ACI is ideal for short-lived, event-driven workloads like this 12-minute request-based container, as it supports rapid startup and automatic shutdown, aligning with the 'serverless' requirement.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.