PrepAway - Latest Free Exam Questions & Answers

How many keys will be passed to the Reducer’s reduce method?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Six

B.
Five

C.
Four

D.
Two

E.
One

F.
Three

Explanation:
Only one key value pair will be passed from the two (the, 1) key value pairs.

4 Comments on “How many keys will be passed to the Reducer’s reduce method?

  1. Ram says:

    can you justify the answer six please.
    before going to reducer s$s will be applied so (the ,1) and (the,1) will be passed to reducer like (the ,1,1)




    1



    0

Leave a Reply

Your email address will not be published. Required fields are marked *