0% found this document useful (0 votes)
76 views3 pages

The Safer, Easier Way To Help You Pass Any IT Exams

This document contains 10 multiple choice questions about Hadoop concepts and tools. The questions cover topics like SequenceFiles, InputFormats, MapReduce jobs, Pig, Hive, Sqoop, HBase, Oozie, and Hadoop Streaming. The correct answers are provided for each question.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views3 pages

The Safer, Easier Way To Help You Pass Any IT Exams

This document contains 10 multiple choice questions about Hadoop concepts and tools. The questions cover topics like SequenceFiles, InputFormats, MapReduce jobs, Pig, Hive, Sqoop, HBase, Oozie, and Hadoop Streaming. The correct answers are provided for each question.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Thesafer,easierwaytohelpyoupassanyITexams.

1.WhatisaSequenceFile?
A.ASequenceFilecontainsabinaryencodingofanarbitrarynumberofhomogeneouswritableobjects.
B.ASequenceFilecontainsabinaryencodingofanarbitrarynumberofheterogeneouswritableobjects.
C.ASequenceFilecontainsabinaryencodingofanarbitrarynumberofWritableComparableobjects,in
sortedorder.
D.ASequenceFilecontainsabinaryencodingofanarbitrarynumberkey-valuepairs.Eachkeymustbe
thesametype.Eachvaluemustbesametype.
Answer:D
2.Givenadirectoryoffileswiththefollowingstructure:linenumber,tabcharacter,string:
Example:
abialkjfjkaoasdfjksdlkjhqweroij
kadfjhuwqounahagtnbvaswslmnbfgy
kjfteiomndscxeqalkzhtopedkfslkj
YouwanttosendeachlineasonerecordtoyourMapper.WhichInputFormatwouldyouusetocomplete
theline:setInputFormat(________.class);
A.BDBInputFormat
B.KeyValueTextInputFormat
C.SequenceFileInputFormat
D.SequenceFileAsTextInputFormat
Answer:C
3.InaMapReducejob,youwanteachofyouinputfilesprocessedbyasinglemaptask.Howdoyou
configureaMapReducejobsothatasinglemaptaskprocesseseachinputfileregardlessofhowmany
blockstheinputfileoccupies?
A.Increasetheparameterthatcontrolsminimumsplitsizeinthejobconfiguration.
B.WriteacustomMapRunnerthatiteratesoverallkey-valuepairsintheentirefile.
C.Setthenumberofmappersequaltothenumberofinputfilesyouwanttoprocess.
D.WriteacustomFileInputFormatandoverridethemethodisSplittabletoalwaysreturnfalse.
Answer:B
4.WhichofthefollowingbestdescribestheworkingsofTextInputFormat?
A.Inputfilesplitsmaycrosslinebreaks.Alinethatcrossestilesplitsisignored.
B.Theinputfileissplitexactlyatthelinebreaks,soeachRecordReaderwillreadaseriesofcomplete
lines.
C.Inputfilesplitsmaycrosslinebreaks.AlinethatcrossesfilesplitsisreadbytheRecordReadersof
bothsplitscontainingthebrokenline.
D.Inputfilesplitsmaycrosslinebreaks.AlinethatcrossesfilesplitsisreadbytheRecordReaderofthe
splitthatcontainstheendofthebrokenline.
E.Inputfilesplitsmaycrosslinebreaks.AlinethatcrossesfilesplitsisreadbytheRecordReaderofthe
splitthatcontainsthebeginningofthebrokenline.
Answer:D
5.WhichofthefollowingstatementsmostaccuratelydescribestherelationshipbetweenMapReduceand
2/4

Thesafer,easierwaytohelpyoupassanyITexams.

Pig?
A.Pigprovidesadditionalcapabilitiesthatallowcertaintypesofdatamanipulationnotpossiblewith
MapReduce.
B.PigprovidesnoadditionalcapabilitiestoMapReduce.PigprogramsareexecutedasMapReducejobs
viathePiginterpreter.
C.PigprogramsrelyonMapReducebutareextensible,allowingdeveloperstodospecial-purpose
processingnotprovidedbyMapReduce.
D.PigprovidestheadditionalcapabilityofallowingyoutocontroltheflowofmultipleMapReducejobs.
Answer:D
6.YouneedtoimportaportionofarelationaldatabaseeverydayasfilestoHDFS,andgenerateJava
classestoInteractwithyourimporteddata.Whichofthefollowingtoolsshouldyouusetoaccomplish
this?
A.Pig
B.Hue
C.Hive
D.Flume
E.Sqoop
F.Oozie
G.fuse-dfs
Answer:C,E
7.YouhaveanemployeewhoisaDateAnalystandisverycomfortablewithSQL.Hewouldliketorun
ad-hocanalysisondatainyourHDFSduster.Whichofthefollowingisadatawarehousingsoftwarebuilt
ontopofApacheHadoopthatdefinesasimpleSQL-likequerylanguagewell-suitedforthiskindofuser?
A.Pig
B.Hue
C.Hive
D.Sqoop
E.Oozie
F.Flume
G.HadoopStreaming
Answer:C
8.WorkflowsexpressedinOoziecancontain:
A.IterativerepetitionofMapReducejobsuntiladesiredanswerorstateisreached.
B.SequencesofMapReduceandPigjobs.Thesearelimitedtolinearsequencesofactionswith
exceptionhandlersbutnoforks.
C.SequencesofMapReducejobsonly;noPigorHivetasksorjobs.TheseMapReducesequencescan
becombinedwithforksandpathjoins.
D.SequencesofMapReduceandPig.Thesesequencescanbecombinedwithotheractionsincluding
forks,decisionpoints,andpathjoins.
Answer:D

3/4

Thesafer,easierwaytohelpyoupassanyITexams.

9.Youneedadistributed,scalable,dataStorethatallowsyourandom,realtimeread/writeaccessto
hundredsofterabytesofdata.Whichofthefollowingwouldyouuse?
A.Hue
B.Pig
C.Hive
D.Oozie
E.HBase
F.Flume
G.Sqoop
Answer:E
10.WhichofthefollowingutilitiesallowsyoutocreateandrunMapReducejobswithanyexecutableor
scriptasthemapperand/orthereducer?
A.Oozie
B.Sqoop
C.Flume
D.HadoopStreaming
Answer:D

4/4

You might also like