NEW
Font size
S
M
L
XL
WorksheetsHADOOP AND MAP REDUCE
Total questions: 60
Worksheet time: 30mins
Name
Class
Date
1.
A ________ node acts as the Slave and is responsible for executing a Task assigned to it by the JobTracker.
a)
MapReduce
b)
Mapper
c)
TaskTracker
d)
JobTracker
2.
Point out the correct statement.
a)
MapReduce tries to place the data and the compute as close as possible
b)
Map Task in MapReduce is performed using the Mapper() function
c)
Reduce Task in MapReduce is performed using the Map() function
d)
All of the mentioned
3.
___________ part of the MapReduce is responsible for processing one or more chunks of data and producing the output results.
a)
Maptask
b)
Mapper
c)
Task execution
d)
All of the mentioned
4.
_________ function is responsible for consolidating the results produced by each of the Map() functions/tasks.
a)
Reduce
b)
Map
c)
Reducer
d)
All of the mentioned
5.
Point out the wrong statement.
a)
A MapReduce job usually splits the input data-set into independent chunks which are processed by the map tasks in a completely parallel manner
b)
The MapReduce framework operates exclusively on <key, value> pairs
c)
Applications typically implement the Mapper and Reducer interfaces to provide the map and reduce methods
d)
None of the mentioned
6.
Although the Hadoop framework is implemented in Java, MapReduce applications need not be written in ____________
a)
Java
b)
C
c)
C#
d)
None of the mentioned
7.
________ is a utility which allows users to create and run jobs with any executables as the mapper and/or the reducer.
a)
Hadoop Strdata
b)
Hadoop Streaming
c)
Hadoop Stream
d)
None of the mentioned
8.
__________ maps input key/value pairs to a set of intermediate key/value pairs.
a)
Mapper
b)
Reducer
c)
Both Mapper and Reducer
d)
None of the mentioned
9.
The number of maps is usually driven by the total size of ____________
a)
inputs
b)
outputs
c)
tasks
d)
None of the mentioned
10.
_________ is the default Partitioner for partitioning key space.
a)
HashPar
b)
Partitioner
c)
HashPartitioner
d)
None of the mentioned
11.
Running a ___________ program involves running mapping tasks on many or all of the nodes in our cluster.
a)
MapReduce
b)
Map
c)
Reducer
d)
All of the mentioned
12.
Hadoop I/O Hadoop comes with a set of ________ for data I/O.
a)
methods
b)
commands
c)
classes
d)
none of the mentioned
13.
Point out the correct statement.
a)
The sequence file also can contain a “secondary” key-value list that can be used as file Metadata
b)
SequenceFile formats share a header that contains some information which allows the reader to recognize is format
c)
There’re Key and Value Class Name’s that allow the reader to instantiate those classes, via reflection, for reading
d)
All of the mentioned
14.
Apache Hadoop ___________ provides a persistent data structure for binary key-value pairs.
a)
GetFile
b)
SequenceFile
c)
Putfile
d)
All of the mentioned
15.
How many formats of SequenceFile are present in Hadoop I/O?
a)
2
b)
3
c)
4
d)
5
16.
Point out the wrong statement.
a)
The data file contains all the key, value records but key N + 1 must be greater than or equal to the key N
b)
Sequence file is a kind of hadoop file based data structure
c)
Map file type is splittable as it contains a sync point after several records
d)
None of the mentioned
17.
Which of the following format is more compression-aggressive?
a)
Partition Compressed
b)
Record Compressed
c)
Block-Compressed
d)
Uncompressed
18.
The __________ is a directory that contains two SequenceFile.
a)
ReduceFile
b)
MapperFile
c)
MapFile
d)
None of the mentioned
19.
The ______ file is populated with the key and a LongWritable that contains the starting byte position of the record.
a)
Array
b)
Index
c)
Immutable
d)
All of the mentioned
20.
The _________ as just the value field append(value) and the key is a LongWritable that contains the record number, count + 1.
a)
SetFile
b)
ArrayFile
c)
BloomMapFile
d)
None of the mentioned
21.
____________ data file takes is based on avro serialization framework which was primarily created for hadoop.
a)
Oozie
b)
Avro
c)
cTakes
d)
Lucene
22.
___________ generates keys of type LongWritable and values of type Text.
a)
TextOutputFormat
b)
TextInputFormat
c)
OutputInputFormat
d)
None of the mentioned
23.
Point out the correct statement.
a)
The reduce input must have the same types as the map output, although the reduce output types may be different again
b)
The map input key and value types (K1 and V1) are different from the map output types
c)
The partition function operates on the intermediate key
d)
All of the mentioned
24.
In _____________ the default job is similar, but not identical, to the Java equivalent.
a)
Mapreduce
b)
Streaming
c)
Orchestration
d)
All of the mentioned
25.
An input _________ is a chunk of the input that is processed by a single map.
a)
Textformat
b)
split
c)
datanode
d)
all of the mentioned
26.
Point out the wrong statement.
a)
If V2 and V3 are the same, you only need to use setOutputValueClass()
b)
The overall effect of Streaming job is to perform a sort of the input
c)
A Streaming application can control the separator that is used when a key-value pair is turned into a series of bytes and sent to the map or reduce process over standard input
d)
None of the mentioned
27.
An ___________ is responsible for creating the input splits, and dividing them into records.
a)
TextOutputFormat
b)
TextInputFormat
c)
OutputInputFormat
d)
InputFormat
28.
______________ is another implementation of the MapRunnable interface that runs mappers concurrently in a configurable number of threads.
a)
MultithreadedRunner
b)
MultithreadedMap
c)
MultithreadedMapRunner
d)
SinglethreadedMapRunner
29.
Which of the following is the only way of running mappers?
a)
MapReducer
b)
MapRunner
c)
MapRed
d)
All of the mentioned
30.
_________ is the base class for all implementations of InputFormat that use files as their data source.
a)
FileTextFormat
b)
FileInputFormat
c)
FileOutputFormat
d)
None of the mentioned
31.
Which of the following method add a path or paths to the list of inputs?
a)
SetInputPaths()
b)
addInputPath()
c)
setInput()
d)
none of the mentioned
32.
___________ takes node and rack locality into account when deciding which blocks to place in the same split.
a)
CombineFileOutputFormat
b)
CombineFileInputFormat
c)
TextFileInputFormat
d)
None of the mentioned
33.
Point out the correct statement.
a)
With TextInputFormat and KeyValueTextInputFormat, each mapper receives a variable number of lines of input
b)
StreamXmlRecordReader, the page elements can be interpreted as records for processing by a mapper
c)
The number depends on the size of the split and the length of the lines.
d)
All of the mentioned
34.
The key, a ____________ is the byte offset within the file of the beginning of the line.
a)
LongReadable
b)
LongWritable
c)
LongWritable
d)
All of the mentioned
35.
_________ is the output produced by TextOutputFor mat, Hadoop default OutputFormat.
a)
KeyValueTextInputFormat
b)
KeyValueTextOutputFormat
c)
FileValueTextInputFormat
d)
All of the mentioned
36.
Point out the wrong statement.
a)
Hadoop sequence file format stores sequences of binary key-value pairs
b)
SequenceFileAsBinaryInputFormat is a variant of SequenceFileInputFormat that retrieves the sequence file’s keys and values as opaque binary objects
c)
SequenceFileAsTextInputFormat is a variant of SequenceFileInputFormat that retrieves the sequence file’s keys and values as opaque binary objects.
d)
None of the mentioned
37.
__________ is a variant of SequenceFileInputFormat that converts the sequence file’s keys and values to Text objects.
a)
SequenceFile
b)
SequenceFileAsTextInputFormat
c)
SequenceAsTextInputFormat
d)
All of the mentioned
38.
__________ class allows you to specify the InputFormat and Mapper to use on a per-path basis.
a)
MultipleOutputs
b)
MultipleInputs
c)
SingleInputs
d)
None of the mentioned
39.
___________ is an input format for reading data from a relational database, using JDBC.
a)
DBInput
b)
DBInputFormat
c)
DBInpFormat
d)
All of the mentioned
40.
Which of the following is the default output format?
a)
TextFormat
b)
TextOutput
c)
TextOutputFormat
d)
None of the mentioned
41.
Which of the following writes MapFiles as output?
a)
DBInpFormat
b)
MapFileOutputFormat
c)
SequenceFileAsBinaryOutputFormat
d)
None of the mentioned
42.
The split size is normally the size of a ________ block, which is appropriate for most applications.
a)
Generic
b)
Task
c)
Library
d)
HDFS
43.
Point out the correct statement.
a)
The minimum split size is usually 1 byte, although some formats have a lower bound on the split size
b)
Applications may impose a minimum split size
c)
The maximum split size defaults to the maximum value that can be represented by a Java long type
d)
All of the mentioned
44.
Point out the wrong statement.
a)
Hadoop works better with a small number of large files than a large number of small files
b)
CombineFileInputFormat is designed to work well with small files
c)
CombineFileInputFormat does not compromise the speed at which it can process the input in a typical MapReduce job
d)
None of the mentioned
45.
Which hdfs command is used to check for various inconsistencies?
a)
fsk
b)
fsck
c)
fetchdt
d)
none of the mentioned
46.
Point out the correct statement.
a)
All hadoop commands are invoked by the bin/hadoop script
b)
Hadoop has an option parsing framework that employs only parsing generic options
c)
Archive command creates a hadoop archive
d)
All of the mentioned
47.
HDFS supports the ____________ command to fetch Delegation Token and store it in a file on the local system.
a)
fetdt
b)
fetchdt
c)
fsk
d)
rec
48.
In ___________ mode, the NameNode will interactively prompt you at the command line about possible courses of action you can take to recover your data.
a)
Full
b)
partial
c)
recovery
d)
commit
49.
Point out the wrong statement.
a)
ClassNAME displays the class name needed to get the Hadoop jar
b)
Balancer Runs a cluster balancing utility
c)
An administrator can simply press Ctrl-C to stop the rebalancing process
d)
None of the mentioned
50.
_________ command is used to copy file or directories recursively.
a)
dtcp
b)
distcp
c)
dcp
d)
distc
51.
__________ mode is a Namenode state in which it does not accept changes to the name space.
a)
Recover
b)
Safe
c)
Rollback
d)
None of the mentioned
52.
__________ command is used to interact and view Job Queue information in HDFS.
a)
Queue
b)
priority
c)
dist
d)
all of the mentioned
53.
Which of the following command runs the HDFS secondary namenode?
a)
Secondary namenode
b)
secondarynamenode
c)
secondary_namenode
d)
none of the mentioned
54.
Which of the following is used for the MapReduce job Tracker node?
a)
mradmin
b)
tasktracker
c)
jobtracker
d)
none of the mentioned
55.
Which of the following is a common hadoop maintenance issue?
a)
Lack of tools
b)
Lack of configuration management
c)
Lack of web interface
d)
None of the mentioned
56.
___________ mode allows you to suppress alerts for a host, service, role, or even the entire cluster.
a)
Safe
b)
Maintenance
c)
Secure
d)
All of the mentioned
57.
Point out the wrong statement.
a)
If you set the HBase service into maintenance mode, then its roles (HBase Master and all Region Servers) are put into effective maintenance mode
b)
If you set a host into maintenance mode, then any roles running on that host are put into effective maintenance mode
c)
Putting a component into maintenance mode prevent events from being logged
d)
None of the mentioned
58.
__________ Manager’s Service feature monitors dozens of service health and performance metrics about the services and role instances running on your cluster.
a)
Microsoft
b)
Cloudera
c)
Amazon
d)
None of the mentioned
59.
NameNode is monitored and upgraded in a __________ transition.
a)
safemode
b)
securemode
c)
servicemode
d)
none of the mentioned
60.
Which of the tab shows all the role instances that have been instantiated for this service?
a)
Service
b)
Status
c)
Instance
d)
All of the mentioned
Reset
