APACHE PIG HADOOP DEVELOPER PRACTICE
QUESTIONS MAMUN QUESTIONS AND ANSWERS
LATEST UPDATE 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT CONFIRMED
ANSWERS BEST RATED TO SCORE A+ FOR
SUCCESS
1. What is PIG in Hadoop ?
A. Pig is a subset of the Hadoop API for data processing
B. Pig is a part of the Apache Hadoop project that provides C-like
scripting language interface for data processing
C. Pig is a part of the Apache Hadoop project. It is a "PL-SQL"
interface for data processing in Hadoop cluster
D. PIG is the third most popular form of meat in the US behind
poultry and beef. - CORRECT ANSWERS B
2. Which of the following statements most accurately describes the
relationship between MapReduce and Pig?
A. Pig provides additional capabilities that allow certain types of data
manipulation not possible with MapReduce.
B. Pig provides no additional capabilities to MapReduce. Pig
programs are executed as MapReduce jobs via the Pig interpreter.
C. Pig programs rely on MapReduce but are extensible, allowing
developers to do special-purpose processing not provided by
MapReduce.
D. Pig provides the additional capability of allowing you to control
the flow of multiple MapReduce jobs. - CORRECT ANSWERS D
,APACHE PIG HADOOP DEVELOPER PRACTICE
QUESTIONS MAMUN QUESTIONS AND ANSWERS
LATEST UPDATE 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT CONFIRMED
ANSWERS BEST RATED TO SCORE A+ FOR
SUCCESS
3. T/F: Grunt remembers command history. - CORRECT ANSWERS
True
4. Top PIG commands: (5) _______, _______, describe, limit, filter -
CORRECT ANSWERS load, dump, describe, limit, filter
5. Each pig statement ends with? - CORRECT ANSWERS ;
6. T/F: Describe command in PIG is just like Oracle: - CORRECT
ANSWERS True
7. Dump command does what? (in PIG) - CORRECT ANSWERS Ans:
it's like cat command in unix
8. Example of limit command: (PIG) - CORRECT ANSWERS Ans: B =
LIMIT A 100 ;
(A is an alias, B is new alias)
9: PIG: FOREACH does what? - CORRECT ANSWERS Ans: runs
through each row
, APACHE PIG HADOOP DEVELOPER PRACTICE
QUESTIONS MAMUN QUESTIONS AND ANSWERS
LATEST UPDATE 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT CONFIRMED
ANSWERS BEST RATED TO SCORE A+ FOR
SUCCESS
10. PIG: Example of FOREACH: - CORRECT ANSWERS Ans: C =
FOREACH B GENERATE symbol, date, close:
(symbol, date, close are already defined column labels in B)
11. What would following do? (PIG)
A = load 'file1' using PigStorage(':'); - CORRECT ANSWERS Ans: will
create alias A and fields will be $0, $1 etc using : as field separator
12. Given above, how to create an alias called A1 using just the first
column in A and call the column ID. (PIG) - CORRECT ANSWERS Ans:
A1 = Foreach A Generate $0 as ID;
13. How to run pigscript1.pig using the local machine? - CORRECT
ANSWERS Ans: pig -x local pigscript1.pig
14. PIG: If you ran: A = load './input.txt'; will it work? - CORRECT
ANSWERS Ans: Yes:
TAB will be used as the default delimeter.
QUESTIONS MAMUN QUESTIONS AND ANSWERS
LATEST UPDATE 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT CONFIRMED
ANSWERS BEST RATED TO SCORE A+ FOR
SUCCESS
1. What is PIG in Hadoop ?
A. Pig is a subset of the Hadoop API for data processing
B. Pig is a part of the Apache Hadoop project that provides C-like
scripting language interface for data processing
C. Pig is a part of the Apache Hadoop project. It is a "PL-SQL"
interface for data processing in Hadoop cluster
D. PIG is the third most popular form of meat in the US behind
poultry and beef. - CORRECT ANSWERS B
2. Which of the following statements most accurately describes the
relationship between MapReduce and Pig?
A. Pig provides additional capabilities that allow certain types of data
manipulation not possible with MapReduce.
B. Pig provides no additional capabilities to MapReduce. Pig
programs are executed as MapReduce jobs via the Pig interpreter.
C. Pig programs rely on MapReduce but are extensible, allowing
developers to do special-purpose processing not provided by
MapReduce.
D. Pig provides the additional capability of allowing you to control
the flow of multiple MapReduce jobs. - CORRECT ANSWERS D
,APACHE PIG HADOOP DEVELOPER PRACTICE
QUESTIONS MAMUN QUESTIONS AND ANSWERS
LATEST UPDATE 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT CONFIRMED
ANSWERS BEST RATED TO SCORE A+ FOR
SUCCESS
3. T/F: Grunt remembers command history. - CORRECT ANSWERS
True
4. Top PIG commands: (5) _______, _______, describe, limit, filter -
CORRECT ANSWERS load, dump, describe, limit, filter
5. Each pig statement ends with? - CORRECT ANSWERS ;
6. T/F: Describe command in PIG is just like Oracle: - CORRECT
ANSWERS True
7. Dump command does what? (in PIG) - CORRECT ANSWERS Ans:
it's like cat command in unix
8. Example of limit command: (PIG) - CORRECT ANSWERS Ans: B =
LIMIT A 100 ;
(A is an alias, B is new alias)
9: PIG: FOREACH does what? - CORRECT ANSWERS Ans: runs
through each row
, APACHE PIG HADOOP DEVELOPER PRACTICE
QUESTIONS MAMUN QUESTIONS AND ANSWERS
LATEST UPDATE 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT CONFIRMED
ANSWERS BEST RATED TO SCORE A+ FOR
SUCCESS
10. PIG: Example of FOREACH: - CORRECT ANSWERS Ans: C =
FOREACH B GENERATE symbol, date, close:
(symbol, date, close are already defined column labels in B)
11. What would following do? (PIG)
A = load 'file1' using PigStorage(':'); - CORRECT ANSWERS Ans: will
create alias A and fields will be $0, $1 etc using : as field separator
12. Given above, how to create an alias called A1 using just the first
column in A and call the column ID. (PIG) - CORRECT ANSWERS Ans:
A1 = Foreach A Generate $0 as ID;
13. How to run pigscript1.pig using the local machine? - CORRECT
ANSWERS Ans: pig -x local pigscript1.pig
14. PIG: If you ran: A = load './input.txt'; will it work? - CORRECT
ANSWERS Ans: Yes:
TAB will be used as the default delimeter.