exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 2 question 27 discussion

Actual exam question from Microsoft's DP-203
Question #: 27
Topic #: 2
[All DP-203 Questions]

You have an Azure Stream Analytics job that receives clickstream data from an Azure event hub.
You need to define a query in the Stream Analytics job. The query must meet the following requirements:
✑ Count the number of clicks within each 10-second window based on the country of a visitor.
✑ Ensure that each click is NOT counted more than once.
How should you define the Query?

  • A. SELECT Country, Avg(*) AS Average FROM ClickStream TIMESTAMP BY CreatedAt GROUP BY Country, SlidingWindow(second, 10)
  • B. SELECT Country, Count(*) AS Count FROM ClickStream TIMESTAMP BY CreatedAt GROUP BY Country, TumblingWindow(second, 10)
  • C. SELECT Country, Avg(*) AS Average FROM ClickStream TIMESTAMP BY CreatedAt GROUP BY Country, HoppingWindow(second, 10, 2)
  • D. SELECT Country, Count(*) AS Count FROM ClickStream TIMESTAMP BY CreatedAt GROUP BY Country, SessionWindow(second, 5, 10)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
saty_nl
Highly Voted 2 years, 11 months ago
Correct answer.
upvoted 25 times
...
GameLift
Highly Voted 2 years, 9 months ago
keyword : do not overlap
upvoted 5 times
sdokmak
2 years ago
Not really, the other Count option doesn't overlap. But it does skip.
upvoted 1 times
...
...
kkk5566
Most Recent 9 months ago
Selected Answer: B
correct
upvoted 1 times
...
joponlu
1 year ago
Selected Answer: B
Yes B is correct!!!
upvoted 2 times
...
cale
1 year, 2 months ago
Selected Answer: B
B is correct
upvoted 3 times
...
igormmpinto
1 year, 7 months ago
Selected Answer: B
Correct
upvoted 2 times
...
allagowf
1 year, 8 months ago
A,C are excluded easily by the AVG function, the D also excluded by the session size that is less the window size and this will result in overlapped windows. B is left alone Hahaha just want to describe a different method to answer exam questions.
upvoted 4 times
...
Deeksha1234
1 year, 10 months ago
Selected Answer: B
B is correct
upvoted 3 times
...
rashjan
2 years, 6 months ago
Selected Answer: B
B is correct
upvoted 2 times
...
gssd4scoder
2 years, 7 months ago
Correct: https://docs.microsoft.com/en-us/stream-analytics-query/tumbling-window-azure-stream-analytics
upvoted 2 times
...
damaldon
2 years, 11 months ago
Correct, Tumbling Window is needed to use periodic time intervals
upvoted 2 times
...
Gowthamr02
2 years, 12 months ago
Correct!
upvoted 2 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 ...