Hortonworks Hortonworks-Certified-Apache-Hadoop-2.0- - Developer Hadoop 2.0 Certification exam for Pig and Hive Developer Exam

Question #6 (Topic: )
In a MapReduce job, you want each of your input files processed by a single map task.
How do you configure a MapReduce job so that a single map task processes each input file
regardless of how many blocks the input file occupies?
A. Increase the parameter that controls minimum split size in the job configuration. B. Write a custom MapRunner that iterates over all key-value pairs in the entire file. C. Set the number of mappers equal to the number of input files you want to process. D. Write a custom FileInputFormat and override the method isSplitable to always return false.
Answer: D
Question #7 (Topic: )
Which two of the following statements are true about Pig's approach toward data? Choose
2 answers
A. Accepts only data that has a key/value pair structure B. Accepts data whether it has metadata or not C. Accepts only data that is defined by metadata tables stored in a database D. Accepts tab-delimited text data only E. Accepts any data: structured or unstructured
Answer: B,E
Question #8 (Topic: )
Review the following data and Pig code:
[Hortonworks-Hortonworks-Certified-Apache-Hadoop-2.0--7.0/Hortonworks-Hortonworks-Certified-Apache-Hadoop-2.0-Developer-5_2.png]
What command to define B would produce the output (M,62,95l02) when invoking the
DUMP operator on B?
A. B = FILTER A BY (zip = = '95102' AND gender = = M"); B. B= FOREACH A BY (gender = = 'M' AND zip = = '95102'); C. B = JOIN A BY (gender = = 'M' AND zip = = '95102'); D. B= GROUP A BY (zip = = '95102' AND gender = = 'M');
Answer: A
Question #9 (Topic: )
Which one of the following statements describes the relationship between the
NodeManager and the ApplicationMaster?
A. The ApplicationMaster starts the NodeManager in a Container B. The NodeManager requests resources from the ApplicationMaster C. The ApplicationMaster starts the NodeManager outside of a Container D. The NodeManager creates an instance of the ApplicationMaster
Answer: D
Question #10 (Topic: )
When can a reduce class also serve as a combiner without affecting the output of a
MapReduce program?
A. When the types of the reduce operations input key and input value match the types of the reducers output key and output value and when the reduce operation is both communicative and associative. B. When the signature of the reduce method matches the signature of the combine method. C. Always. Code can be reused in Java since it is a polymorphic object-oriented programming language. D. Always. The point of a combiner is to serve as a mini-reducer directly after the map phase to increase performance. E. Never. Combiners and reducers must be implemented separately because they serve different purposes.
Answer: A
Download Exam
Page: 2 / 22
Total 108 questions