Courseiva
Deploy and Manage Azure ComputeeasyMultiple ChoiceObjective-mapped

AZ-104 ACI offers serverless container execution. Practice Question

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?

⚠ Common exam trap

Watch out — candidates often choose Azure Kubernetes Service (AKS) because they associate containers with Kubernetes, but the question explicitly prohibits managing a cluster, making ACI the only serverless container option that meets the 'no management' requirement.

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 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.

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 Kubernetes Service

    Why it's wrong here

    Azure Kubernetes Service (AKS) is overkill for running a single Linux container for only 12 hours. AKS introduces an entire Kubernetes control plane, agent node pools, networking, and upgrade cadence that require cluster administration expertise and ongoing management overhead. While AKS excels at orchestrating many containers with scaling, load balancing, and self-healing, those features are unnecessary for a one-off task; you would spend more time maintaining the cluster than actually running the container.

    When this WOULD be correct

    A question where the team needs to orchestrate multiple containers, handle scaling, and manage complex deployments over time, and is willing to manage a Kubernetes cluster (or use a managed cluster). For example: 'A team needs to deploy a microservices application with auto-scaling and rolling updates. Which service should they use?'

  • Azure Container Instances

    Why this is correct

    Azure Container Instances (ACI) is the correct choice because it provisions a Linux container directly on Azure infrastructure without requiring you to manage any underlying servers, orchestrators, or virtual machines. For a short-lived task running about 12 hours, ACI offers per-second billing, instant startup, and a simple deployment model—you just specify the container image, resource limits, and restart policy. The service abstracts all infrastructure concerns, so the development team can focus solely on the containerized application, making it the most operationally lightweight option here.

  • Azure Virtual Machines

    Why it's wrong here

    Azure Virtual Machines (VMs) would force the team to provision and maintain a full Linux operating system, including applying security patches, managing users, and handling disk and networking configuration. A VM also has higher resource consumption because the OS and hypervisor layer take up CPU and memory compared to a container that shares the host kernel. For a temporary 12-hour container workload, the administrative burden and slower startup time make a VM an inefficient and unnecessarily complex solution.

    When this WOULD be correct

    A question requiring persistent state, custom OS configurations, or legacy applications that must run on a full OS, with no requirement for serverless or container-only deployment. For example: 'A company needs to run a legacy Windows application that requires full OS access and cannot be containerized.'

  • Azure App Service

    Why it's wrong here

    Azure App Service is a platform-as-a-service designed specifically for hosting web applications, APIs, and mobile backends, not for running arbitrary standalone containers like a batch job or utility process. While App Service does support Linux containers in the Web App for Containers feature, it expects a web server listening on port 80 or 443 and naturally aligns with long-running, request-driven applications. Deploying a general-purpose Linux container to App Service would require adapting it to the web app lifecycle, which conflicts with the simple, ephemeral container runtime the team needs.

    When this WOULD be correct

    If the question required hosting a long-running web application with built-in scaling, load balancing, and CI/CD support, and the team was willing to manage an App Service Plan (which abstracts VMs but still requires configuration), Azure App Service would be the correct choice.

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 (ACI) is the correct choice because it provisions a Linux container directly on Azure infrastructure without requiring you to manage any underlying servers, orchestrators, or virtual machines. For a short-lived task running about 12 hours, ACI offers per-second billing, instant startup, and a simple deployment model—you just specify the container image, resource limits, and restart policy. The service abstracts all infrastructure concerns, so the development team can focus solely on the containerized application, making it the most operationally lightweight option here.

Azure Kubernetes ServiceWrong answer — click to see why

Why this is wrong here

Azure Kubernetes Service (AKS) requires managing a cluster, even if serverless, and is overkill for a 12-minute container run. The team wants no server, cluster, or VM management, which AKS does not provide.

★ When this WOULD be the correct answer

A question where the team needs to orchestrate multiple containers, handle scaling, and manage complex deployments over time, and is willing to manage a Kubernetes cluster (or use a managed cluster). For example: 'A team needs to deploy a microservices application with auto-scaling and rolling updates. Which service should they use?'

Why candidates choose this

Candidates may think AKS is serverless (due to Virtual Nodes) or assume containers always require orchestration, overlooking that Azure Container Instances is simpler for single-container, short-lived tasks.

Azure Virtual MachinesWrong answer — click to see why

Why this is wrong here

Azure Virtual Machines require managing a server, cluster, or VM, which contradicts the requirement to not manage any infrastructure. The team wants a serverless container solution, not a VM-based one.

★ When this WOULD be the correct answer

A question requiring persistent state, custom OS configurations, or legacy applications that must run on a full OS, with no requirement for serverless or container-only deployment. For example: 'A company needs to run a legacy Windows application that requires full OS access and cannot be containerized.'

Why candidates choose this

Candidates may associate running containers with VMs, not realizing that Azure Container Instances provides a serverless container runtime without VM management.

Azure App ServiceWrong answer — click to see why

Why this is wrong here

Azure App Service is designed for hosting web applications, APIs, and mobile backends, not for running short-lived containers on demand without managing infrastructure. It requires an App Service Plan and is not optimized for ephemeral container execution triggered by requests.

★ When this WOULD be the correct answer

If the question required hosting a long-running web application with built-in scaling, load balancing, and CI/CD support, and the team was willing to manage an App Service Plan (which abstracts VMs but still requires configuration), 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 not designed for short-lived, request-triggered containers without persistent hosting.

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

Go deeper

Related to this question

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 →

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.