nerdexam
Microsoft

AZ-204 · Question #456

You are building a loyalty program for a major snack producer. When customers buy a snack at any of 100 participating retailers the event is recorded in Azure Event Hub. Each retailer is given a…

The correct answer is A. Use publisher policies for retailers. Event Hubs enables granular control over event publishers through publisher policies. Publisher policies are run-time features designed to facilitate large numbers of independent event publishers. With publisher policies, each publisher uses its own unique identifier when…

Submitted by carter_n· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

You are building a loyalty program for a major snack producer. When customers buy a snack at any of 100 participating retailers the event is recorded in Azure Event Hub. Each retailer is given a unique identifier that is used as the primary identifier for the loyalty program. Retailers must be able to be added or removed at any time. Retailers must only be able to record sales for themselves. You need to ensure that retailers can record sales. What should you do?

Options

  • AUse publisher policies for retailers.
  • BCreate a partition for each retailer.
  • CDefine a namespace for each retailer.

How the community answered

(25 responses)
  • A
    80% (20)
  • B
    12% (3)
  • C
    8% (2)

Explanation

Event Hubs enables granular control over event publishers through publisher policies. Publisher policies are run-time features designed to facilitate large numbers of independent event publishers. With publisher policies, each publisher uses its own unique identifier when publishing events to an event hub. Not C: An Event Hubs namespace is a management container for event hubs (or topics, in Kafka parlance). It provides DNS-integrated network endpoints and a range of access control and network integration management features such as IP filtering, virtual network service endpoint, and Private Link. https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-features

Topics

#Event Hubs#publisher policies#access control#event ingestion

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice