exam questions

Exam DP-700 All Questions

View all questions & answers for the DP-700 exam

Exam DP-700 topic 3 question 4 discussion

Actual exam question from Microsoft's DP-700
Question #: 4
Topic #: 3
[All DP-700 Questions]

HOTSPOT -
You are processing streaming data from an external data provider.
You have the following code segment.


For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
MDWPartners
Highly Voted 5 months, 1 week ago
NO, YES, YES First row will be Washington, Contoso, 400 Fabrikam in Seattle will have 2 because row_rank_dense allows ties Yes, in both cases it will be 1
upvoted 36 times
...
Tuki93
Highly Voted 4 months, 3 weeks ago
NO, YES, YES Location Company UnitsSold Rank Washington DC Contoso 400 1 Washington DC Litware 300 2 Seattle Contoso 300 1 Seattle Litware 100 2 Seattle Fabrikam 100 2 San Francisco Relecloud 500 1 San Francisco Litware 500 1 New York Litware 1000 1 New York Contoso 300 2 New York Relecloud 300 2 New York Fabrikam 200 3
upvoted 26 times
...
smanzana
Most Recent 6 days, 5 hours ago
No Yes Yes
upvoted 1 times
...
rohitbinnani
6 days, 8 hours ago
Location Company UnitsSold Rank Washington DC Contoso 400 1 Washington DC Litware 300 2 Seattle Contoso 300 1 Seattle Litware 100 2 Seattle Fabrikam 100 2 San Francisco Relecloud 500 1 San Francisco Litware 500 1 New York Litware 1000 1 New York Contoso 300 2 New York Relecloud 300 2 New York Fabrikam 200 3
upvoted 1 times
...
Runu
1 week, 1 day ago
NO,YES,YES Sorted and Ranked Output: Location Company UnitsSold Rank Washington DC Contoso 400 1 Washington DC Litware 300 2 Seattle Contoso 300 1 Seattle Litware 100 2 Seattle Fabrikam 100 2 San Francisco Relecloud 500 1 San Francisco Litware 500 1 New York Litware 1000 1 New York Contoso 300 2 New York Relecloud 300 2 New York Fabrikam 200 3
upvoted 1 times
...
DarioReymago
2 weeks, 2 days ago
No, No, Yes Rows with the same UnitsSold value share the same rank
upvoted 1 times
...
kaushikcbs
2 weeks, 5 days ago
NO, YES, YES
upvoted 2 times
...
MasterOfData
3 weeks, 4 days ago
All the answers are wrong. The correct answers are no, yes, yes: datatable(Location:string, Company:string, UnitsSold:long) [ "New York", "Contoso", 300, "New York", "Litware", 1000, "New York", "Relecloud", 300, "New York", "Fabrikam", 200, "Seattle", "Contoso", 300, "Seattle", "Litware", 100, "Seattle", "Fabrikam", 100, "San Francisco", "Relecloud", 500, "San Francisco", "Litware", 500, "Washington DC", "Litware", 300, "Washington DC", "Contoso", 400 ] | sort by Location desc, UnitsSold desc | extend Rank = row_rank_dense(UnitsSold, prev(Location) != Location)
upvoted 3 times
...
PBridge
1 month ago
No, Yes, Yes Company is not part of ranking in this case.
upvoted 2 times
...
nicknamealready
1 month, 2 weeks ago
No, Yes Yes
upvoted 3 times
...
a85becd
1 month, 4 weeks ago
No-Yes-No Litware from New York will be displayed at the top of the result (N) Sorting prioritizes Location in descending order, so rows from locations like "Washington DC" or "San Francisco" will appear before "New York." Thus, Litware from New York will not be at the top. Fabrikam in Seattle will have value = 2 in the Rank column (Y) Within the "Seattle" location, Fabrikam and Litware both have UnitsSold = 100. These rows are tied, and row_rank_dense assigns both a rank of 2 because dense ranking skips no numbers. Litware in San Francisco will have the same value in the Rank column as Litware in New York (N) The row_rank_dense function assigns ranks independently for each Location. "Litware" in San Francisco and "Litware" in New York belong to different partitions and will have different ranks.
upvoted 2 times
a85becd
1 month, 4 weeks ago
Sorting: Rows are first sorted by Location in descending order (alphabetically) and then by UnitsSold in descending order Ranking: The row_rank_dense function assigns ranks within each Location. Rows with the same UnitsSold value share the same rank, and the next rank increments without gaps.
upvoted 1 times
...
...
13d2a97
2 months ago
No Yes No
upvoted 2 times
...
MultiCloudIronMan
3 months, 4 weeks ago
N̈o No YEs
upvoted 3 times
MultiCloudIronMan
3 months, 2 weeks ago
No Yes Yes
upvoted 4 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 ...