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

Lesson 6 of 7 · 16 min

x
6/7

Domain 3: Connect to and Consume Azure Services

This lesson covers 5 exam topics: Service Bus Queues, Topics and Subscriptions, Service Bus Dead-Letter Queues, Event Grid: Custom Events, Filters and Retries, Azure Functions: Triggers and Bindings, Configuring and Deploying Function Apps. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Service Bus Queues, Topics and Subscriptions

Video lesson: AI-200 20/28: Service Bus Queues, Topics and Subscriptions

Central question: How do you queue back-end work reliably?

Facts

  • Queues: FIFO delivery to competing consumers; each message processed by one receiver.
  • Topics + subscriptions: publish/subscribe; each subscription gets a copy; subscription filters (SQL or correlation) select messages and can modify properties.
  • Receive modes: Peek lock (lock, process, then complete; abandon to release; lock expiry makes it available again) and Receive and delete (removed on receipt; at-most-once).
  • Sessions give ordered handling of related messages; duplicate detection available (general background on tiers: topics need Standard or Premium).

AI use (design guidance)

Queue long-running jobs (embedding generation, document analysis, batch inference) so the API returns fast; scale workers on queue length (KEDA).

Exam traps

  • Receive and delete for work that must not be lost.
  • Queue when several services need the same message. Use a topic.
  • Long processing without lock renewal.

2. Service Bus Dead-Letter Queues

Video lesson: AI-200 21/28: Service Bus Dead-Letter Queues

Central question: What happens to messages that can't be processed?

Facts

  • Every queue and subscription has a dead-letter queue (DLQ) subqueue: <queue>/$deadletterqueue; no need to create it, can't delete it separately.
  • System dead-lettering: MaxDeliveryCountExceeded (default max delivery count 10: abandons or lock expiries count), TTLExpiredException (when dead-lettering on expiration is enabled), and others.
  • Application-level dead-lettering: code explicitly dead-letters bad messages with a reason and description.
  • Messages stay in the DLQ until you receive them; inspect, fix and resubmit to the main entity.

Exam traps

  • Infinite retries of a poison message. It moves to the DLQ after max delivery count.
  • Assuming expired messages are dead-lettered without enabling it.
  • Never draining the DLQ.

3. Event Grid: Custom Events, Filters and Retries

Video lesson: AI-200 22/28: Event Grid: Custom Events, Filters and Retries

Central question: How do you build event-driven workflows with Event Grid?

Facts

  • Custom topics: endpoints your apps publish to; schemas CloudEvents or Event Grid schema; push delivery to subscribers.
  • Filters on subscriptions: event types (includedEventTypes), subject (subjectBeginsWith, subjectEndsWith, e.g. ".jpg"), and advanced filters on data fields (NumberIn, StringContains, ...).
  • Delivery: at least once; waits 30 s for a response, then retries with exponential backoff.
  • Retry policy: max attempts 1–30 (default 30), event TTL 1–1440 minutes (default 1440 = 24 h); whichever expires first.
  • Errors such as 400/413 aren't retried; without dead-lettering (to a storage blob container) undeliverable events are dropped.

Event Grid vs Service Bus (design guidance)

Event Grid: lightweight notifications that something happened. Service Bus: commands/work items needing ordered, transactional processing.

Exam traps

  • No dead-letter destination, so failed events vanish.
  • Filtering in the handler instead of the subscription.
  • Event Grid for workflows needing message locks.

4. Azure Functions: Triggers and Bindings

Video lesson: AI-200 23/28: Azure Functions: Triggers and Bindings

Central question: How do you build serverless APIs and handlers?

Facts

  • A function has exactly one trigger (HTTP, timer, Service Bus, Event Grid, Cosmos DB, Blob, queue, ...).
  • Bindings are optional and declarative: input bindings pass data in, output bindings write data out; a function may have several.
  • You can always use an Azure SDK client in code instead of bindings.
  • HTTP-triggered functions must respond within 230 seconds regardless of timeout settings.
  • .NET uses the isolated worker model; Python v2 uses decorators (general background on Python model).

Pattern (design guidance)

HTTP trigger → validate → queue output binding for long work → Service Bus-triggered function processes it → Cosmos DB output binding stores results.

Exam traps

  • Two triggers on one function.
  • Long work inside an HTTP trigger (230 s limit). Queue it.
  • Bindings required to use a service. SDK clients also work.

5. Configuring and Deploying Function Apps

Video lesson: AI-200 24/28: Configuring and Deploying Function Apps

Central question: Which hosting plan, and how do you deploy safely?

Hosting plans

PlanNotes
Flex ConsumptionRecommended serverless: fast scale-out (up to 1,000 instances), VNet integration, pay as you go, always-ready instances
PremiumPrewarmed workers (no cold start), VNet, more powerful instances
DedicatedApp Service plan, predictable cost
Container AppsFunctions in containers
ConsumptionLegacy; migrate to Flex Consumption

Configuration and deployment

  • functionTimeout in host.json; app settings as environment variables (Key Vault references supported).
  • Deployment mostly uses zip deployment; Flex Consumption uses package deployment to a storage container and remote build via a parameter.
  • Deploying stops running executions (recreate); deployment slots give near-zero-downtime swaps where supported.
  • CI/CD with GitHub Actions or Azure Pipelines; with private endpoints use a runner on a connected network.

Exam traps

  • New app on the legacy Consumption plan.
  • Expecting no cold start on Flex without always-ready instances.
  • Secrets in local.settings.json committed to Git.

References

  1. AI-200 study guide — checked Oct 22, 2026
  2. Queues, topics and subscriptions — checked Oct 22, 2026
  3. Dead-letter queues — checked Oct 22, 2026
  4. Event filtering — checked Oct 22, 2026
  5. Delivery and retry — checked Oct 22, 2026
  6. Custom topics — checked Oct 22, 2026
  7. Triggers and bindings — checked Oct 22, 2026
  8. Hosting options — checked Oct 22, 2026
  9. Deployment technologies — checked Oct 22, 2026

Check your understanding

  • Each consumer gets every message?Show answer

    Answer

    Topic with subscriptions.
  • Default max delivery count?Show answer

    Answer

    10.
  • Only ".pdf" blob events?Show answer

    Answer

    subjectEndsWith filter.
  • How many triggers per function?Show answer

    Answer

    Exactly one.
  • Recommended plan for new serverless apps?Show answer

    Answer

    Flex Consumption.
Previous

Progress is saved in this browser.

Next Lesson