CCD-410 · Question #50
For each intermediate key, each reducer task can emit:
The correct answer is C. As many final key-value pairs as desired, as long as all the keys have the same type and all the values. Reducer reduces a set of intermediate values which share a key to a smaller set of values. Reducing lets you aggregate values together. A reducer function receives an iterator of input values from an input list. It then combines these values together, returning a single output…
Question
For each intermediate key, each reducer task can emit:
Options
- AAs many final key-value pairs as desired.
- BAs many final key-value pairs as desired, but they must have the same type as the intermediate
- CAs many final key-value pairs as desired, as long as all the keys have the same type and all the values
- DOne final key-value pair per value associated with the key; no restrictions on the type.
- EOne final key-value pair per key; no restrictions on the type.
How the community answered
(18 responses)- A11% (2)
- B11% (2)
- C72% (13)
- E6% (1)
Explanation
Reducer reduces a set of intermediate values which share a key to a smaller set of values. Reducing lets you aggregate values together. A reducer function receives an iterator of input values from an input list. It then combines these values together, returning a single output value.
Topics
Community Discussion
No community discussion yet for this question.