Certbus > Hortonworks > HCAHD > HADOOP-PR000007 > HADOOP-PR000007 Online Practice Questions and Answers

HADOOP-PR000007 Online Practice Questions and Answers

Questions 4

Which of the following tool was designed to import data from a relational database into HDFS?

A. HCatalog B. Sqoop

C. Flume

D. Ambari

Browse 108 Q&As
Questions 5

Which one of the following statements describes a Pig bag. tuple, and map, respectively?

A. Unordered collection of maps, ordered collection of tuples, ordered set of key/value pairs

B. Unordered collection of tuples, ordered set of fields, set of key value pairs

C. Ordered set of fields, ordered collection of tuples, ordered collection of maps

D. Ordered collection of maps, ordered collection of bags, and unordered set of key/value pairs

Browse 108 Q&As
Questions 6

What is the term for the process of moving map outputs to the reducers?

A. Reducing

B. Combining

C. Partitioning

D. Shuffling and sorting

Browse 108 Q&As
Questions 7

What does the following command do? register andapos;/piggyban):/pig-files.jarandapos;;

A. Invokes the user-defined functions contained in the jar file

B. Assigns a name to a user-defined function or streaming command

C. Transforms Pig user-defined functions into a format that Hive can accept

D. Specifies the location of the JAR file containing the user-defined functions

Browse 108 Q&As
Questions 8

You are developing a MapReduce job for sales reporting. The mapper will process input keys representing the year (IntWritable) and input values representing product indentifies (Text).

Indentify what determines the data types used by the Mapper for a given job.

A. The key and value types specified in the JobConf.setMapInputKeyClass and JobConf.setMapInputValuesClass methods

B. The data types specified in HADOOP_MAP_DATATYPES environment variable

C. The mapper-specification.xml file submitted with the job determine the mapper's input key and value types.

D. The InputFormat used by the job determines the mapper's input key and value types.

Browse 108 Q&As
Questions 9

You are developing a combiner that takes as input Text keys, IntWritable values, and emits Text keys, IntWritable values. Which interface should your class implement?

A. Combiner

B. Mapper

C. Reducer

D. Reducer

E. Combiner

Browse 108 Q&As
Questions 10

What does Pig provide to the overall Hadoop solution?

A. Legacy language Integration with MapReduce framework

B. Simple scripting language for writing MapReduce programs

C. Database table and storage management services

D. C++ interface to MapReduce and data warehouse infrastructure

Browse 108 Q&As
Questions 11

Which one of the following Hive commands uses an HCatalog table named x?

A. SELECT * FROM x;

B. SELECT x.-FROM org.apache.hcatalog.hive.HCatLoader('x');

C. SELECT * FROM org.apache.hcatalog.hive.HCatLoader('x');

D. Hive commands cannot reference an HCatalog table

Browse 108 Q&As
Questions 12

Given the following Pig commands: Which one of the following statements is true?

A. The $1 variable represents the first column of data in 'my.log'

B. The $1 variable represents the second column of data in 'my.log'

C. The severe relation is not valid

D. The grouped relation is not valid

Browse 108 Q&As
Questions 13

You need to run the same job many times with minor variations. Rather than hardcoding all job configuration options in your drive code, you've decided to have your Driver subclass org.apache.hadoop.conf.Configured and implement the org.apache.hadoop.util.Tool interface.

Indentify which invocation correctly passes.mapred.job.name with a value of Example to Hadoop?

A. hadoop "mapred.job.name=Example" MyDriver input output

B. hadoop MyDriver mapred.job.name=Example input output

C. hadoop MyDrive 璂 mapred.job.name=Example input output

D. hadoop setproperty mapred.job.name=Example MyDriver input output

E. hadoop setproperty ("mapred.job.name=Example") MyDriver input output

Browse 108 Q&As
Questions 14

Review the following data and Pig code.

M,38,95111

F,29,95060

F,45,95192

M,62,95102

F,56,95102

A = LOAD andapos;dataandapos; USING PigStorage(andapos;.andapos;) 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?

A. STORE A INTO andapos;myoutputandapos; USING PigStorage(andapos;,andapos;);

B. DUMP B using PigStorage(andapos;myoutputandapos;);

C. STORE B INTO andapos;myoutputandapos;;

D. DUMP B INTO andapos;myoutputandapos;;

Browse 108 Q&As
Questions 15

Examine the following Pig commands:

Which one of the following statements is true?

A. The SAMPLE command generates an "unexpected symbol" error

B. Each MapReduce task will terminate after executing for 0.2 minutes

C. The reducers will only output the first 20% of the data passed from the mappers

D. A random sample of approximately 20% of the data will be output

Browse 108 Q&As
Questions 16

Assuming default settings, which best describes the order of data provided to a reducer's reduce method:

A. The keys given to a reducer aren't in a predictable order, but the values associated with those keys always are.

B. Both the keys and values passed to a reducer always appear in sorted order.

C. Neither keys nor values are in any predictable order.

D. The keys given to a reducer are in sorted order but the values associated with each key are in no predictable order

Browse 108 Q&As
Questions 17

Identify the tool best suited to import a portion of a relational database every day as files into HDFS, and generate Java classes to interact with that imported data?

A. Oozie

B. Flume

C. Pig

D. Hue

E. Hive

F. Sqoop

G. fuse-dfs

Browse 108 Q&As
Questions 18

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?

A. 6

B. 3

C. 1

D. 0

E. 5

Browse 108 Q&As
Exam Code: HADOOP-PR000007
Exam Name: Hortonworks Certified Apache Hadoop 2.0 Developer (Pig and Hive Developer)
Last Update: May 10, 2024
Questions: 108 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99