Question 729 of 1,049
AZ-104 Deploy and Manage Azure Compute Practice Question
A build pipeline starts a containerized data-processing job every evening. Each run finishes in under 20 minutes, does not need persistent servers, and never receives inbound traffic. Which compute service best fits this workload?
⚠ Common exam trap
A common mix-up: candidates choose Azure Kubernetes Service (D) because they associate containers with Kubernetes, overlooking that ACI is the simpler, more cost-effective solution for single, short-lived containerized jobs without orchestration needs.
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 containerized job directly in Azure without provisioning or managing any underlying infrastructure. The workload is short-lived (under 20 minutes), requires no persistent servers, and has no inbound traffic, which aligns perfectly with ACI's pay-per-second billing and ability to start containers on demand from a build pipeline.
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 App Service
Why it's wrong here
Azure App Service is a PaaS offering designed for continuously available web applications and RESTful APIs, not for short-lived batch jobs. It expects a persistent runtime where the application stays running and handles incoming HTTP requests, so it lacks the lifecycle model for a container that starts, processes data, and exits. While it can run containers, its billing, scaling, and health-checking mechanisms are all aligned with long-running services, making it both architecturally and financially inappropriate for a one-shot data job.
When this WOULD be correct
A question describes a web application that must run continuously, scale automatically based on HTTP traffic, and support multiple deployment slots for staging and production. Azure App Service would be the correct choice for this scenario.
- ✓
Azure Container Instances
Why this is correct
Azure Container Instances is the correct choice because it runs containers on-demand without requiring any underlying infrastructure provisioning or cluster orchestration. It starts in seconds, charges only for the duration of the job, and is purpose-built for short-lived, isolated workloads like this data processing pipeline. This serverless model eliminates the need to manage VMs, nodes, or Kubernetes control planes, giving a simple and cost-effective execution environment.
- ✗
Azure Virtual Machines
Why it's wrong here
Azure Virtual Machines require you to provision, patch, and manage a full operating system, and you would be billed for the VM even when the batch job is not running. To run a containerized job on a VM, you must install and configure a container runtime, handle the VM's lifecycle, and maintain the host, which adds significant operational overhead for a simple task. The job would also be coupled to the VM's capacity and state, undermining the ephemeral and elastic nature that a batch pipeline should have.
When this WOULD be correct
A workload requires a custom operating system configuration, needs to run legacy applications that cannot be containerized, or demands persistent server access for debugging or long-running processes that exceed container limits.
- ✗
Azure Kubernetes Service
Why it's wrong here
Azure Kubernetes Service provides a fully managed Kubernetes cluster, but that cluster still demands ongoing management of node pools, networking, scaling, and pod scheduling even if your job is a single container. For a simple data processing job that runs once in a pipeline, AKS introduces unnecessary complexity, resource overhead, and operational burden—you'd pay for the node VMs and must plan for cluster capacity. It is best suited for multi-container microservices with rolling deployments and autoscaling, not for an ephemeral batch task that just needs to execute and stop.
When this WOULD be correct
A question describing a microservices application with multiple containers that need orchestration, auto-scaling, rolling updates, and service discovery, and where the workload runs for hours or continuously, would make AKS the correct answer.
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 correct choice because it runs containers on-demand without requiring any underlying infrastructure provisioning or cluster orchestration. It starts in seconds, charges only for the duration of the job, and is purpose-built for short-lived, isolated workloads like this data processing pipeline. This serverless model eliminates the need to manage VMs, nodes, or Kubernetes control planes, giving a simple and cost-effective execution environment.
✗Azure App ServiceWrong answer — click to see why▾
Why this is wrong here
Azure App Service is designed for hosting web applications and RESTful APIs that require continuous runtime and inbound HTTP traffic, not for short-lived, batch container jobs that finish in under 20 minutes and have no inbound requests.
★ When this WOULD be the correct answer
A question describes a web application that must run continuously, scale automatically based on HTTP traffic, and support multiple deployment slots for staging and production. Azure App Service would be the correct choice for this scenario.
Why candidates choose this
Candidates may mistakenly think App Service can run any containerized workload, overlooking that it is optimized for web apps with persistent endpoints and not for ephemeral batch processing.
✗Azure Virtual MachinesWrong answer — click to see why▾
Why this is wrong here
Azure Virtual Machines require persistent servers, incurring costs even when idle, and need manual scaling or additional services for orchestration, making them unsuitable for a short-lived, serverless containerized job that runs under 20 minutes.
★ When this WOULD be the correct answer
A workload requires a custom operating system configuration, needs to run legacy applications that cannot be containerized, or demands persistent server access for debugging or long-running processes that exceed container limits.
Why candidates choose this
Candidates may think VMs are the default for any compute workload, overlooking the serverless and ephemeral nature of Container Instances, and may not consider cost implications of idle VM resources.
✗Azure Kubernetes ServiceWrong answer — click to see why▾
Why this is wrong here
Azure Kubernetes Service (AKS) is overkill for a short-lived batch job that finishes in under 20 minutes, as it requires a cluster with nodes running continuously, incurring cost and management overhead. The workload does not need orchestration, scaling, or persistent servers.
★ When this WOULD be the correct answer
A question describing a microservices application with multiple containers that need orchestration, auto-scaling, rolling updates, and service discovery, and where the workload runs for hours or continuously, would make AKS the correct answer.
Why candidates choose this
Candidates may think AKS is the modern way to run containers, overlooking that for simple, short-lived jobs, Azure Container Instances is simpler and more cost-effective without the complexity of a Kubernetes cluster.
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?”
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways 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 build pipeline needs to run a Linux container for 10 to 15 minutes at a time. The team does not want to manage servers, clusters, or an always-on VM. Which Azure service should be used?
easy- ✓ A.Azure Container Instances
- B.Azure Kubernetes Service
- C.Azure Virtual Machine
- D.Azure App Service
Why A: Azure Container Instances (ACI) is the correct choice because it allows you to run a Linux container directly on Azure without provisioning or managing any underlying infrastructure. ACI is ideal for short-lived, burstable workloads like a build pipeline that runs for 10–15 minutes, as it supports per-second billing and automatic startup/shutdown without the overhead of a cluster or VM.
Variation 2. 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?
medium- ✓ A.Azure Container Instances
- B.Azure App Service
- C.Azure Kubernetes Service
- D.A virtual machine
Why A: 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.
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.