Skip to content
Microsoft Certified: Azure AI Cloud Developer Associate (AI-200) Exam Prep

Lesson 2 of 7 · 11 min

x
2/7

Domain 1: Develop Containerized Solutions on Azure (Part 2 of 2)

This lesson covers 3 exam topics: Event-Driven Scaling with KEDA in Container Apps, Deploying to AKS with Manifest Files, Monitoring and Troubleshooting AKS and Container Apps. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Event-Driven Scaling with KEDA in Container Apps

Video lesson: AI-200 05/28: Event-Driven Scaling with KEDA in Container Apps

Central question: How do Container Apps scale on events, not just traffic?

Facts

  • Container Apps uses KEDA (Kubernetes Event-driven Autoscaling): HTTP, queue messages, CPU/memory, Service Bus, Event Hubs, Kafka, Redis and more.
  • Rule types: HTTP (concurrent requests), TCP (concurrent connections), custom (KEDA scalers).
  • Defaults: minReplicas 0, maxReplicas 10 (configurable up to 1,000); polling interval 30 s, cool-down 300 s.
  • Scaling to zero incurs no usage charges; algorithm desiredReplicas = ceil(currentMetric / target).
  • Use single revision mode with non-HTTP event scale rules.
  • Custom scalers authenticate with secrets or managed identity.

Exam traps

  • CPU scaling for a queue worker. Scale on queue length.
  • Expecting instant scale-in. Cool-down is 300 seconds.
  • minReplicas 0 for latency-critical APIs (cold start).

2. Deploying to AKS with Manifest Files

Video lesson: AI-200 06/28: Deploying to AKS with Manifest Files

Central question: How do you deploy and manage apps on AKS with YAML?

Facts

  • AKS = managed Kubernetes; Azure runs the control plane; modes AKS Automatic (recommended default for most production, monitoring preconfigured) and AKS Standard.
  • Pod: one or more containers sharing network and storage (usually one). Deployment manages replicas and rolling updates. Service (e.g. type: LoadBalancer) exposes pods. Namespaces group resources.
  • Workflow: az aks get-credentials → kubectl apply -f app.yaml → kubectl get service for the external IP.
  • Pull from ACR by attaching the registry (az aks update --attach-acr) (general background).

Manifest essentials (general background)

apiVersion, kind, metadata, spec: replicas, selector/labels, container image (unique tag), ports, env, resource requests/limits, liveness/readiness probes.

Exam traps

  • Deploying bare pods instead of Deployments (no self-healing).
  • No resource requests/limits.
  • :latest images in manifests.

3. Monitoring and Troubleshooting AKS and Container Apps

Video lesson: AI-200 07/28: Monitoring and Troubleshooting AKS and Container Apps

Central question: How do you find why a containerized app fails?

Container Apps

  • Console logs (stdout/stderr) and system logs (service events); tables ContainerAppConsoleLogs_CL and ContainerAppSystemLogs_CL in Log Analytics.
  • Log stream for near-real-time logs (a revision scaled to zero has nothing to stream; set min replicas 1 to debug); container console to exec into a container.
  • Check ingress (target port), health probes, image pull and revision status.

AKS

  • Container insights collects logs to ContainerLogV2, KubeEvents, KubePodInventory; managed Prometheus for metrics, Azure Managed Grafana dashboards; resource logs for the control plane.
  • AKS Automatic enables monitoring by default; AKS Standard needs it enabled.
  • kubectl logs, kubectl describe pod (events), kubectl get events (general background).

Troubleshooting order (design guidance)

Status → events (ImagePullBackOff, CrashLoopBackOff, OOMKilled) → logs → probes → networking (service, DNS, ingress, NSG).

Exam traps

  • Reading Logs instead of Log stream for live debugging.
  • Ignoring events, where image-pull and scheduling failures appear.
  • Metrics from Container insights when managed Prometheus is recommended.

References

  1. AI-200 study guide — checked Oct 22, 2026
  2. Scaling in Container Apps — checked Oct 22, 2026
  3. AKS core concepts — checked Oct 22, 2026
  4. AKS quickstart (CLI) — checked Oct 22, 2026
  5. Troubleshooting Container Apps — checked Oct 22, 2026
  6. Monitor AKS — checked Oct 22, 2026

Check your understanding

  • Scale a worker on Service Bus messages?Show answer

    Answer

    Custom KEDA azure-servicebus rule.
  • Apply a manifest?Show answer

    Answer

    kubectl apply -f.
  • Live Container Apps logs?Show answer

    Answer

    Log stream.
  • Default max replicas?Show answer

    Answer

    10.
  • Configure kubectl for the cluster?Show answer

    Answer

    az aks get-credentials.
Previous

Progress is saved in this browser.

Next Lesson