exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 6 question 3 discussion

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

DRAG DROP -
You develop software solutions for a mobile delivery service. You are developing a mobile app that users can use to order from a restaurant in their area. The app uses the following workflow:
1. - A driver selects the restaurants for which they will deliver orders.
2. - Orders are sent to all available drivers in an area.
3. - Only orders for the selected restaurants will appear for the driver.
4. - The first driver to accept an order removes it from the list of available orders.
You need to implement an Azure Service Bus solution.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1: Create a single Service Bus Namespace
To begin using Service Bus messaging entities in Azure, you must first create a namespace with a name that is unique across Azure. A namespace provides a scoping container for addressing Service Bus resources within your application.
Box 2: Create a Service Bus Topic for each restaurant for which a driver can receive messages.
Create topics.
Box 3: Create a Service Bus subscription for each restaurant for which a driver can receive orders.
Topics can have multiple, independent subscriptions.
References:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview

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
realbart
Highly Voted 5 years, 2 months ago
Options: - Create a single Service Bus Namespace. - Create a single Service Bus Subscription. - Create a single Service Bus Topic. - Create a Service Bus Namespace for each restaurant for which a driver can receive messages. - Create a Service Bus Subscription for each restaurant for which a driver can receive messages. - Create a Service Bus Topic for each restaurant for which a driver can receive messages. Answer: - Create a single Service Bus Namespace. - Create a single Service Bus Topic. - Create a Service Bus Subscription for each restaurant for which a driver can receive messages.
upvoted 76 times
temporal111
5 years ago
I'm sorry, could you explain why don't use more than 1 topic? As far as I know, you could create a topic for each restaurant, then a driver could create a subscription to each topic (restaurant) to receive order from them.
upvoted 3 times
chaudh
4 years, 11 months ago
It's better if you have 1 topic & multiple subscriptions. You can handle the business logic in you application instead (e.g. use query or filter...)
upvoted 4 times
minsma
4 years, 4 months ago
how it is better to have all messages on the same topic?
upvoted 2 times
...
...
...
...
Khang
Highly Voted 5 years, 4 months ago
Create a single bus topic is correct. Not need create topic for each restaurants.
upvoted 15 times
fox_song
5 years, 4 months ago
Because driver only accepts orders from the restaurants he/she subscribes, you need different tops to represent different restaurants.
upvoted 9 times
hmirko
5 years, 3 months ago
how do you know that subscriptions does not represent different restaurants? (with proper filtering set)
upvoted 2 times
...
lau13
5 years, 1 month ago
See example, think about the S1/S2/S3 are just the areas, so you can use filter to determine which areas to deliver the message to. https://github.com/Azure/azure-service-bus/blob/master/samples/DotNet/GettingStarted/BasicSendReceiveTutorialwithFilters/BasicSendReceiveTutorialWithFilters/Program.cs
upvoted 1 times
...
Brak
4 years, 5 months ago
Use a filter on each driver's subscription to select preferred restaurants.
upvoted 2 times
...
...
...
stevenazure
Most Recent 4 years, 3 months ago
It says orders are sent to all available drivers in an area. Why do you guys all think each restaurant has a topic which is different from that
upvoted 1 times
...
sumaiyap86
4 years, 3 months ago
The given answer seems to be correct: - Create a single Service Bus Namespace. - Create a Service Bus Subscription for each restaurant for which a driver can receive messages. - Create a Service Bus Topic for each restaurant for which a driver can receive messages.
upvoted 3 times
sumaiyap86
4 years, 3 months ago
It is a n:n relationship between drivers and restaurants. One driver can subscribe to multiple topics (restaurants) and one topic (restaurant) can have multiple subscribers (drivers)
upvoted 1 times
...
...
samyoyoyo
4 years, 6 months ago
The right answer is definitely: 1. Create a single service bus namespace 2. Create a single service bus Topic 3. Create a service bus subscription for each...
upvoted 3 times
Brak
4 years, 5 months ago
Agreed. Each driver's app filters for the restaurants they will deliver for. The solution does have a real problem though: you can't delete a message from a topic. Topics don't retain messages, unlike queues.
upvoted 1 times
Brak
4 years, 5 months ago
Sorry, I got the last bit wrong. The app doesn't delete the message from the topic, but from a separate list of jobs. All good. Mea culpa.
upvoted 1 times
...
...
...
Juanlu
4 years, 7 months ago
In my opinion de answer is correct. And also, second option discussed about Single Topic VS Multiple Topic, I think both are correct, but probably Single Topic is a best option. In this link just a discussion about it: https://stackoverflow.com/questions/41759502/azure-service-bus-multiple-topics-vs-filtered-topic
upvoted 1 times
...
SilNilanjan
4 years, 10 months ago
In my view, the correct answer should be - Create a single Service Bus Namespace Create a single Service Bus Topic Create a Service Bus Subscription for each restaurant..
upvoted 2 times
...
AnkitN
4 years, 10 months ago
You should first create a Service Bus Namespace. Here you should have just one Topic. If you have multiple topics, then an order needs to be sent to all topics. Then deleting an order once it has been picked by a driver will an issue. You can create subscriptions and create rules based on driver and area.
upvoted 3 times
minsma
4 years, 4 months ago
why do orders need to be sent to all topics? if every restaurant would have its own topic? When the driver reads from that restaurant topic message is deleted.
upvoted 1 times
...
...
Johnnien
4 years, 11 months ago
options: http://www.microsoftbraindumps.com/wp-content/uploads/2019/03/pass-leader-az-203-dumps-101.jpg
upvoted 15 times
...
harry973
4 years, 11 months ago
Create a Service Bus Subscription for each restaurant is correct. order of given restaurant needs to be removed from subscription after a driver selects it, its possible only if multiple orders listen to single subscription and delete once accepted by any one driver so other driver cannot read order again.
upvoted 1 times
harry973
4 years, 11 months ago
Create a single Service Bus Namespace Create a single Service Bus Topic Create a Service Bus Subscription for each restaurant..
upvoted 2 times
...
...
brajen
4 years, 11 months ago
Do not get confuse. Given answer is correct Only. Create a single Service Bus Namespace. Create a Topic for each restaurant Create a Service Bus Subscription for each restaurant for which a driver can receive
upvoted 8 times
quokka
4 years, 10 months ago
Correct. Each driver subscribes to the topics/restaurants they are interested. Else each driver gets all the orders and need to figure out (business logic) which ones they subscribe to... totally defeat the efficiency for doing pub/sub.
upvoted 4 times
...
...
tsimbah
5 years, 1 month ago
http://www.certifychat.com/threads/nov-2019-new-azure-az-203-dumps-of-vce-and-pdf-braindumps-exam-questions.140732/
upvoted 3 times
...
VMCoder
5 years, 3 months ago
options?
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 ...