Courseiva
Deploy and Manage Azure ComputemediumMultiple SelectObjective-mapped

AZ-104 Deploy and Manage Azure Compute Practice Question

One team needs to run a Linux container for about 15 minutes per request with no inbound traffic and no cluster to manage. Another team needs an internet-facing web app with built-in HTTPS, deployment slots, and autoscale. Which two Azure services should the administrator choose? Select two.

⚠ Common exam trap

Many exam-takers confuse Azure Container Instances with Azure Kubernetes Service, thinking orchestration is needed for any container, or they may overlook that Azure App Service natively supports deployment slots and autoscale without requiring additional services.

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 for the first team because it allows running a Linux container directly on Azure without managing any underlying infrastructure or cluster, and it supports a 15-minute execution time with no inbound traffic required. ACI is ideal for burstable, short-lived container workloads that do not need orchestration.

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 because it is a serverless service that starts a Linux container in seconds and bills per second, with no underlying VM, orchestrator, or cluster to manage. You simply provide the image and optional command, and ACI provisions the container and tears it down automatically when the 15-minute job completes. This makes it ideal for short-lived, isolated workloads.

  • Azure App Service

    Why this is correct

    Azure App Service is a correct option because it can run Linux containers in a managed PaaS environment with built-in web hosting, HTTPS, and deployment slots. However, it assumes a continuously running service and typically requires an App Service Plan with always-on features, so for a 15-minute ad-hoc container it would leave resources allocated and incur idle cost. It is technically viable but not as efficient as a purpose-built container instances service.

  • Azure Virtual Machines

    Why it's wrong here

    An Azure Virtual Machine is the wrong choice because it would require you to deploy and manage a full Linux guest OS, apply security updates, and install a container runtime like Docker before running your job. Even if you automate the process, the VM remains provisioned and incurring costs unless you carefully shut it down after 15 minutes. This adds unnecessary administrative and operational burden compared with a managed container service.

    When this WOULD be correct

    A question requiring full control over the OS, custom software installation, or lift-and-shift migration of an existing application that cannot be containerized or run on PaaS, with no requirement for built-in HTTPS or deployment slots.

  • Azure Kubernetes Service

    Why it's wrong here

    Azure Kubernetes Service is overkill because it introduces an entire orchestration plane—cluster nodes, pods, load balancers, and control plane management—that you would need to configure for a single container that runs for only 15 minutes. The cluster has a baseline cost and operational overhead even when idle, and its auto-scaling and rolling-update features are not needed for an isolated short-lived job. For ephemeral workloads, a simpler service like ACI avoids this complexity.

    When this WOULD be correct

    A question requiring orchestration of multiple containers with complex networking, scaling, and rolling updates, where the team needs to manage the cluster and has persistent workloads, would make AKS the correct choice.

  • Azure Batch

    Why it's wrong here

    Azure Batch is not suitable because it is designed for large-scale parallel and high-performance computing jobs across many nodes, not for launching a single container. It requires you to create a Batch account, a pool of compute nodes, and a job with tasks, and the pool stays alive until you delete it. The orchestration and pool-management overhead far exceed the needs of a brief container run.

    When this WOULD be correct

    A question where a team needs to run a large number of parallel batch jobs (e.g., rendering, data processing) with automatic scaling and job scheduling, and they want to avoid managing a cluster. For example: 'A team needs to run thousands of compute-intensive tasks on a schedule with automatic retry and scaling.'

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 because it is a serverless service that starts a Linux container in seconds and bills per second, with no underlying VM, orchestrator, or cluster to manage. You simply provide the image and optional command, and ACI provisions the container and tears it down automatically when the 15-minute job completes. This makes it ideal for short-lived, isolated workloads.

Azure Virtual MachinesWrong answer — click to see why

Why this is wrong here

Azure Virtual Machines require managing the OS, patches, and scaling, and are not optimized for short-lived container tasks or built-in web app features like deployment slots and autoscale without additional configuration.

★ When this WOULD be the correct answer

A question requiring full control over the OS, custom software installation, or lift-and-shift migration of an existing application that cannot be containerized or run on PaaS, with no requirement for built-in HTTPS or deployment slots.

Why candidates choose this

Candidates may think VMs are a flexible catch-all for running containers or web apps, not realizing that Azure Container Instances and App Service provide simpler, managed solutions for these specific needs.

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 minutes with no inbound traffic. It also does not provide built-in deployment slots or autoscale for web apps without additional configuration.

★ When this WOULD be the correct answer

A question requiring orchestration of multiple containers with complex networking, scaling, and rolling updates, where the team needs to manage the cluster and has persistent workloads, would make AKS the correct choice.

Why candidates choose this

Candidates may confuse container orchestration with simple container execution, or think AKS is needed for any container workload, overlooking Azure Container Instances for simple, short-lived tasks.

Azure BatchWrong answer — click to see why

Why this is wrong here

Azure Batch is designed for large-scale parallel and high-performance computing jobs, not for running a single Linux container for 15 minutes per request without cluster management. It requires job and task orchestration, which adds complexity not needed here.

★ When this WOULD be the correct answer

A question where a team needs to run a large number of parallel batch jobs (e.g., rendering, data processing) with automatic scaling and job scheduling, and they want to avoid managing a cluster. For example: 'A team needs to run thousands of compute-intensive tasks on a schedule with automatic retry and scaling.'

Why candidates choose this

Candidates may confuse Azure Batch's ability to run containers with the simplicity of Container Instances, or think Batch's 'no cluster management' feature applies to single short-lived containers, not realizing Batch is optimized for job orchestration, not individual on-demand containers.

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

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.