Azure Event Grid System vs Custom Topic Selection
Short answer
B The solution fails because system topics are for Azure resource events, not application-published events; a custom topic is required.
Question
You are implementing an application by using Azure Event Grid to push near-real-time information to customers. Requirements: send events to thousands of customers that include hundreds of various event types; filter events by type before processing; handle authentication and authorization by using Microsoft Entra ID; publish events to a single endpoint.
Solution: Publish events to a system topic. Create an event subscription for each customer.
Does the solution meet the goal?
Key Takeaways
The solution incorrectly uses a system topic for application-published events. System topics are limited to Azure resource events, whereas custom topics allow applications to publish events. Filtering and Entra ID integration work correctly with custom topic subscriptions.
Expert Analysis
A system topic represents events raised by Azure resources, not events published by your own application to thousands of customers. Publishing to a single custom topic with per-customer subscriptions (with event-type filtering and Microsoft Entra authorization) is the appropriate design, so the proposed system-topic solution does not meet the goal.
The core of this scenario hinges on the architectural distinction between Azure Event Grid System Topics and Custom Topics, specifically regarding who acts as the publisher. The requirements state that you are "implementing an application" that will "push near-real-time information." This phrasing explicitly identifies your custom application code as the producer of the events. In Azure Event Grid terminology, a System Topic is reserved exclusively for events generated natively by Azure platform resources themselves, such as changes in a storage account, resource group updates, or virtual machine lifecycle events. When an Azure service like Blob Storage detects a new file, it publishes that event to its associated system topic. Your application does not publish to a system topic; rather, your application might subscribe to events originating from a system topic if it needs to react to Azure infrastructure changes. However, since the requirement is to push information from your application to customers, using a system topic is architecturally incorrect because your application cannot write directly into the managed system topics controlled by Azure services.
Conversely, a Custom Topic is designed precisely for this use case: allowing custom applications to publish their own business logic events into Event Grid. By publishing to a single custom topic, your application can send all relevant data points into the routing layer. From there, Event Grid handles the fan-out to subscribers. The scenario requires sending events to "thousands of customers," which implies a many-to-many or one-to-many distribution pattern. Creating an event subscription for each customer allows you to tailor the delivery. Crucially, the requirement to "filter events by type before processing" is supported by Event Grid subscriptions via content-based filtering rules. You can define filter criteria within each customer's subscription to ensure they only receive the specific hundreds of event types they are interested in, reducing payload size and processing overhead.
Furthermore, the requirement to handle authentication and authorization using Microsoft Entra ID is fully compatible with Custom Topics. While Event Grid supports various authentication methods, integrating with Microsoft Entra ID ensures secure access control for both publishing and subscribing endpoints. The constraint to "publish events to a single endpoint" refers to the ingestion point where your application sends the data. With a Custom Topic, this is a single URL/endpoint managed by your application's integration, whereas System Topics do not offer this ingestion capability to external custom applications. Therefore, the proposed solution fails because it misidentifies the publisher model. It attempts to force application-generated business events into a container meant for platform-generated operational events. The correct approach is to establish a Custom Topic as the central hub for your application's output, configure individual subscriptions for each customer with appropriate filters, and manage security via Entra ID. This aligns with standard Event Grid best practices for scalable, multi-tenant event distribution driven by custom software rather than infrastructure state changes.
Related Analysis
Practice All AI-200 Questions
Access 69 questions with complete answers and detailed explanations.
View Full AI-200 Practice Test →