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:

Nan
1 months ago
Is it just me, or does this question make it sound like Spark has a sense of humor? Option C is the one.
upvoted 0 times
Alpha
2 days ago
User2: No, I believe it's option C.
upvoted 0 times
...
Leah
3 days ago
User1: I think option A is the correct one.
upvoted 0 times
...
...
Lyndia
2 months ago
Haha, 'assuminglinesIs anDStreamobject' - that's a bit of a mouthful! Option C seems the most straightforward to me.
upvoted 0 times
Merilyn
25 days ago
I think option A could also work, it's a common way to count words in a stream.
upvoted 0 times
...
Chau
1 months ago
I agree, option C looks like the simplest way to count the words.
upvoted 0 times
...
...
Elouise
2 months 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
2 months 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
2 months 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
2 months 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
Lai
1 months ago
User 4: Option D doesn't look right to me, it seems like a mistake.
upvoted 0 times
...
Mitsue
1 months ago
User 3: I'm not sure, but option B also seems like a good option.
upvoted 0 times
...
Levi
1 months ago
User 2: I disagree, I believe option C is the best choice.
upvoted 0 times
...
Vonda
1 months ago
User 1: I think option A is the correct one.
upvoted 0 times
...
...
Elouise
2 months 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