Question 421 · 462 in bank
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?
Show answer
Answer: A
Explanation
In Azure Event Hubs, a publisher is essentially an identity or role that can send events to an event hub. Publisher policies allow you to define rules or policies that control how and what data can be published to an event hub. Using publisher policies, you can assign a unique identifier to each retailer (publisher) when they send data to the event hub. This approach enables fine-grained control over event data ingress, ensuring that retailers can only submit data for themselves.
Source: Adapted from community discussion — FeriAZ
