Hortonworks - Big Savings Alert – Don’t Miss This Deal - Ends In 1d 00h 00m 00s Coupon code: 26Y30OFF
  1. Home
  2. Hortonworks
  3. Free HDPCD Questions

Free Practice Questions for Hortonworks HDPCD Exam

Pass4Future also provide interactive practice exam software for preparing Hortonworks Data Platform Certified Developer (HDPCD) Exam effectively. You are welcome to explore sample free Hortonworks HDPCD Exam questions below and also try Hortonworks HDPCD Exam practice test software.

Page:    1 / 14   
Total 108 questions

Question 1

Determine which best describes when the reduce method is first called in a MapReduce job?



Answer : B


Question 2

You have written a Mapper which invokes the following five calls to the OutputColletor.collect method:

output.collect (new Text (''Apple''), new Text (''Red'') ) ;

output.collect (new Text (''Banana''), new Text (''Yellow'') ) ;

output.collect (new Text (''Apple''), new Text (''Yellow'') ) ;

output.collect (new Text (''Cherry''), new Text (''Red'') ) ;

output.collect (new Text (''Apple''), new Text (''Green'') ) ;

How many times will the Reducer's reduce method be invoked?



Answer : B

reduce()gets called once for each [key, (list of values)] pair. To explain, let's say you called:

out.collect(new Text('Car'),new Text('Subaru');

out.collect(new Text('Car'),new Text('Honda');

out.collect(new Text('Car'),new Text('Ford');

out.collect(new Text('Truck'),new Text('Dodge');

out.collect(new Text('Truck'),new Text('Chevy');

Thenreduce()would be called twice with the pairs

reduce(Car, <Subaru, Honda, Ford>)

reduce(Truck, <Dodge, Chevy>)


Question 3

To process input key-value pairs, your mapper needs to lead a 512 MB data file in memory. What is the best way to accomplish this?



Answer : C


Question 4

In a MapReduce job, the reducer receives all values associated with same key. Which statement best describes the ordering of these values?



Answer : B

Note:

* Input to theReduceris the sorted output of the mappers.

* The framework calls the application's Reduce function once for each unique key in the sorted order.

* Example:

For the given sample input the first map emits:

< Hello, 1>

< World, 1>

< Bye, 1>

< World, 1>

The second map emits:

< Hello, 1>

< Hadoop, 1>

< Goodbye, 1>

< Hadoop, 1>


Question 5

Which HDFS command displays the contents of the file x in the user's HDFS home directory?



Answer : C


Page:    1 / 14   
Total 108 questions