nerdexam
Microsoft

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.

Design and implement data ingestion and transformation

Question

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 lakehouse. You need to modify Eventstream1 to include the standard deviation of the temperature. Which transform operator should you include in the Eventstream1 logic?

Options

  • AExpand
  • BGroup by
  • CUnion
  • DAggregate

How the community answered

(59 responses)
  • A
    3% (2)
  • B
    76% (45)
  • C
    7% (4)
  • D
    14% (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.

AExpand

The Expand operator is used to flatten nested arrays or objects into separate rows, which is not relevant for calculating standard deviation.

BGroup byCorrect

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.

CUnion

The Union operator combines data from multiple streams or tables, which does not directly facilitate the calculation of standard deviation.

DAggregate

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

#Fabric Eventstream#Stream Processing#Aggregate Functions#Data Transformation

Community Discussion

No community discussion yet for this question.

Full DP-700 Practice