Courseiva
Deploy and Manage Azure ComputeeasyMultiple ChoiceObjective-mapped

AZ-104 Deploy and Manage Azure Compute Practice Question

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?

⚠ Common exam trap

A common mix-up: candidates confuse Azure Container Instances with Azure Kubernetes Service, assuming that any container workload requires a full orchestration platform, but ACI is purpose-built for simple, short-lived 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 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.

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 well suited for short-lived, isolated container runs without cluster management. It lets the team start a container on demand, run the job, and stop paying for a continuously running server once the task is complete. For scheduled or event-driven container workloads that do not need orchestration features, it is a simple and practical choice.

  • Azure Kubernetes Service

    Why it's wrong here

    AKS is a managed Kubernetes cluster that brings its own control plane, node pools, and networking, which must be provisioned, secured, and scaled even if you only launch one batch container. For a single 10-15 minute task, the cluster's minimum node VM footprint and operational overhead are unnecessary. A Kubernetes Job could technically run the container, but the team would still need a functioning AKS cluster to accept the workload, making it far more complex than a direct ACI invocation.

    When this WOULD be correct

    A question requiring orchestration of multiple containers, scaling, rolling updates, or high availability for a production application would make AKS correct. For example: 'A company needs to deploy a microservices application with auto-scaling and self-healing capabilities, and the team wants to minimize operational overhead for cluster management.'

  • Azure Virtual Machine

    Why it's wrong here

    A VM requires full OS lifecycle management: provisioning disks, applying security updates, and handling shutdown, all for a job that finishes in minutes. The VM's underlying capacity is reserved continuously, so you pay for idle compute after the container exits unless you automate deallocation. In addition, running Docker inside a VM adds a layer of indirection compared with a dedicated container service, and the VM boot time adds unnecessary latency to a short-lived pipeline task.

    When this WOULD be correct

    A question requiring a persistent, customizable environment with full OS control, such as running a legacy application that needs specific OS configurations or installing custom software that cannot be containerized.

  • Azure App Service

    Why it's wrong here

    Azure App Service is a platform-as-a-service built for continuously running web applications and APIs; its container support expects a listener on an exposed HTTP endpoint for routing and liveness checks. A job that executes for 15 minutes and then exits would violate the App Service runtime model because the platform assumes the process remains alive. It also requires an App Service plan with an always-on setting and offers no 'run once and stop' billing, so it is a poor fit for this non-HTTP, short-lived workload.

    When this WOULD be correct

    A question asks: 'Which Azure service should be used to host a web application that requires automatic scaling, high availability, and supports both Windows and Linux environments, without managing the underlying infrastructure?' In that scenario, Azure App Service is 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 well suited for short-lived, isolated container runs without cluster management. It lets the team start a container on demand, run the job, and stop paying for a continuously running server once the task is complete. For scheduled or event-driven container workloads that do not need orchestration features, it is a simple and practical choice.

Azure Kubernetes ServiceWrong answer — click to see why

Why this is wrong here

Azure Kubernetes Service (AKS) is designed for managing containerized applications across a cluster of VMs, requiring ongoing cluster management and incurring costs even when not actively running containers. For short-lived tasks (10-15 minutes) without server management, AKS is overkill and not cost-effective.

★ When this WOULD be the correct answer

A question requiring orchestration of multiple containers, scaling, rolling updates, or high availability for a production application would make AKS correct. For example: 'A company needs to deploy a microservices application with auto-scaling and self-healing capabilities, and the team wants to minimize operational overhead for cluster management.'

Why candidates choose this

Candidates may associate containers with Kubernetes as the standard orchestration platform, overlooking that Azure Container Instances is simpler and more suitable for short-lived, single-container tasks without cluster management.

Azure Virtual MachineWrong answer — click to see why

Why this is wrong here

Azure Virtual Machine requires managing an always-on VM, which contradicts the requirement to not manage servers or an always-on VM. It also incurs costs even when not in use, unlike the short-lived container needs.

★ When this WOULD be the correct answer

A question requiring a persistent, customizable environment with full OS control, such as running a legacy application that needs specific OS configurations or installing custom software that cannot be containerized.

Why candidates choose this

Candidates may think a VM is needed to run a Linux container, not realizing that Azure Container Instances can run containers without managing the underlying VM.

Azure App ServiceWrong answer — click to see why

Why this is wrong here

Azure App Service is a fully managed platform for hosting web apps, APIs, and mobile backends, but it requires the app to be deployed as a web application, not a standalone container. It does not support running a Linux container for a short duration without an always-on app or server management.

★ When this WOULD be the correct answer

A question asks: 'Which Azure service should be used to host a web application that requires automatic scaling, high availability, and supports both Windows and Linux environments, without managing the underlying infrastructure?' In that scenario, Azure App Service is the correct answer.

Why candidates choose this

Candidates may think App Service can run containers easily because it supports containerized web apps, but they overlook that it is designed for continuous web hosting, not ephemeral container runs, and still requires an app to be deployed and running.

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?”

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.