DP-700 · Question #56
You have a Fabric workspace that contains an eventstream named Eventstream1. Eventstream1 processes data from a thermal sensor by using event stream processing, and then stores the data in a…
The correct answer is B. Group by. To calculate the standard deviation of temperature in an eventstream, you must use a Group by operator to define the window or key over which the aggregate function will be applied.
Question
Options
- AExpand
- BGroup by
- CUnion
- DAggregate
How the community answered
(59 responses)- A3% (2)
- B76% (45)
- C7% (4)
- D14% (8)
Why each option
To calculate the standard deviation of temperature in an eventstream, you must use a Group by operator to define the window or key over which the aggregate function will be applied.
The Expand operator is used to flatten nested arrays or objects into separate rows, which is not relevant for calculating standard deviation.
The "Group by" transform operator is essential for calculating aggregate functions like standard deviation within an eventstream. It allows you to group events based on specific criteria, such as a time window or a common field, enabling the computation of aggregate statistics for each group, as standard deviation is an aggregate function requiring grouping.
The Union operator combines data from multiple streams or tables, which does not directly facilitate the calculation of standard deviation.
While standard deviation is an aggregate function, "Aggregate" itself is not a distinct transform operator in the same way "Group by" is in streaming contexts; "Group by" is the operator that enables aggregation over a defined scope.
Concept tested: Eventstream aggregation with Group by operator
Source: https://learn.microsoft.com/en-us/stream-analytics/stream-analytics-stream-analytics-query-reference-sql-operators#group-by-clause
Topics
Community Discussion
No community discussion yet for this question.