nerdexam
Huawei

H13-723_V2.0 · Question #17

H13-723_V2.0 Question #17: Real Exam Question with Answer & Explanation

Sign in or unlock H13-723_V2.0 to reveal the answer and full explanation for question #17. The question stem and answer options stay visible for context.

Question

In Spark, assuming that lines is a DStream object, which of the following statements can periodically count the number of words on this stream?

Options

  • AIines.flatMap(.split" "")).map(word => (word, 1)).reduce( +_).print()
  • BIines.flatMap(.split" "")).map(word => (word,word.Iength())).reduceByKey ( +_).print()
  • CIines.fIatMap(.spIit" "")).map(word => (word, 1)).reduceByKey( +_).print()
  • DIines.flatMap(.split" "")).flatMap(word => (word, 1)).groupByKey( +_).print()

Unlock H13-723_V2.0 to see the answer

You've previewed enough free H13-723_V2.0 questions. Unlock H13-723_V2.0 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full H13-723_V2.0 Practice