Hortonworks Data Platform Certified Developer - HDPCD Exam Practice Test

You want to count the number of occurrences for each unique word in the supplied input data. You've decided to implement this by having your mapper tokenize each word and emit a literal value 1, and then have your reducer increment a counter for each literal 1 it receives. After successful implementing this, it occurs to you that you could optimize this by specifying a combiner. Will you be able to reuse your existing Reduces as your combiner in this case and why or why not?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Review the following data and Pig code.
M,38,95111 F,29,95060 F,45,95192 M,62,95102 F,56,95102
A = LOAD 'data' USING PigStorage('.') as (gender:Chararray, age:int, zlp:chararray);
B = FOREACH A GENERATE age;
Which one of the following commands would save the results of B to a folder in hdfs named myoutput?
Correct Answer: B
Can you use MapReduce to perform a relational join on two large tables sharing a key? Assume that the two tables are formatted as comma-separated files in HDFS.
Correct Answer: E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You wrote a map function that throws a runtime exception when it encounters a control character in input data. The input supplied to your mapper contains twelve such characters totals, spread across five file splits. The first four file splits each have two control characters and the last split has four control characters.
Indentify the number of failed task attempts you can expect when you run the job with mapred.max.map.attempts set to 4:
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You have a directory named jobdata in HDFS that contains four files: _first.txt, second.txt, .third.txt and #data.txt. How many files will be processed by the FileInputFormat.setInputPaths () command when it's given a path object representing this directory?
Correct Answer: E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
To use a lava user-defined function (UDF) with Pig what must you do?
Correct Answer: A
Which one of the following statements is true about a Hive-managed table?
Correct Answer: D
0
0
0
0