Bitzu

AZ-305 ยท Compute solution design

Serverless containers: Container Apps vs Container Instances

Azure Container Apps (KEDA scaling, scale to zero, Dapr, revisions, jobs) vs Azure Container Instances (single container groups, burst) vs AKS.

Key points

  • Container Apps: serverless containers, no Kubernetes API; KEDA scaling (HTTP, TCP, custom).
  • Default 0-10 replicas, up to 1,000; zero replicas, no usage charges.
  • Scale rule changes create a new revision (immutable); traffic split across revisions; Dapr.
  • Jobs: run to completion; manual, schedule (cron, UTC) or event.
  • Container Instances: one container group, no orchestration or autoscaling. AKS: Kubernetes API.

Source: https://learn.microsoft.com/en-us/azure/container-apps/scale-app

Practice questions

Single choice

If you create a container app without defining any scale rule, which replica range applies by default?

  1. 1 to 5 replicas
  2. 0 to 10 replicas
  3. 1 to 30 replicas
  4. 0 to 1,000 replicas
Show answer

Answer: B. 0 to 10 replicas

The default scale rule is HTTP-based with 0 minimum and 10 maximum replicas. The overall configurable maximum is 1,000 replicas, but that is not the default.

Select all that apply

Which statements about Azure Container Apps are true?

  1. Changing a scale rule creates a new revision of the app
  2. A revision is an immutable snapshot of the container app
  3. You can run kubectl against the underlying cluster
  4. Container Apps jobs can use Dapr sidecars
  5. Container Apps jobs can scale on an HTTP rule
Show answer

Answer: A. Changing a scale rule creates a new revision of the app, B. A revision is an immutable snapshot of the container app

Adding or editing scale rules creates a new revision, and a revision is an immutable snapshot of the app. Container Apps does not expose the Kubernetes API, and Container Apps jobs support neither Dapr nor HTTP scale rules.

True or false

A container app that has scaled to zero replicas still incurs usage charges for compute.

Show answer

Answer: False

False. You are not billed usage charges when a container app scales to zero. Replicas that stay in memory without processing may be billed at a lower idle rate, but zero replicas means zero usage charges.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More AZ-305 topics in this module