Cloudera
CCD-410 · Question #44
You have the following key-value pairs as output from your Map task: (the, 1) (fox, 1) (faster, 1) (than, 1) (the, 1) (dog, 1) How many keys will be passed to the Reducer's reduce method?
The correct answer is B. Five. Only one key value pair will be passed from the two (The, 1) key value pairs.
Developing with Apache Spark Core
Question
You have the following key-value pairs as output from your Map task:
(the, 1) (fox, 1) (faster, 1) (than, 1) (the, 1) (dog, 1) How many keys will be passed to the Reducer's reduce method?
Options
- ASix
- BFive
- CFour
- DTwo
- EOne
- FThree
How the community answered
(50 responses)- B78% (39)
- C10% (5)
- D6% (3)
- E2% (1)
- F4% (2)
Explanation
Only one key value pair will be passed from the two (The, 1) key value pairs.
Topics
#reducer keys#key grouping#unique keys#MapReduce output
Community Discussion
No community discussion yet for this question.