Courseiva

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

You are designing a microservices architecture where each service needs to publish events to multiple subscribers. You choose Azure Event Grid. However, one of the subscribers is a third-party service that requires HTTPS endpoint and custom headers in the event delivery. How should you configure Event Grid?

⚠ Common exam trap

Candidates often confuse 'Advanced Filters' (which filter events) with 'Delivery Properties' (which modify the delivery request), leading them to incorrectly select Option A.

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

Set custom headers in the event subscription's 'Delivery Properties' configuration.

Azure Event Grid allows you to specify custom HTTP headers in the 'Delivery Properties' section of an event subscription. This feature lets you add static or dynamic headers (e.g., authentication tokens or correlation IDs) that are included in the HTTPS POST request to the subscriber's endpoint. It directly addresses the requirement for custom headers without needing any additional infrastructure.

Answer analysis

Option-by-option breakdown

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

  • Use Event Grid's 'Advanced Filters' to add custom headers to events.

    Why it's wrong here

    Advanced filters in Azure Event Grid are designed exclusively for evaluating specific properties within an event's payload or its system properties to determine if the event should be delivered to a particular subscription. They enable granular control over event flow based on criteria like 'subject', 'eventType', or custom data fields. However, advanced filters operate solely on the incoming event's data for filtering purposes and do not possess any mechanism or capability to modify the outgoing event by adding custom HTTP headers to the delivery request.

  • Use Event Grid domains to route events to the third-party service.

    Why it's wrong here

    Azure Event Grid domains serve as a management tool for large-scale multi-tenant scenarios, allowing organizations to manage multiple Event Grid topics for different customers or applications under a single domain resource. They simplify authorization and routing by providing a single endpoint for publishing events to various topics within the domain. While domains facilitate event routing to specific topics, they do not offer any functionality to inject or modify HTTP headers that are sent as part of an event delivery to a subscriber endpoint.

  • Set custom headers in the event subscription's 'Delivery Properties' configuration.

    Why this is correct

    The 'Delivery Properties' configuration within an Azure Event Grid event subscription is the precise mechanism for specifying custom HTTP headers. This feature allows users to define key-value pairs that Event Grid will include in the HTTP POST request when delivering an event to the subscriber's endpoint. These custom headers are crucial for scenarios like authentication (e.g., API keys), routing information, or providing context that the receiving service can utilize upon event ingestion.

  • Configure a dead-letter destination to handle delivery failures.

    Why it's wrong here

    Configuring a dead-letter destination in Azure Event Grid is a reliability feature intended to capture events that could not be successfully delivered to a subscriber endpoint after multiple retries. When an event fails delivery, it is sent to a specified storage account (the dead-letter destination) for later inspection and processing, preventing data loss. This mechanism is solely focused on handling delivery failures and has no function related to adding custom HTTP headers to successful event deliveries.

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.