AZ-305 Practice Question 78: Event Grid System Topic Filtered Subscriptions

Microsoft Azure Solutions Architect Expert (AZ-305) · Test 8 · question 8 of 10

Infrastructure Solutionsmedium

A company stores product images in a storage account. When a new blob is created, a resize function must process every image, but only blobs uploaded to the /incoming/thumbnails path should also trigger a separate notification workflow. The design must react to the native Microsoft.Storage.BlobCreated events without polling the storage account, and each downstream service should receive only the events it needs. What should the architect configure?

Select one answer
Show answer and explanation

Answer:

  • B. A system topic on the storage account with two event subscriptions, one routed to the resize function for all blob created events and another routed to the notification workflow with a subject filter limited to the thumbnails path.

Azure Storage automatically publishes blob events, including BlobCreated, to a built-in system topic in Event Grid. Event Grid evaluates every published event against each subscription's filter criteria and delivers a copy to every matching handler, so one subscription with no subject filter can send all events to the resize function while a second subscription with a subject filter for the thumbnails path sends only the relevant subset to the notification workflow, with push-based delivery and no polling.

Polling a single queue on a fixed schedule adds latency and defeats the requirement to react to events natively, and it does not provide any per-consumer filtering. Building a custom function that polls the storage account to populate a Service Bus topic reintroduces polling and unnecessary custom code that Event Grid's native storage integration already eliminates. A single unfiltered event subscription would deliver every blob created event, including uploads outside the thumbnails path, to the notification workflow, which does not satisfy the requirement that each service receive only the events it needs.

Reference: Event filtering in Azure Event Grid

Practice Test 8 ›

Study guides for AZ-305