exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 14 discussion

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

You are developing a solution that will use Azure messaging services.
You need to ensure that the solution uses a publish-subscribe model and eliminates the need for constant polling.
What are two possible ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Service Bus
  • B. Event Hub
  • C. Event Grid
  • D. Queue
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
Amankothari
Highly Voted 4 years, 9 months ago
Correct Ans is A & C https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber#issues-and-considerations
upvoted 53 times
rrongcheng
4 years, 9 months ago
"In Azure, consider using Service Bus or Event Grid. "
upvoted 9 times
...
coffecold
2 years, 6 months ago
Agree, but publish/subscribe is a feature of event-hub as well, but event-based receiving is not. That is why option B falls off.
upvoted 3 times
...
...
lion2k6
Highly Voted 4 years, 2 months ago
The article has been updated, the new text says "In Azure, consider using Service Bus, Event Hubs or Event Grid." So A, B and C should be all correct. https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber#issues-and-considerations
upvoted 51 times
coffecold
2 years, 6 months ago
Event Hubs : event-based receiving is not possible, you still need to poll. So B falls off
upvoted 1 times
...
...
overhill
Most Recent 5 months, 2 weeks ago
Service bus Requires Polling but you can do long polling. So the keyword is actually "Constant Polling" https://learn.microsoft.com/en-us/azure/service-bus-messaging/compare-messaging-services
upvoted 1 times
overhill
5 months, 2 weeks ago
So you don't have to constantly poll for Service Bus Event Grid But you have to constantly poll for Event Hubs Queue Storage
upvoted 1 times
...
...
Vichu_1607
7 months ago
Selected Answer: AC
A. Service Bus: Azure Service Bus supports a publish-subscribe model through its Topics and Subscriptions. It allows for messages to be published to a topic and then sent to all subscriptions to that topic, eliminating the need for constant polling. C. Event Grid: Azure Event Grid is a fully managed event routing service that uses a publish-subscribe model. It allows for event-based architecture and eliminates the need for constant polling by pushing the events to the subscribers.
upvoted 1 times
...
raymond_abcd
1 year, 2 months ago
Still no convinced why event hub is not a correct answer. Some say that the event hub consumer is polling? I read the following in the doc: Any entity that reads event data from an event hub is an event consumer. All Event Hubs consumers connect via the AMQP 1.0 session and events are delivered through the session as they become available. The client doesn't need to poll for data availability.
upvoted 2 times
ProtossOR89144
9 months, 4 weeks ago
You are right, event hub can utilize push, in fact it does both now: pull and push models: https://learn.microsoft.com/uk-ua/training/modules/azure-event-hubs/6-event-hubs-programming-guide - as u see pull "with" ReadEventsFromPartitionAsync and push with Event Processor client. Seems the key thing here services that supports ONLY push ways
upvoted 1 times
...
...
AndySmith
1 year, 5 months ago
On exam 3-Nov-2023. Went with proposed answer - 932/1000.
upvoted 1 times
...
juanckar
1 year, 9 months ago
This was on the exam (July 2023). Went with AC. Scored 917
upvoted 3 times
...
OPT_001122
2 years, 5 months ago
Selected Answer: AC
A & C Correct
upvoted 3 times
...
elequiel
2 years, 6 months ago
Got it in exam 20/10/2022
upvoted 5 times
...
AZAdam22
2 years, 10 months ago
Selected Answer: AC
A and C as both service bus and event grid implement publish-subscribe and don't require polling.
upvoted 3 times
renzoku
2 years, 10 months ago
exactly, Event HUB needs to poll and process an event
upvoted 1 times
...
...
liuliangzhou
2 years, 10 months ago
A, B and C should be all correct. It is strongly recommended to use available messaging products and services that support a publish-subscribe model, rather than building your own. In Azure, consider using Service Bus, Event Hubs or Event Grid. Other technologies that can be used for pub/sub messaging include Redis, RabbitMQ, and Apache Kafka. https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber
upvoted 2 times
...
meoukg
3 years, 1 month ago
Got it on 03/2022, I chose A. Service Bus & C. Event Grid
upvoted 3 times
...
heisenberg33
3 years, 2 months ago
Selected Answer: AC
Correct answer is A and C Ref: https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber#issues-and-considerations. Wrong answer B (eliminate the need for constant polling)Ref: https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-azure-event-hubs#trigger-polling-behavior
upvoted 8 times
...
[Removed]
3 years, 3 months ago
It seems that the selected answers are correct: "Existing technologies. It is strongly recommended to use available messaging products and services that support a publish-subscribe model, rather than building your own. In Azure, consider using Service Bus, Event Hubs or Event Grid. Other technologies that can be used for pub/sub messaging include Redis, RabbitMQ, and Apache Kafka." https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber
upvoted 2 times
...
lugospod
3 years, 3 months ago
Got this one 01/2022. Went with most voted (to avoid writing answers again)
upvoted 3 times
...
kondapaturi
3 years, 10 months ago
Service bus Event Grid
upvoted 3 times
...
mprokopy
3 years, 11 months ago
A & C Triggers of Event hub are long-polling, so B is not correct. https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-azure-event-hubs#trigger-polling-behavior
upvoted 6 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