AZ-104 Deploy and Manage Azure Compute Practice Question
A team needs to run a Linux container for 15 to 20 minutes at a time, triggered by an external system. They do not want to manage servers, clusters, or a web framework. Which Azure service is the best fit?
⚠ Common exam trap
A common mix-up: candidates choose Azure Kubernetes Service (AKS) because they associate containers with Kubernetes, overlooking that ACI is the simpler, serverless option for short-lived tasks 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 best fit because it allows you to run a container directly in Azure without managing any underlying servers or orchestrators. The service is designed for short-lived, burst workloads (like 15–20 minutes) and can be triggered on-demand via an external system (e.g., HTTP request, Azure Logic Apps, or SDK). ACI automatically starts the container, runs it, and then stops and deallocates resources when the task completes, matching the exact requirement of no server, cluster, or web framework management.
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 is the best fit for short-lived container execution without managing servers or a cluster. It is well suited for event-driven or scheduled jobs that run for a limited time and then exit, which matches the requirement to process work for only 15 to 20 minutes.
- ✗
Azure App Service
Why it's wrong here
Azure App Service is a PaaS built for continuously serving web applications and RESTful APIs, not for executing a short-lived, finite container job. It expects a listening server process, and its Always On setting or external keep-alive is required to prevent idle shutdown, which is antithetical to a task that simply exits. You would also pay for a continuously running App Service plan even before the 15–20 minute task starts, making it a poor fit for this event-driven batch scenario.
When this WOULD be correct
A team needs to deploy a web application that auto-scales based on HTTP traffic, with built-in load balancing and SSL, without managing the underlying infrastructure. They plan to run it continuously, not for short bursts.
- ✗
Azure Kubernetes Service
Why it's wrong here
Azure Kubernetes Service provides a full orchestration platform for many containerized microservices with advanced scaling and scheduling, but it introduces cluster management you explicitly want to avoid. Even a managed Kubernetes cluster runs worker nodes as Azure VMs, requiring you to configure node pools, monitor cluster health, and plan for upgrades. Spinning up an AKS cluster just to run a single job for 15–20 minutes would leave compute nodes running and billing long after the job completes, adding significant overhead compared to serverless containers.
When this WOULD be correct
A question requiring orchestration of multiple containers, scaling, and complex microservices architectures, where the team is willing to manage a Kubernetes cluster for production-grade container orchestration.
- ✗
A virtual machine
Why it's wrong here
Deploying the container on a virtual machine would require you to provision and manage an entire operating system, install a container runtime, and handle OS patching, security, and maintenance—all responsibilities avoided with Azure Container Instances. A VM also has slow startup and shutdown times, meaning the instance would be allocated and billing for far longer than the actual 15–20 minute job. There is no built-in event-driven execution; you would need custom automation to start and stop the VM, adding complexity without any benefit for such a short task.
When this WOULD be correct
A virtual machine would be correct if the question required running a legacy application that cannot be containerized, or if the team needed full control over the OS, custom kernel modules, or persistent state that containers don't support.
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 is the best fit for short-lived container execution without managing servers or a cluster. It is well suited for event-driven or scheduled jobs that run for a limited time and then exit, which matches the requirement to process work for only 15 to 20 minutes.
✗Azure App ServiceWrong answer — click to see why▾
Why this is wrong here
Azure App Service requires managing a web framework and is designed for continuous web applications, not short-lived, triggered container runs. It also incurs costs for idle time, unlike the per-second billing of Container Instances.
★ When this WOULD be the correct answer
A team needs to deploy a web application that auto-scales based on HTTP traffic, with built-in load balancing and SSL, without managing the underlying infrastructure. They plan to run it continuously, not for short bursts.
Why candidates choose this
Candidates may think App Service supports containers and is simpler than managing VMs, overlooking that it's optimized for persistent web apps, not ephemeral tasks triggered by external systems.
✗Azure Kubernetes ServiceWrong answer — click to see why▾
Why this is wrong here
Azure Kubernetes Service (AKS) requires managing a cluster and is overkill for a single container running for 15-20 minutes. The team wants to avoid managing servers, clusters, or a web framework, and AKS involves cluster management.
★ When this WOULD be the correct answer
A question requiring orchestration of multiple containers, scaling, and complex microservices architectures, where the team is willing to manage a Kubernetes cluster for production-grade container orchestration.
Why candidates choose this
Candidates may think Kubernetes is the standard for containers and overlook that AKS requires cluster management, which contradicts the 'no management' requirement.
✗A virtual machineWrong answer — click to see why▾
Why this is wrong here
The team wants to avoid managing servers, but a virtual machine requires full OS management, patching, and scaling. It also doesn't provide the container-native, ephemeral execution model needed for short-lived tasks.
★ When this WOULD be the correct answer
A virtual machine would be correct if the question required running a legacy application that cannot be containerized, or if the team needed full control over the OS, custom kernel modules, or persistent state that containers don't support.
Why candidates choose this
Candidates may think a VM is a simple, familiar option for running any workload, overlooking the 'no server management' constraint and the container-specific requirements.
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
Privileged Identity Management (PIM)
Key term
Azure Container Instances
Azure Container Instances (ACI) is a PaaS service that lets you run a container directly in Azure without managing any underlying servers or orchestration.
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.
About these practice questions
Courseiva writes every AZ-104 question from scratch — 1,049 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.