Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Huawei Exam H13-723_V2.0 Topic 5 Question 48 Discussion

Actual exam question for Huawei's H13-723_V2.0 exam
Question #: 48
Topic #: 5
[All H13-723_V2.0 Questions]

existSpark, assuminglinesIs anDStreamobject, which of the following statements can periodically count this number of words on a stream?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Lyndia
18 hours ago
Haha, 'assuminglinesIs anDStreamobject' - that's a bit of a mouthful! Option C seems the most straightforward to me.
upvoted 0 times
...
Elouise
4 days ago
Hmm, you might be right. I see your point. Option C does seem like a better approach for counting words in a stream.
upvoted 0 times
...
Eden
5 days ago
I disagree, I believe option C is the right choice as it correctly maps each word to a count and then reduces by key to get the total count.
upvoted 0 times
...
Kenny
6 days ago
I'm not sure about the difference between reduce and reduceByKey. Looks like option C is the way to go though.
upvoted 0 times
...
Rhea
8 days ago
Option C looks good to me. It splits the lines into words, maps each word to a (word, 1) pair, and then reduces by key to get the count of each word.
upvoted 0 times
...
Elouise
9 days ago
I think option A is correct because it splits the lines into words and then counts the occurrences of each word.
upvoted 0 times
...

Save Cancel