exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 3 question 27 discussion

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

You are designing an order processing system in Azure that will contain the Azure resources shown in the following table.

The order processing system will have the following transaction flow:
✑ A customer will place an order by using App1.
✑ When the order is received, App1 will generate a message to check for product availability at vendor 1 and vendor 2.
✑ An integration component will process the message, and then trigger either Function1 or Function2 depending on the type of order.
✑ Once a vendor confirms the product availability, a status message for App1 will be generated by Function1 or Function2.
✑ All the steps of the transaction will be logged to storage1.
Which type of resource should you recommend for the integration component?

  • A. an Azure Data Factory pipeline
  • B. an Azure Service Bus queue
  • C. an Azure Event Grid domain
  • D. an Azure Event Hubs capture
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
MaxBlanche
Highly Voted 4 years, 4 months ago
B would be a more appropriate answer
upvoted 101 times
mmmore
4 years, 4 months ago
Agreed, I believe this question is looking us to recognise that messages need be able sent from different application components. A service bus will do this. The actual orchestration via Data Factory doesn't make a lot of sense. Something like Durable (Azure) Functions would be more suited for that.
upvoted 12 times
...
andyR
4 years, 4 months ago
agreed
upvoted 4 times
...
Moley
3 years, 11 months ago
"An integration component will process the message, and then trigger either Function1 or Function2 depending on the type of order." to me this describes an Event Grid
upvoted 8 times
...
soren
3 years, 11 months ago
Agreed. There can be a generic trigger associated with the queue and within that trigger logic can determine the order type and execute the correct AZ function. The trigger can also do the logging. ADF could work but seems out of place for this task IMO.
upvoted 4 times
examineezer
3 years, 3 months ago
Question states "will process the message, and then trigger EITHER Function1 OR Function2" (not both)
upvoted 2 times
...
...
...
uzairahm007
Highly Voted 4 years, 4 months ago
Look at the question carefully it states: An integration component will **process** the message, and then trigger either Function1 or Function2 depending on the type of order. The keyword is process the message neither Service Bus nor Event Grid provide those functionalities. There is not mentioned where you would be storing the message but Azure Data Factory can integerate with various platforms and pick messages and based on that could fire either Function1 or Function2 based on order type.
upvoted 74 times
examineezer
3 years, 5 months ago
Event grid supports filtering. Message comes in. Filter the message based on type of order. SImples.
upvoted 2 times
...
PerfumoPeru
3 years, 9 months ago
Plus, this "process" should be audited, sending data to Azure Storage Acoount. So ADF is correct.
upvoted 4 times
...
Oracleist
4 years ago
an ETL tool for managing a transaction... mmm smells strange. BUS has a FIFO option that is necessary for "check availability"
upvoted 14 times
...
arseyam
4 years, 4 months ago
Microsoft Azure Service Bus is a fully managed enterprise message broker with message queues and public-subscribe topics. Service Bus is used to decouple applications and services from each other, providing the following benefits: Load-balancing work across competing workers Safely routing and transferring data and control across service and application boundaries Coordinating transactional work that requires a high-degree of reliability In the question When the order is received, App1 will generate a message to check for product availability at vendor 1 and vendor 2. With Topics the Publisher sends a message to a topic and one or more subscribers receive a copy of the message, depending on filter rules set on these subscriptions. https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#topics-and-subscriptions
upvoted 12 times
...
...
seaman33
Most Recent 3 months, 4 weeks ago
Selected Answer: B
Thinking as an architect: 1. Order requests must be processed with ordering guarantees, otherwise you'll get a mess 2. Although technically both ADF and ASB (with filtering) have required integration/processing capabilities, ADF doesn't provide ordering guarantees. Answer is B: ASB
upvoted 1 times
...
rxlicon
1 year, 7 months ago
the problem is that in the answers options you haven't a topic but only the queue service. So ASB can't process to different functions. Leaves only A, Azure Data factory
upvoted 1 times
...
manajerOfEmptyness
2 years, 3 months ago
Selected Answer: A
The requirement can be achieved with Service Bus topics/subscriptions by sending the message based on metadata to subscribers listening to a specific topic. But since there is no such answer Factory is second best
upvoted 1 times
...
jellybiscuit
2 years, 7 months ago
Selected Answer: B
This is what the Service Bus does.
upvoted 1 times
...
nidhogg
2 years, 8 months ago
Selected Answer: A
As @tteesstt said before, it's 1:M vs 1:1, it can't be SB. A) ADF pipeline
upvoted 1 times
...
AubinBakana
2 years, 8 months ago
Selected Answer: A
The answer is correct. I got it wrong at first but after analysis, I have come to understand the question better. The messaging, which is probably held using Service bus Topic, is done separately. This question is about the integration component, not the messaging service. ADF will do the processing of the messages, and the trigger F1 and/or F2.
upvoted 4 times
...
sapien45
2 years, 10 months ago
Azure Service Bus FIFO Delivery guarantee : At-Most-Once It stores messages in a "broker" (for example, a queue) until the consuming party is ready to receive the messages. B
upvoted 3 times
...
AberdeenAngus
2 years, 11 months ago
Where I work it's common to have the front end put messages in a service bus queue/topic to be processed by back end functions. This is critical to avoid the functions from being overwhelmed in busy times. So I'm going service bus. Also, I don't know how the ADF which some people are proposing could be triggered to process the message from the web app, in my experience ADF is more for batch processes.
upvoted 1 times
...
Pupu86
3 years ago
For people who chose B, you obviously didn’t setup and serverless environment with Azure before… without logging the data to storage you could do with Event Grid to determine the function app to call based on message type but when you need to manage the flow of data to storage account, you will ultimately need ADF or Logic App to handle the logic flow regardless whether you use ADF for ETL or not. Answer is Azure Data Factory
upvoted 2 times
...
StevensDKLrg
3 years ago
Selected Answer: A
The question clearly asks “Which type of resource should you recommend for the integration component?”. The integration component will “process the message, and then trigger either Function1 or Function2 depending on the type of order.” This is not asking how to send the message; it’s asking how to process the message. I believe the answer is correct, ADF.
upvoted 4 times
...
Dawn7
3 years, 1 month ago
Selected Answer: B
I would go with B
upvoted 1 times
...
arun
3 years, 1 month ago
Selected Answer: A
As per below link 'ADF pipeline' can consume message from Web Activity and it support transform as well so it can parse/validate the incoming message and call respective function (1 or 2).. https://docs.microsoft.com/en-us/azure/data-factory/concepts-pipelines-activities?tabs=data-factory#control-flow-activities I use ASB queue which cannot do message validation by itself to decide which function should be called further. However, ASB Topic can do the expected behavior but it's not mentioned in the answer so i think 'ADF pipeline' is best suitable from the given option.
upvoted 3 times
...
northgaterebel
3 years, 2 months ago
Selected Answer: B
Answer is Service Bus, no doubt. When to use: Order processing and financial transactions. https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services#comparison-of-services
upvoted 3 times
...
ScottyKnows
3 years, 2 months ago
Selected Answer: A
Multiple sources confirm it to be Datafactory.
upvoted 4 times
...
carlos045
3 years, 2 months ago
i think is B
upvoted 1 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