exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 30 discussion

Actual exam question from Microsoft's AZ-204
Question #: 30
Topic #: 6
[All AZ-204 Questions]

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?

  • A. Use publisher policies for retailers.
  • B. Create a partition for each retailer.
  • C. Define a namespace for each retailer.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
finnishr
Highly Voted 2 years, 1 month ago
Given answer is correct!
upvoted 11 times
KingChuang
1 year, 10 months ago
On my exam 2022-12-26. Chose:A
upvoted 6 times
...
...
FeriAZ
Most Recent 8 months, 2 weeks ago
Selected Answer: A
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.
upvoted 4 times
...
paunski7
1 year, 6 months ago
ChatGPT: Sorry, but the correct answer is B. Creating a partition for each retailer ensures that each retailer only sees the events that pertain to them, as each partition in Event Hubs is an independent stream of events. This also allows for easy addition and removal of retailers, as you can simply add or remove partitions accordingly. Using publisher policies for retailers or defining a namespace for each retailer are not the correct solutions for this scenario.
upvoted 1 times
rodso
2 months, 2 weeks ago
Copilot says it's A
upvoted 1 times
rodso
2 months, 2 weeks ago
Don't trust IA, the answer usually are not correct. sometimes ChatGpt says one thing, Gemini Another and Copilot another....
upvoted 1 times
...
...
nekkilodeon
1 year, 6 months ago
B is incorrect. The number of partitions is specified at the time an Event Hubs is created and can't be changed. https://learn.microsoft.com/en-us/training/modules/azure-event-hubs/2-event-hubs-overview
upvoted 5 times
...
Ciupaz
12 months ago
ChatGPT gives me A as correct answer. "Using publisher policies allows you to control and manage access to the Azure Event Hub at a more granular level. You can create separate publisher policies for each retailer, and each policy can have its own set of permissions, including the ability to send events to the event hub. This approach ensures that each retailer can only record sales for themselves, and it allows for easy management of retailer access, including adding or removing retailers as needed."
upvoted 2 times
...
macobuzi
1 year, 1 month ago
ChatGPT is not a reliable source for Azure.
upvoted 8 times
...
...
OPT_001122
1 year, 11 months ago
Selected Answer: A
A. Use publisher policies for retailers.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago