The Safer, Easier Way To Help You Pass Any IT Exams
The Safer, Easier Way To Help You Pass Any IT Exams
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