exam questions

Exam AI-100 All Questions

View all questions & answers for the AI-100 exam

Exam AI-100 topic 3 question 2 discussion

Actual exam question from Microsoft's AI-100
Question #: 2
Topic #: 3
[All AI-100 Questions]

You design an AI solution that uses an Azure Stream Analytics job to process data from an Azure IoT hub. The IoT hub receives time series data from thousands of IoT devices at a factory.
The job outputs millions of messages per second. Different applications consume the messages as they are available. The messages must be purged.
You need to choose an output type for the job.
What is the best output type to achieve the goal? More than one answer choice may achieve the goal.

  • A. Azure Event Hubs
  • B. Azure SQL Database
  • C. Azure Blob storage
  • D. Azure Cosmos DB
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Stream Analytics can target Azure Cosmos DB for JSON output, enabling data archiving and low-latency queries on unstructured JSON data.
References:
https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-documentdb-output

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
ari_ira
Highly Voted 5 years, 6 months ago
I think Event Hubs may be th best output type https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-solution-patterns#incorporate-real-time-insights-into-your-application-through-data-stores
upvoted 21 times
...
abbam
Highly Voted 5 years, 1 month ago
Yes we can implement the auto purging with Cosmos DB TTL feature however when it comes to outputting million message per second, I think Event hub would be best tool, it’s designed for this type of scenario. Event hub also comes with retention period of 24hr by default which can be extended up to 7 days so auto purging is out of the box
upvoted 5 times
...
rveney
Most Recent 2 years ago
To achieve the goal of processing and purging millions of messages per second from an Azure Stream Analytics job, the best output type would be Azure Event Hubs (option A) or Azure Blob storage (option C). Both options can handle high throughput and scale to accommodate the volume of messages.
upvoted 1 times
...
dijaa
3 years, 10 months ago
Event Hub
upvoted 1 times
...
bigdatawork
4 years, 4 months ago
It does state "more than one answer choice may achieve the goal." So A & D are available outputs from Stream and handle the volume https://docs.microsoft.com/en-us/azure/stream-analytics/event-hubs-output
upvoted 1 times
...
duytran216
4 years, 9 months ago
It is definitely A.
upvoted 4 times
...
htest2000
4 years, 9 months ago
Event Hub handles millions of messages so I think A. should be the right answer
upvoted 2 times
...
Dubore
5 years ago
I think the right answer is A. One use of an event hub as output is when the output of a Stream Analytics job becomes the input of another streaming job. Differnet applications consume the messages and must delete the messages. reference: I think the right answer is A. One use of an event hub as output is when the output of a Stream Analytics job becomes the input of another streaming job. Differnet applications consume the messages and must delete the messages. reference: https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-define-outputs
upvoted 3 times
...
Egosyntonic
5 years, 1 month ago
Keep in mind that more than one answer could achieve the goal, so A and D should be the only possible solutions.
upvoted 1 times
Cornholioz
4 years, 4 months ago
But the question also says, "What is THE BEST output type to achieve the goal?". I think this is a radio button answer. Event Hubs is the best choice... but the question doesn't give much room to determine why one should be better than the other (cost / customization / skills required).
upvoted 1 times
...
...
giusecozza
5 years, 1 month ago
Agree for Event Hubs (A). The question is generically talking about "messages", not JSON outputs. Furthermore, on Event Hubs we have the concept of message retention ("messages must be purged") https://docs.microsoft.com/it-it/azure/event-hubs/event-hubs-quotas
upvoted 3 times
...
putriafebriana
5 years, 3 months ago
AzureStream Analytics can target Azure Cosmos DB for JSON output,enabling data archiving and low-latency queries on unstructured JSON data.This document covers some best practices for implementing this configuration. If you're unfamiliar with Azure Cosmos DB, seetheAzure Cosmos DB documentation to get started. At this time, Stream Analytics supports connection to Azure Cosmos DB only through the SQL API. Other Azure Cosmos DB APIs are not yet supported. If you point Stream Analytics to Azure Cosmos DB accounts created with other APIs, the data might not be properly stored. full link: https://opdhsblobprod01.blob.core.windows.net/contents/4a6d75bb3af747de838e6ccc97c5d978/9d8cfa97be0ad7954044efc08765a162?sv=2015-04-05&sr=b&si=ReadPolicy&sig=fvLWtxfiZawJ9WgdkV5137zeBVECogRp9XAMAu34XA8%3D&st=2020-03-23T19%3A21%3A05Z&se=2020-03-24T19%3A31%3A05Z#page=156&zoom=100,38,38 so, the answer is D
upvoted 1 times
...
ari_ira
5 years, 6 months ago
sorry this should be the right reference link https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-solution-patterns#incorporate-real-time-insights-into-your-application-with-event-messaging
upvoted 2 times
FArm
5 years, 3 months ago
I agree, it should be Event hubs. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-compare-event-hubs
upvoted 5 times
...
...
danhan
5 years, 6 months ago
I believe that Azure SQL is not correct because it does not provide the automatic purging feature (TTL), which comes with Cosmos DB. Am I right?
upvoted 1 times
Stants
5 years, 6 months ago
I agree with Danhan. Cosmos DB support TTL and event hub do not support that
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 ...