existSpark, assuminglinesIs anDStreamObject, which of the following statements can periodically count the number of words on this stream?
Suggested Answer: C
Get Premium H13-723_V2.0 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
CA
Carey
7 months ago
I agree, D is confusing.
CH
Cherry
7 months ago
D looks complicated.
IR
Irving
7 months ago
But it gives a direct count!
KE
Keva
8 months ago
A seems too simple.
IR
Irving
8 months ago
I prefer option A.
HO
Holley
8 months ago
It counts words correctly with reduceByKey.
KR
Krissy
8 months ago
Why C?
HO
Holley
8 months ago
I think option C is the best.
CH
Chandra
8 months ago
B) seems like it would just count characters, not words.
ME
Mel
9 months ago
Wait, can you really use reduceByKey with a tuple like that?
RE
Remona
9 months ago
D) looks off, can't group by key like that.
AL
Alyce
9 months ago
I think C) works too, right?
HU
Huey
10 months ago
Haha, the `_.split??` part is a typo, right? Gotta love these exam questions that are full of bugs.
FE
Felicidad
10 months ago
Hmm, I'm going to go with option D. Seems like the most straightforward way to count the words.
BE
Belen
10 months ago
I'm pretty sure the answer is C, but I'm still confused about the `_.split??` part. What's that all about?
MA
Marsha
10 months ago
Option B is also a valid solution, as it counts the length of each word instead of just the number of occurrences.
PA
Paulina
10 months ago
Option D seems off to me too; I don't recall using groupByKey for counting like this. It feels like it would be inefficient.
BR
Brett
10 months ago
I remember practicing a similar question, and I think option B is counting word lengths instead of just counting words, so it can't be right.
TE
Teddy
11 months ago
I'm not entirely sure, but I feel like option A might be wrong since it uses reduce instead of reduceByKey.
GE
Georgene
11 months ago
I think option C looks familiar because it uses reduceByKey, which is often used for counting in Spark.
JA
Jacqueline
11 months ago
This is straightforward. I'd go with option C - it looks like the most direct way to count the words on the stream.
VI
Vicky
11 months ago
A) is the correct one for counting words!
BE
Berry
11 months ago
I've seen similar questions before. I think option C is the way to go, but I'll verify the details.
TE
Tegan
11 months ago
Option C is the correct answer. It uses the `reduceByKey` function to count the number of occurrences of each word.
DY
Dyan
12 months ago
I'm a bit confused by the question. Can we go over the concepts again before the exam?
YO
Yolande
12 months ago
Option A? Really? That's just printing the stream, not counting the words. Whoever wrote this question needs to go back to Spark 101.
NI
Nina
1 year ago
Okay, let's see. I think I know the basic approach, but I'll need to double-check the syntax.
AN
Anthony
1 year ago
Hmm, this looks like a tricky one. I'll need to think through the options carefully.
TH
Theron
5 months ago
I’m confused about D. It doesn’t seem right to me.
AL
Albert
5 months ago
I agree with Edgar, C makes the most sense.
GI
Gilma
7 months ago
Option B looks interesting, but I'm not sure.
TA
Tayna
7 months ago
I’m leaning towards option A. It seems straightforward.
ED
Edgar
7 months ago
I think option C is the best choice.