Huawei
H13-723_V2.0 · Question #138
H13-723_V2.0 Question #138: Real Exam Question with Answer & Explanation
Sign in or unlock H13-723_V2.0 to reveal the answer and full explanation for question #138. The question stem and answer options stay visible for context.
Question
In Spark application development, which of the following codes can correctly count words?
Options
- Aval counts = textFile.map (line => line.split ("')).map (-rd => (word, 1)).reduceByKey(_ +_)
- Bval counts = textFile.flatMap (line=>line.split (" ")).map (word => (word, 1)).reduceByKey(_ +_)
- Cval counts = textFile.map (line=>line.split (" ")).map (word => (word, 1)).groupByKey ()
- Dval counts = textFile.flatMap (line=>line.split (" ")).map (word => (word, 1)).groupByKey ()
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.