2. MapReduce & YARN Flashcards

1
Q

Which of the following is NOT a phase in the MapReduce model?
A) Map
B) Shuffle
C) Sort
D) Reduce

A

C) Sort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In the MapReduce framework, what is the output of the Map phase?
A) A list of values
B) A single key-value pair
C) Multiple key-value pairs
D) A single value

A

C) Multiple key-value pairs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the role of the Shuffle phase in MapReduce?
A) To sort the output of the Map phase
B) To combine the results of different mappers
C) To distribute data among reducers based on the key
D) To write the final output to HDFS

A

C) To distribute data among reducers based on the key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many classes are typically required to develop a MapReduce program using Java API?
A) One
B) Two
C) Three
D) Four

A

C) Three

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the main role of the ApplicationMaster in YARN?
A) To manage resources of a single machine/server
B) To handle client requests and monitor NodeManagers
C) To apply for resources and allocate them to internal tasks
D) To isolate a portion of the machine’s resources

A

C) To apply for resources and allocate them to internal tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which component of YARN is responsible for managing resources in the whole cluster?
A) NodeManager
B) ApplicationMaster
C) ResourceManager
D) Container

A

C) ResourceManager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In MapReduce, what happens if you set the number of reducers to zero?
A) The Map phase is skipped
B) The Shuffle phase is skipped
C) The Reduce phase is skipped
D) The entire job fails

A

C) The Reduce phase is skipped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following is NOT a feature of the MapReduce computational paradigm?
A) Scalability beyond thousands of machines
B) Input/output data stored in HDFS
C) Real-time data processing
D) Ease of programming with only map and reduce functions

A

C) Real-time data processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is true about MapReduce?
A) The Reduce phase starts after all mappers are finished
B) Mappers and reducers can run in parallel
C) Each reducer processes data from a single mapper
D) The number of reducers is determined by the input data size

A

A) The Reduce phase starts after all mappers are finished

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following is NOT a component of YARN?
A) ApplicationMaster
B) ResourceManager
C) DataNode
D) NodeManager

A

C) DataNode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

MapReduce is suitable for:
A) Real-time data processing
B) Processing large datasets in a distributed manner
C) Small-scale data analysis
D) Online transaction processing

A

B) Processing large datasets in a distributed manner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The output of the Reduce phase in MapReduce is:
A) A set of key-value pairs
B) A single value
C) A list of values
D) Intermediate data for the next MapReduce job

A

A) A set of key-value pairs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In Hadoop’s MapReduce, the number of reducers:
A) Is determined by the size of the input data
B) Is fixed and cannot be changed
C) Can be specified by the user
D) Is equal to the number of mappers

A

C) Can be specified by the user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following is a benefit of using YARN in a Hadoop cluster?
A) It reduces the need for data replication
B) It allows for the dynamic allocation of cluster resources
C) It eliminates the need for MapReduce
D) It simplifies the process of writing MapReduce jobs

A

B) It allows for the dynamic allocation of cluster resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly