Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

The data can be loaded with or without defining the schema.

Answer»

The data can be LOADED with or without DEFINING the schema.
Choose the correct option from below list
(1)FALSE
(2)TRUE

Answer:-(2)True

2.

Which of the following is correct in Apache Pig?

Answer»

Which of the following is correct in Apache Pig?
CHOOSE the correct OPTION from below list
(1)Tuple: a SET of key/value PAIRS
(2)Tuple: an ordered set of fields.
(3)Bag: a collection of key/value pairs.
(4)Map: an ordered set of fields.

Answer:-(2)Tuple: an ordered set of fields.

3.

Which of the following is used to deal with metadata?

Answer»

Which of the following is used to deal with METADATA?
Choose the correct option from below list
(1)All of the options.
(2)LOADMETADATA
(3)LoadCaster
(4)LoadPushDown

Answer:-(2)LoadMetadata

4.

Which of the following is the default mode ?

Answer»

Which of the following is the DEFAULT mode ?
CHOOSE the correct option from below LIST
(1)Mapreduce
(2)Local
(3)Tez
(4)NONE of the options.

Answer:-(1)Mapreduce

5.

What is Piggybank?

Answer»

What is Piggybank?
CHOOSE the correct option from below LIST
(1)It s a FRAMEWORK
(2)It s a platform
(3)It s a repository
(4)NONE of the options.

Answer:-(3)It s a repository

6.

Pig uses

Answer»

Pig USES
Choose the CORRECT option from below list
(1)Lazy EVALUATION
(2)All of the options.
(3)ETL
(4)pipeline SPLITS

Answer:-(2)All of the options.

7.

Interactive mode of Pig is ____________

Answer»

Interactive mode of PIG is ____________
Choose the correct OPTION from below list
(1)HDFS
(2)None of the options.
(3)FS
(4)grunt

Answer:-(4)grunt

8.

Which of the operator is used to used to show values to keys used in Pig ?

Answer»

Which of the operator is used to used to show VALUES to KEYS used in Pig ?
Choose the correct OPTION from below LIST
(1)DESCRIBE
(2)declare
(3)show
(4)set

Answer:-(4)set

9.

Command to run pig in local mode?

Answer» COMMAND to run pig in local mode?
Choose the CORRECT option from below LIST
(1)pig-x local
(2)pig
(3)None of the OPTIONS.
(4)pig -x tez-local

Answer:-(1)pig-x local
10.

PigLatin is __________ while SQL is declarative.

Answer» PIGLATIN is __________ while SQL is declarative.
Choose the correct OPTION from below list
(1)FUNCTIONAL
(2)None of the options.
(3)declarative
(4)procedural

Answer:-(4)procedural
11.

Which of the following says Hadoop provides does Pig break?

Answer»

Which of the following SAYS Hadoop provides does Pig break?
Choose the correct option from below list
(1)Calls to the Reducer's reduce() method only occur after the last MAPPER has finished running.
(2)Task stragglers due to slow machines (not data skew) can be sped up through speculative execution.
(3)All VALUES associated with a single key are processed by the same Reducer.
(4)The Combiner (if DEFINED) may run MULTIPLE times, on the Map-side as well as the Reduce-side.

Answer:-(3)All values associated with a single key are processed by the same Reducer.

12.

You can run Pig in batch mode using __________ .

Answer»

You can run Pig in BATCH mode USING __________ .
CHOOSE the correct option from below LIST
(1)All of the options
(2)Pig shell command
(3)Pig scripts
(4)Pig Latin statements

Answer:-(3)Pig scripts

13.

Which of the following is not a scalar data type?

Answer»

Which of the FOLLOWING is not a scalar data TYPE?
Choose the correct option from below LIST
(1)float
(2)long
(3)Map
(4)int

Answer:-(3)Map

14.

What is the purpose of Pig in Hadoop?

Answer»

What is the purpose of Pig in Hadoop?
Choose the CORRECT option from below list
(1)To MOVE STREAMING data into HDFS
(2)To provide a HIGH level scripting language on top of MR
(3)To move data into HDFS
(4)To run workflows

Answer:-(2)To provide a high level scripting language on top of MR

15.

Which of the following is false about Pig operators?

Answer»

Which of the following is false about PIG operators?
Choose the correct option from below list
(1)The DISPLAY operator will display the results to your terminal screen
(2)To RUN Pig in local mode, you need ACCESS to a single machine
(3)All of the options.
(4)To run Pig in mapreduce mode, you need access to a HADOOP CLUSTER and HDFS installation

Answer:-(1)The DISPLAY operator will display the results to your terminal screen

16.

Which of the following is used for debugging?

Answer»

Which of the following is used for debugging?
CHOOSE the correct option from below list
(1)execute
(2)THROW
(3)exec
(4)error

Answer:-(3)exec

17.

Which of the following is correct about Pig?

Answer»

Which of the following is correct about Pig?
CHOOSE the correct option from below list
(1)Pig may generate a different NUMBER of Hadoop jobs given a particular script, DEPENDENT on the amount/type of data that is being processed.
(2)Pig ALWAYS generates the same number of Hadoop jobs given a particular script, independent of the amount/type of data that is being processed.
Pig replaces the MapReduce core with its own execution ENGINE.
(3)When doing a default join, Pig will detect which join-type is probably the most efficient.

Answer:-(1)Pig may generate a different number of Hadoop jobs given a particular script, dependent on the amount/type of data that is being processed.

18.

Pig Latin statements are generally organized in ____________.

Answer» PIG Latin statements are generally organized in ____________.
Choose the correct option from below list
(1)All of the options.
(2)A series of TRANSFORMATION statements to process the data
(3)A LOAD STATEMENT to read data from the file system
(4)A DUMP statement to view results or a STORE statement to save the results

Answer:-(1)All of the options.
19.

Which of the following is an entry in jobconf ?

Answer»

Which of the following is an ENTRY in jobconf ?
Choose the CORRECT OPTION from below list
(1)pig.job
(2)NONE of the options.
(3)pig.input.dirs
(4)pig.feature

Answer:-(3)pig.input.dirs

20.

Filter functions are used in ____________.

Answer»

Filter functions are USED in ____________.
Choose the correct OPTION from below list
(1)FOREACH GENERATE STATEMENTS
(2)Both FOREACH and filter statements
(3)filter statements
(4)None of the options.

Answer:-(3)filter statements

21.

Which of the following is used to view the map reduce execution steps?

Answer»

Which of the FOLLOWING is USED to view the map reduce execution STEPS?
Choose the correct option from below LIST
(1)DUMP
(2)EXPLAIN
(3)DESCRIBE
(4)STORE

Answer:-(2)EXPLAIN

22.

Which of the following is true about Pig?

Answer»

Which of the FOLLOWING is true about Pig?
Choose the correct option from below list
(1)getOutputFormat() is called by Pig to get the InputFormat USED by the loader
(2)Pig works with data from many sources
(3)None of the options.
(4)LoadPredicatePushdown is same as LoadMetadata.setPartitionFilter

Answer:-(2)Pig works with data from many sources

23.

Which function tells LoadFunc to load which fields in the Pig script.

Answer»

Which function tells LoadFunc to load which FIELDS in the Pig script.
Choose the correct OPTION from below LIST
(1)None of the options.
(2)prepareToRead()
(3)pushProjection()
(4)relativeToAbsolutePath()

Answer:-(3)pushProjection()

24.

Which of the following helps to enable pig scripts?

Answer»

Which of the following helps to enable PIG scripts?
Choose the CORRECT option from below LIST
(1)PigUnit
(2)PigXUnit
(3)PigUnitX
(4)NONE of the options.

Answer:-(2)PigXUnit

25.

Which mode does PigUnit work by default?

Answer»

Which MODE does PigUnit work by default?
Choose the correct OPTION from below LIST
(1)TEZ
(2)mapreduce
(3)local
(4)None of the options.

Answer:-(3)local

26.

Which function is used to return hdfs files to ship to distributed cache.

Answer»

Which function is USED to return HDFS FILES to ship to distributed cache.
Choose the correct option from below list
(1)setUdfContextSignature()
(2)getShipFiles()
(3)relativeToAbsolutePath()
(4)getCacheFiles()

Answer:-(2)getShipFiles()

27.

Which of the command is used to run pig script in grunt shell?

Answer»

Which of the command is USED to run pig script in grunt shell?
Choose the correct OPTION from below LIST
(1)All of the OPTIONS.
(2)fetch
(3)declare
(4)run

Answer:-(4)run

28.

There is no connection between aggregate functions and group.

Answer»

There is no CONNECTION between AGGREGATE functions and group.
Choose the correct option from below list
(1)True
(2)False

Answer:-(1)True

29.

Which of the following function is used to read data in PIG ?

Answer»

Which of the following function is USED to read data in PIG ?
CHOOSE the CORRECT option from below list
(1)All of the OPTIONS.
(2)LOAD
(3)WRITE
(4)READ

Answer:-(2)LOAD