Question

Difficulty: MediumAzure Container Instances, Azure Kubernetes Service, and Azure App Service

An organization needs to run a temporary, event-driven data analysis tool that is packaged as a single container. The container must start immediately when triggered by an API call, run for less than five minutes, and then shut down. The organization wants to avoid managing virtual machines or container orchestrators, and they want to pay only for the exact CPU and memory resources consumed during the container's active execution. Which Azure service should the organization use?

  1. A
    Azure Kubernetes Service (AKS)
  2. Azure Container InstancesAnswer
  3. C
    Azure App Service
  4. D
    Azure Virtual Machines

Answer

Azure Container Instances is the correct service because it allows running a single container on-demand with per-second billing and zero virtual machine or orchestrator management overhead.
Azure Container Instances is correct because it is a serverless compute service that enables you to package and run containers on-demand without managing virtual servers or orchestrators. It provides per-second billing, making it the most cost-effective and low-overhead option for a single container running for only a few minutes.

Step-by-Step Solution

1
Analyze the workload characteristics
The workload consists of a single container that runs for a very short duration (less than five minutes) and is triggered on-demand.
This rules out complex container orchestrators like Azure Kubernetes Service, which are designed for multi-container deployments and continuous scaling.
2
Evaluate management and billing requirements
The organization wants to avoid managing virtual machines and only wants to pay for the exact CPU and memory consumed during active execution.
This rules out Azure Virtual Machines (which require operating system management and continuous billing) and Azure App Service (which requires a continuously billed App Service plan).
3
Identify the service that matches all criteria
Azure Container Instances provides serverless, on-demand container execution with per-second billing and zero infrastructure management.
Azure Container Instances is the standard Azure service designed specifically for isolated, short-lived container tasks.

Key Concept

Azure Container Instances is a serverless container hosting service that allows users to deploy containers without provisioning virtual machines or managing container orchestrators.
Rate this question