Courseiva

AZ-204 Practice Question: Connect to and consume Azure services and third-party services

You are designing a solution that uses Azure Event Grid to handle events from multiple Azure services. The events must be filtered and routed to different endpoints based on event type. Which component should you use to filter events before they are sent to subscribers?

⚠ Common exam trap

Many exam-takers confuse the role of a topic (which is just a channel for events) with the filtering capability that is actually implemented at the subscription level, leading them to incorrectly select Event Grid Topic.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Event subscription with filters

C is correct because Event Subscriptions in Azure Event Grid allow you to define filters on event types, subject prefixes/suffixes, and advanced filtering (e.g., based on data fields) to control which events are delivered to each subscriber. This filtering happens before the events are sent to the endpoint, ensuring only matching events are routed.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Event grid domain

    Why it's wrong here

    An Event Grid domain serves as a management construct for a collection of custom topics, providing authentication and authorization for publishers and subscribers across multiple applications. While it centralizes event management, the domain itself does not perform event filtering. Filtering logic is applied at the individual event subscription level, allowing subscribers to specify which events from any topic within the domain they wish to receive. This separation ensures granular control over event delivery.

  • Event grid topic

    Why it's wrong here

    An Event Grid topic acts as the endpoint where publishers send events. It is a fundamental component for event routing, serving as the channel through which events flow from a source to Event Grid. However, a topic's primary role is to receive and distribute events, not to filter them. Filtering capabilities are implemented by event subscriptions, which are configured to listen to a specific topic and apply criteria before forwarding events to handlers.

  • Event subscription with filters

    Why this is correct

    An Event Grid event subscription is the precise mechanism for selecting and routing specific events to an event handler. Subscribers define criteria using basic filters (e.g., event type, subject begins/ends with) or advanced filters (e.g., properties within the event payload) directly within their subscription configuration. This ensures that only relevant events, matching the specified conditions, are delivered to the designated endpoint, optimizing processing and reducing unnecessary traffic.

  • Event handler

    Why it's wrong here

    An event handler is the destination or application endpoint that receives and processes events delivered by Event Grid. While it is responsible for the business logic associated with an event, the event handler itself does not perform the initial filtering of events from the topic. Event Grid applies all defined filters at the subscription level before delivering events to the handler, meaning the handler only receives events that have already met the subscription's criteria.

About these practice questions

This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.