Question 729 of 1,170
Deploy and Manage Azure ComputemediumMultiple ChoiceObjective-mapped

Using Azure Container Instances for Ephemeral Batch Workloads

This AZ-104 practice question tests your understanding of deploy and manage azure compute. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

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?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

  • Clue: "never"

    Why it matters: Absolute qualifier. True only if the statement has zero exceptions — be cautious of options that seem obvious but break down in edge cases.

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.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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

    App Service is intended for continuously running web apps, not short-lived batch containers.

    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 designed for on-demand container execution without managing a cluster or servers.

    Clue confirmation

    The clue words "best", "never" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Azure Virtual Machines

    Why it's wrong here

    Virtual machines would add unnecessary patching and infrastructure management for a short batch workload.

    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

    AKS is appropriate for orchestrated container platforms, but it is too much overhead for this simple job.

    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 designed for on-demand container execution without managing a cluster or servers.

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

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often 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.

Detailed technical explanation

How to think about this question

Under the hood, Azure Container Instances uses a hypervisor-level isolation technology similar to Hyper-V containers, ensuring each container group runs in its own security boundary. ACI supports direct integration with Azure Container Registry (ACR) and can be triggered via Azure CLI, PowerShell, or SDK, making it ideal for CI/CD pipelines where a container is spun up, executes a task, and is torn down automatically. A real-world scenario is a nightly ETL job that processes logs into a data warehouse, where ACI eliminates the need to maintain a cluster and reduces costs by only charging for the seconds the container runs.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Deploy and Manage Azure Compute — This question tests Deploy and Manage Azure Compute — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: 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.

What should I do if I get this AZ-104 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best", "never". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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 →

How Courseiva writes practice questions · Editorial policy

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.

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.