After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a KQL database that contains two tables named Stream and Reference. Stream contains streaming data in the following format.

You need to reduce how long it takes to run the KQL queryset.
Solution: You change the join type to kind=outer.
Does this meet the goal?
Show answerHide answer
Correct answer: B No
Explanation
Explanation:The goal is to reduce query execution time. Changing kind=inner to kind=outer (specifically fullouter, leftouter, or rightouter) typically increases runtime because outer joins preserve non-matching rows from one or both sides, requiring additional processing and memory. This change does not optimize performance; it likely degrades it.
Correct Option (B – No):
Outer joins are generally more expensive than inner joins because they must retain and process null-extended rows for non-matches.
The original inner join already filters to matching DeviceId values. An outer join would not reduce the row count or computational overhead.
For performance improvement in KQL, consider reducing data scope (time filters), using shuffle hints, or pre-filtering before the join, not changing to outer join.
Incorrect Option (A – Yes):
This is incorrect because outer joins do not improve query performance over inner joins; they add overhead.
The solution does not address any actual performance bottleneck (e.g., data distribution, large dimensions, or missing filters).
Without additional optimizations like filtering or materialized views, changing to outer join will not reduce runtime.
Reference:
Microsoft Kusto/KQL documentation: Join operator performance – "Outer joins are more resource-intensive than inner joins. Use inner joins when possible, and always apply filters before joining to reduce data shuffled."







