exam questions

Exam DP-200 All Questions

View all questions & answers for the DP-200 exam

Exam DP-200 topic 6 question 98 discussion

Actual exam question from Microsoft's DP-200
Question #: 98
Topic #: 6
[All DP-200 Questions]

A development team is making use of Azure Stream Analytics. They have defined the following SQL query:
WITH step1 AS (SELECT * FROM input1 PARTITION BY XYZID INTO 10), step2 AS (SELECT * FROM input2 PARTITION BY XYZID INTO 10)
SELECT * INTO output FROM step1 PARTITION BY XYZID UNION step2 PARTITION BY XYZID
Does the query represent the joining of two streams of repartitioned data?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Yes, this query does represent the joining of two streams of repartitioned data.
An example of this is given in the Microsoft documentation:
The following example query joins two streams of repartitioned data. When joining two streams of repartitioned data, the streams must have the same partition key and count. The outcome is a stream that has the same partition scheme.

The output scheme should match the stream scheme key and count so that each substream can be flushed independently. The stream could also be merged and repartitioned again by a different scheme before flushing, but you should avoid that method because it adds to the general latency of the processing and increases resource utilization.
Reference:
https://docs.microsoft.com/en-us/azure/stream-analytics/repartition

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
TonReurts
3 years, 9 months ago
This is a union of 2 streams, not a join.
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 ...