AZ-204 Develop Azure compute solutions Practice Question
You need to deploy a containerized application to Azure that must be restarted automatically if it crashes. The solution should minimize management overhead. Which compute service should you use?
⚠ Common exam trap
Watch out — candidates often choose AKS because of its robust orchestration and self-healing capabilities, but they overlook the explicit requirement to minimize management overhead, which AKS does not satisfy due to the need to manage clusters, node pools, and networking.
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 provides a serverless container platform that automatically restarts containers if they crash when configured with a restart policy of 'Always' or 'OnFailure'. This minimizes management overhead by eliminating the need to manage underlying infrastructure, orchestration, or virtual machines, making it ideal for simple, stateless containerized applications that require automatic recovery.
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 (ACI) offers the fastest and simplest way to run a single container or a small group of containers in Azure without managing any underlying infrastructure. It is a serverless solution that allows for immediate deployment and billing by the second, making it ideal for scenarios requiring quick starts, burst workloads, or simple containerized applications that don't need full orchestration capabilities. Its restart policy ensures the container can be configured to run once, always, or on failure, perfectly suiting a straightforward container deployment need.
- ✗
Azure Functions
Why it's wrong here
Azure Functions is a serverless compute service designed for event-driven, short-lived execution of code snippets, not for deploying general-purpose containerized applications. While it can run custom handlers or even Docker images in premium plans, its primary purpose and optimal use case are for reacting to events with specific functions, often with execution time limits, making it unsuitable for a long-running, general containerized application.
- ✗
Azure Kubernetes Service (AKS)
Why it's wrong here
Azure Kubernetes Service (AKS) is a robust platform for deploying, managing, and scaling multiple containerized applications using Kubernetes orchestration. While powerful for complex microservices architectures and high-scale deployments, it introduces significant operational overhead and management complexity, including cluster configuration, node management, and networking, which is overkill for simply deploying a single containerized application without the need for advanced orchestration.
- ✗
Azure Virtual Machines
Why it's wrong here
Azure Virtual Machines (VMs) provide Infrastructure-as-a-Service (IaaS), offering complete control over the operating system and installed software. Deploying a containerized application on a VM would necessitate manually provisioning the VM, installing a container runtime like Docker, and managing the OS patches and updates, which adds unnecessary management overhead and cost compared to container-specific services, negating many benefits of containerization.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 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-204 exam.