Huawei
H13-723_V2.0 · Question #53
In Spark, assuming that lines is a DStream object, the filter statement can filter out 80% of the data. Which statement is correct for the following two statements: X…
The correct answer is A. X has higher performance than Y. See the full explanation below for the reasoning.
Question
In Spark, assuming that lines is a DStream object, the filter statement can filter out 80% of the data. Which statement is correct for the following two statements:
X: lines.filter(...).groupByKey(...) Y: lines.groupByKey(...).filter(...)
Options
- AX has higher performance than Y
- BX has lower performance than Y
- CX and Y have the same performance
- DIt is impossible to determine the performance difference between X and Y
How the community answered
(37 responses)- A73% (27)
- B16% (6)
- C3% (1)
- D8% (3)
Community Discussion
No community discussion yet for this question.