Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Question 1 of 60 · Introduction to MapReduce · Easy
What is MapReduce primarily used for in the Hadoop ecosystem?
Not quite. Try another option.
Answer: Distributed data processing
MapReduce is a programming model and software framework designed specifically for writing applications that rapidly process vast amounts of data in parallel on large clusters of compute nodes.
Question 2 of 60 · Map Phase · Easy
In the MapReduce framework, what is the standard output format of the Map phase?
Not quite. Try another option.
Answer: Key-Value pairs
The Mapper processes the input data and generates intermediate output exclusively in the form of key-value pairs.
Question 3 of 60 · Reduce Phase · Easy
What is the primary function of the Reducer in a MapReduce job?
Not quite. Try another option.
Answer: Aggregating and summarizing data
The Reducer takes the intermediate key-value pairs generated by the Mappers and aggregates or summarizes them to produce the final output.
Question 4 of 60 · Introduction to YARN · Easy
What does YARN stand for in Big Data processing?
Not quite. Try another option.
Answer: Yet Another Resource Negotiator
YARN stands for Yet Another Resource Negotiator. It is the architectural center of Hadoop that allows multiple data processing engines to handle data on a single platform.
Question 5 of 60 · Introduction to YARN · Easy
YARN was introduced in which major version of Hadoop to resolve the scalability bottlenecks of the classic MapReduce architecture?
Not quite. Try another option.
Answer: Hadoop 2.x
YARN was introduced in Hadoop 2.x to separate resource management and job scheduling from the data processing layer.
Question 6 of 60 · YARN Architecture · Easy
Which component in YARN is considered the master daemon responsible for globally managing and allocating resources across the entire cluster?
Not quite. Try another option.
Answer: ResourceManager
The ResourceManager is the master node component in YARN that tracks resources across the cluster and allocates them to applications.
Question 7 of 60 · YARN Architecture · Easy
In YARN, which component runs on each individual worker node to monitor resource usage (CPU, memory) and report it to the master?
Not quite. Try another option.
Answer: NodeManager
The NodeManager is the per-machine framework agent responsible for managing containers and monitoring resource usage on its specific node.
Question 8 of 60 · YARN Architecture · Easy
In YARN, what is the role of the ApplicationMaster?
Not quite. Try another option.
Answer: Negotiating resources and tracking application status
The ApplicationMaster is responsible for negotiating appropriate resource containers from the ResourceManager and tracking the status and progress of an individual application.
Question 9 of 60 · YARN Architecture · Easy
What term is used in YARN to represent a fraction of cluster resources (like memory, CPU) allocated to execute a specific task?
Not quite. Try another option.
Answer: Container
A Container is a logical bundle of resources (such as RAM and CPU) allocated by the ResourceManager to execute a specific application task.
Question 10 of 60 · MapReduce Execution Flow · Easy
Which crucial phase occurs between the Map phase and the Reduce phase to group identical keys together?
Not quite. Try another option.
Answer: Shuffle and Sort
The Shuffle and Sort phase automatically groups the intermediate key-value pairs by key before they are sent to the Reducer.
Question 11 of 60 · MapReduce Execution Flow · Easy
Which optional component is often called a "mini-reducer" because it performs local aggregation on the Mapper output to reduce network bandwidth?
Not quite. Try another option.
Answer: Combiner
A Combiner performs a local reduce operation on the map output to decrease the volume of data that needs to be transferred across the network to the actual Reducer.
Question 12 of 60 · MapReduce Execution Flow · Easy
What determines which specific Reducer instance will process a given key-value pair in a MapReduce job?
Not quite. Try another option.
Answer: Partitioner
The Partitioner divides the key space and assigns specific keys to specific Reducers, usually through a hash function.
Question 13 of 60 · MapReduce Architecture · Easy
In the older Hadoop 1.x architecture, which central daemon was strictly responsible for both resource management and job scheduling?
Not quite. Try another option.
Answer: JobTracker
In Hadoop 1.x, the JobTracker was a single point of failure and bottleneck because it handled both resource management and job execution tracking.
Question 14 of 60 · MapReduce Architecture · Easy
In Hadoop 1.x, which worker daemon accepted tasks from the master daemon and executed the Map and Reduce operations?
Not quite. Try another option.
Answer: TaskTracker
TaskTrackers ran on worker nodes in Hadoop 1.x to execute the individual Map and Reduce tasks assigned by the JobTracker.
Question 15 of 60 · MapReduce Execution Flow · Easy
What is the logical representation of a chunk of input data that is processed by a single Mapper instance?
Not quite. Try another option.
Answer: Input Split
An Input Split is a logical chunk of data created by the InputFormat. Exactly one Mapper is launched to process each Input Split.
Question 16 of 60 · MapReduce Execution Flow · Easy
Which of the following statements about MapReduce job execution is true?
Not quite. Try another option.
Answer: The Reduce phase cannot start processing data until all Map tasks have completed.
Because Reducers must aggregate data across all keys, the Reduce function cannot begin its core processing until all Mappers have finished and the shuffle phase is complete.
Question 17 of 60 · Introduction to YARN · Easy
What is a major advantage of YARN over the classic Hadoop 1.x MapReduce architecture?
Not quite. Try another option.
Answer: It supports diverse processing engines (like Spark) alongside MapReduce.
YARN decoupled resource management from the MapReduce processing model, allowing other distributed computing engines like Spark, Flink, and Storm to run on the same Hadoop cluster.
Question 18 of 60 · MapReduce Execution Flow · Easy
In Hadoop MapReduce, which standard Java interface must keys and values implement so they can be serialized and sent over the network?
Not quite. Try another option.
Answer: Writable
Hadoop uses its own optimized serialization format, requiring custom data types to implement the Writable interface (or WritableComparable for keys).
Question 19 of 60 · YARN Architecture · Easy
In a standard Hadoop YARN cluster, where does the NodeManager typically run?
Not quite. Try another option.
Answer: On the same machines as DataNodes (worker nodes)
The NodeManager is a worker daemon in YARN, so it runs on the slave/worker nodes, typically co-located with HDFS DataNodes to support data locality.
Question 20 of 60 · Map Phase · Easy
How many Output files are typically created by a MapReduce job that is configured to run with Reducers?
Not quite. Try another option.
Answer: files
By default, each Reducer task writes its final output to its own distinct file in HDFS, typically named part-r-00000, part-r-00001, up to .
Question 21 of 60 · MapReduce Architecture · Medium
Which of the following scenarios best demonstrates the appropriate use of a Combiner in a MapReduce job?
Not quite. Try another option.
Answer: Performing a local aggregation of word counts on the Mapper node to reduce network bandwidth during the shuffle phase.
A Combiner acts as a 'mini-reducer' that processes the output of a single Mapper locally. Its primary application is to aggregate intermediate data (like sums or counts) to minimize the amount of data transferred across the network during the shuffle phase. It cannot be safely used for operations like averages without careful design, as averages are not associative.
Question 22 of 60 · Map Phase · Medium
If a file is 300 MB and the HDFS block size is 128 MB, how many Map tasks will typically be launched by default, and why?
Not quite. Try another option.
Answer: 3 Map tasks, because the data is divided into three InputSplits corresponding to the three HDFS blocks (128 MB, 128 MB, and 44 MB).
By default, one Map task is created for each InputSplit, and an InputSplit typically corresponds to an HDFS block. A 300 MB file will be divided into blocks of 128 MB, 128 MB, and a final block of 44 MB, resulting in 3 Map tasks.
Question 23 of 60 · Shuffle and Sort · Medium
How does a Partitioner operate in a MapReduce job?
Not quite. Try another option.
Answer: It determines which Reducer will receive a specific key-value pair based on the hash of the key.
The Partitioner controls the partitioning of the intermediate map-output keys. The key (or a subset of the key) is used to derive the partition, typically by a hash function. The total number of partitions is the same as the number of reduce tasks for the job.
Question 24 of 60 · MapReduce Architecture · Medium
What is the purpose of Speculative Execution in Hadoop MapReduce?
Not quite. Try another option.
Answer: To identify tasks running significantly slower than average and launch duplicate backup tasks on other nodes.
Speculative execution is a fault-tolerance mechanism. If a node is underperforming (e.g., due to hardware degradation), the framework launches a duplicate task on a faster node. Whichever task finishes first is used, and the other is killed.
Question 25 of 60 · Reduce Phase · Medium
What happens if a developer configures a MapReduce job with setNumReduceTasks(0)?
Not quite. Try another option.
Answer: The job becomes a 'Map-only' job, and the Mapper outputs are written directly to HDFS without sorting or shuffling.
Setting the number of Reducers to 0 creates a Map-only job. The shuffle, sort, and reduce phases are bypassed, and the output of the Mappers is written directly to the final destination in HDFS.
Question 26 of 60 · YARN Architecture · Medium
Which of the following best describes the structural difference between Hadoop 1.x (MRv1) and YARN regarding resource management?
Not quite. Try another option.
Answer: YARN separates the dual responsibilities of the JobTracker (resource management and job scheduling/monitoring) into the ResourceManager and ApplicationMaster.
In MRv1, the JobTracker was responsible for both managing resources and tracking job execution. YARN (Yet Another Resource Negotiator) splits these roles: the ResourceManager handles global resource allocation, while a per-application ApplicationMaster manages job scheduling and monitoring.
Question 27 of 60 · ResourceManager · Medium
What are the two main components of the YARN ResourceManager?
Not quite. Try another option.
Answer: Scheduler and ApplicationsManager
The ResourceManager contains two main components: the Scheduler (responsible for allocating resources to various running applications) and the ApplicationsManager (responsible for accepting job submissions and negotiating the first container for the ApplicationMaster).
Question 28 of 60 · ApplicationMaster · Medium
In a YARN cluster, what happens if an ApplicationMaster fails during the execution of a job?
Not quite. Try another option.
Answer: The ResourceManager restarts the ApplicationMaster in a new container, and the job may recover depending on the framework.
The ApplicationsManager component of the ResourceManager monitors the ApplicationMaster. If it fails, the RM can restart it in a new container. Modern frameworks like MapReduce can often recover previously completed tasks so the job doesn't have to start entirely from scratch.
Question 29 of 60 · Containers · Medium
A YARN Container represents a collection of physical resources. If a task inside a container attempts to use more RAM than allocated, what is the default behavior of YARN?
Not quite. Try another option.
Answer: The NodeManager will kill the container for exceeding its physical memory limit.
YARN tightly monitors container resource usage. By default, if a container exceeds its allocated physical or virtual memory limits, the NodeManager will aggressively kill the container to protect the stability of the node.
Question 30 of 60 · YARN Scheduling · Medium
Which YARN scheduler allocates a fraction of cluster capacity to multiple organizations, allowing them to utilize unused cluster capacity when available, but restricts them to their guaranteed minimum when the cluster is busy?
Not quite. Try another option.
Answer: Capacity Scheduler
The Capacity Scheduler is designed to allow multiple tenants to share a large cluster. Organizations are configured with guaranteed capacity (queues) but can temporarily utilize excess capacity if other queues are empty. When demand returns, they are constrained to their guaranteed capacity.
Question 31 of 60 · MapReduce Architecture · Medium
During the shuffle phase, MapReduce must transfer intermediate data across the network. How is this data managed on the Mapper node before transfer?
Not quite. Try another option.
Answer: It is written to a circular memory buffer, spilled to local disk when the buffer reaches a threshold, and then merged.
Map tasks write their output to a circular memory buffer. When the buffer reaches a certain threshold (e.g., 80%), a background thread begins spilling the contents to the node's local disk (not HDFS). These spills are later merged into a single partitioned and sorted file.
Question 32 of 60 · NodeManager · Medium
What is the primary role of the Heartbeat mechanism between the NodeManager and the ResourceManager in YARN?
Not quite. Try another option.
Answer: To inform the ResourceManager of the NodeManager's health and available resources, and to receive container execution commands.
NodeManagers send periodic heartbeats to the ResourceManager to confirm they are alive and to report their resource usage. In response, the ResourceManager can send commands, such as instructions to start or kill containers.
Question 33 of 60 · YARN Scheduling · Medium
In the context of the Fair Scheduler in YARN, what does 'preemption' allow the scheduler to do?
Not quite. Try another option.
Answer: Kill containers from a queue that is over its fair share to free up resources for a starved queue.
Preemption in the Fair Scheduler (and Capacity Scheduler) allows the scheduler to kill containers of applications that are using more than their fair share of resources, in order to give those resources back to applications in queues that are starved of their guaranteed/fair share.
Question 34 of 60 · Reduce Phase · Medium
In a standard MapReduce job, what is the input format received by the reduce() function?
Not quite. Try another option.
Answer: A single key and an Iterable collection of values, e.g., (Key, Iterable<Value>).
After the shuffle and sort phases, all values associated with a specific key are grouped together. The reduce() function is called once per unique key, receiving the key and an Iterator/Iterable of all values associated with that key.
Question 35 of 60 · MapReduce Architecture · Medium
Why is 'Data Locality' a critical optimization in the MapReduce framework?
Not quite. Try another option.
Answer: It schedules Map tasks on the exact same nodes where the required HDFS blocks reside, minimizing network congestion.
Data Locality is the principle of moving the computation to the data rather than moving data to the computation. MapReduce attempts to launch Map tasks on the very nodes where the HDFS blocks are stored, vastly reducing network I/O overhead.
Question 36 of 60 · ResourceManager · Medium
To achieve High Availability (HA) for the YARN ResourceManager, an Active/Standby architecture is used. What component typically manages the state and leader election to handle automatic failover?
Not quite. Try another option.
Answer: Apache Zookeeper
YARN ResourceManager HA uses Apache ZooKeeper for leader election and state storage. If the Active ResourceManager fails, ZooKeeper helps elect the Standby ResourceManager to become the new Active master without manual intervention.
Question 37 of 60 · MapReduce Architecture · Medium
Which interface allows a MapReduce application to broadcast read-only files (like lookup tables or dictionaries) to all worker nodes before tasks execute?
Not quite. Try another option.
Answer: DistributedCache
The DistributedCache is a facility provided by the MapReduce framework to cache files (text, archives, jars) needed by applications. It copies the files to the worker nodes just before the tasks are executed, making them available locally.
Question 38 of 60 · ApplicationMaster · Medium
When an ApplicationMaster requires resources to run tasks, how does it specify its request to the ResourceManager?
Not quite. Try another option.
Answer: By sending a ResourceRequest containing memory, CPU requirements, preferred nodes/racks, and priority.
The ApplicationMaster negotiates with the ResourceManager by sending a ResourceRequest. This request specifies the amount of memory and vCores needed, priority, and locality preferences (node-local, rack-local, or anywhere).
Question 39 of 60 · YARN Architecture · Medium
What is the defining characteristic of a YARN Application?
Not quite. Try another option.
Answer: It is a single job or a DAG of jobs coordinated by a single ApplicationMaster.
In YARN, an 'Application' is an abstraction that can represent a single job (like a MapReduce job), a DAG of tasks (like Tez or Spark), or a long-running service. It is defined by having a dedicated ApplicationMaster to manage its lifecycle.
Question 40 of 60 · Shuffle and Sort · Medium
If two keys, and , yield the exact same hash code from the Partitioner, what is the consequence in the MapReduce pipeline?
Not quite. Try another option.
Answer: and will be sent to the same Reducer task, where they will be sorted and grouped separately.
The Partitioner uses the hash code to determine the Reducer. If two distinct keys have the same hash code (a hash collision), they map to the same partition and are sent to the same Reducer. However, the Reducer will still sort and group them correctly because they are distinct keys.
Question 41 of 60 · MapReduce Execution Framework · Hard
In a MapReduce job, what happens if an InputSplit boundary occurs in the middle of a logical record (e.g., a line in a text file)?
Not quite. Try another option.
Answer: The Map task reads past the end of its InputSplit block into the next block to finish the record, while the adjacent Map task skips the first partial record.
To ensure no records are split or missed, the LineRecordReader will read past the end of its assigned block to find the next newline character. The Map task assigned to the subsequent block will skip data until it encounters the first newline, ensuring each record is processed exactly once.
Question 42 of 60 · Combiners and Partitioners · Hard
A developer writes a MapReduce job to calculate the global average of values associated with a key. They use the same Reducer implementation as the Combiner to optimize network traffic. Which of the following describes the outcome of this decision?
Not quite. Try another option.
Answer: The job will execute faster but produce incorrect results because calculating a mean is not an associative and commutative operation.
A Combiner must implement a commutative and associative operation (like sum or max) to guarantee correct results, because the framework does not guarantee if or how many times a Combiner will be called. Calculating the average of averages yields incorrect results unless the counts of elements are also tracked and weighted appropriately.
Question 43 of 60 · Shuffle and Sort Phase · Hard
During the shuffle phase, Reducers must fetch Map outputs from various NodeManagers. How does a Reducer task efficiently determine the locations of the completed Map outputs?
Not quite. Try another option.
Answer: It periodically queries the ApplicationMaster, which receives task completion reports and physical locations from the completed Map tasks.
In MapReduce on YARN, the ApplicationMaster keeps track of the state and location of all completed Map tasks. Reducers spawn fetcher threads that periodically poll the ApplicationMaster via RPC to discover where their corresponding partition data resides.
Question 44 of 60 · YARN Scheduling · Hard
Under the YARN Fair Scheduler using Dominant Resource Fairness (DRF), consider a cluster with 100 CPUs and 1000 GB of RAM. App A requests containers with 2 CPUs and 10 GB of RAM, while App B requests containers with 1 CPU and 20 GB of RAM. How are the dominant shares calculated?
Not quite. Try another option.
Answer: App A's dominant resource is CPU (2%); App B's dominant resource is Memory (2%).
DRF calculates the share of each resource type a container requests relative to the cluster's total. For App A, CPU share is and RAM share is ; the dominant resource is CPU (). For App B, CPU is and RAM is ; the dominant resource is RAM ().
Question 45 of 60 · Fault Tolerance and Speculative Execution · Hard
A MapReduce job performs a complex data transformation and inserts the output records directly into an external non-idempotent relational database from within the Map tasks. Speculative execution is enabled by default. What critical issue will arise in this scenario?
Not quite. Try another option.
Answer: Data duplication will occur because speculative tasks will insert duplicate records before the framework kills the slower task.
Speculative execution launches duplicate tasks for stragglers. If tasks have external, non-idempotent side effects (like INSERTs into an RDBMS), multiple task attempts will write the same data, leading to duplication. Speculative execution should be disabled in such cases.
Question 46 of 60 · YARN Architecture Components · Hard
In a High Availability (HA) YARN cluster, a 'split-brain' scenario occurs where two ResourceManagers (RM1 and RM2) both believe they are active. How does YARN's architectural design prevent cluster corruption in this specific scenario?
Not quite. Try another option.
Answer: The ActiveStandbyElector uses ZooKeeper to maintain an active lock, and YARN implements fencing where the active RM's epoch number is validated by the ZooKeeper-based state store before any state changes are committed.
YARN HA relies on ZooKeeper for leader election. To prevent split-brain (where a falsely active RM makes conflicting writes), YARN utilizes fencing via the State Store (like ZKRMStateStore), which checks the RM's epoch number. A 'zombie' RM with an older epoch is denied write access.
Question 47 of 60 · Combiners and Partitioners · Hard
To achieve a total global ordering of output data in MapReduce, a developer decides to use the TotalOrderPartitioner. Which of the following prerequisites is strictly necessary for TotalOrderPartitioner to function efficiently without causing extreme data skew?
Not quite. Try another option.
Answer: A sampling phase must be executed prior to the job to determine partition boundaries, creating a partition file loaded into the Distributed Cache.
To balance the load across reducers while maintaining a total order, TotalOrderPartitioner relies on a partition file that defines the key boundaries for each reducer. This file is typically generated by a pre-job sampling process (e.g., InputSampler) and distributed to all nodes via the Distributed Cache.
Question 48 of 60 · YARN Architecture Components · Hard
If the ApplicationMaster (AM) container fails in YARN, what is the exact sequence of recovery initiated by the framework?
Not quite. Try another option.
Answer: The ResourceManager launches a new AM; the new AM can recover the state of already completed tasks if application state recovery is enabled, avoiding full task re-execution.
When an AM fails, the ResourceManager detects the missing heartbeats and allocates a new container for a new AM attempt (up to a configured max attempts). In modern YARN (MRv2), the new AM can recover the job state using the job history/state store, allowing it to preserve completed tasks and only resume pending ones.
Question 49 of 60 · Shuffle and Sort Phase · Hard
During the Map phase, output records are buffered in memory before being spilled to disk. The spill threshold is defined by mapreduce.map.sort.spill.percent. What happens when the buffer usage reaches this threshold?
Not quite. Try another option.
Answer: A background thread begins sorting and spilling the contents to the local disk, while the map task continues writing to the remaining space in the buffer.
When the memory buffer reaches the spill threshold (typically 80%), a background thread is spawned to sort and spill the data to the local disk. The map task is not blocked and continues to write to the remaining 20% of the buffer. If the buffer fills completely before the spill finishes, the map thread will block.
Question 50 of 60 · MapReduce Execution Framework · Hard
A MapReduce developer is implementing a secondary sort to sort values arriving at the reducer. They configure a custom WritableComparable as the Map output key and write a custom Partitioner. What third component MUST be heavily customized to ensure the Reducer receives all values for a given logical key in a single reduce() call?
Not quite. Try another option.
Answer: A custom GroupingComparator must be configured to group the composite keys based solely on their logical key portion.
In secondary sorting, the key emitted by the Mapper is a composite key (LogicalKey + SortKey). Since MapReduce groups by the entire key by default, a custom GroupingComparator (or RawComparator) is required to tell the framework to group records into a single reduce() call based only on the LogicalKey part.
Question 51 of 60 · YARN Scheduling · Hard
In the YARN Capacity Scheduler, what is the effect of configuring yarn.scheduler.capacity.<queue-path>.maximum-capacity lower than 100% for a specific queue?
Not quite. Try another option.
Answer: It restricts the queue from utilizing idle cluster resources beyond that percentage, preventing it from overtaking the entire cluster during elastic expansion.
Capacity Scheduler queues are elastic by default and can consume up to 100% of the cluster if other queues are empty. Setting maximum-capacity imposes a hard ceiling, preventing a queue from consuming more than that percentage of cluster resources, even if there are idle resources available.
Question 52 of 60 · MapReduce Execution Framework · Hard
Consider a scenario where you have two large datasets, A and B. You want to perform a Map-side join. Which of the following conditions is strictly necessary to implement a standard Map-side join efficiently using the framework's CompositeInputFormat?
Not quite. Try another option.
Answer: Both datasets must be partitioned using the same logic, sorted by the join key, and have exactly the same number of partitions.
A standard Map-side join (often implemented via CompositeInputFormat) requires that both datasets are identically partitioned and sorted by the join key, allowing the Mapper to sequentially read parallel partitions and join them linearly without shuffling. (If one is small, a Broadcast/Distributed Cache join is used instead, which is technically a different pattern).
Question 53 of 60 · YARN Architecture Components · Hard
What happens in YARN if a NodeManager experiences a transient network partition and fails to send heartbeats to the ResourceManager for a duration exceeding the yarn.resourcemanager.nm.liveness-monitor.expiry-interval-ms?
Not quite. Try another option.
Answer: The ResourceManager marks the node as DEAD, considers all containers on it as failed, and notifies the respective ApplicationMasters to re-schedule those tasks.
If a NodeManager's heartbeats time out, the ResourceManager declares the node DEAD. Any containers (including AMs) running on that node are marked as killed/failed. The RM informs the relevant ApplicationMasters (if they are on other nodes) so they can request new containers to re-execute the lost tasks.
Question 54 of 60 · MapReduce Execution Framework · Hard
Uber mode (or Uber task optimization) in MapReduce v2 (YARN) is designed to optimize execution for small jobs. How does it alter the standard execution model?
Not quite. Try another option.
Answer: It executes all map and reduce tasks sequentially within the ApplicationMaster's JVM, avoiding the overhead of requesting and launching separate containers.
Uber mode is an optimization for very small jobs. Instead of the ApplicationMaster negotiating containers from the ResourceManager and suffering the latency of JVM startup for each task, the AM executes the map and reduce tasks sequentially within its own JVM.
Question 55 of 60 · MapReduce Execution Framework · Hard
In the context of MapReduce job commitment, what is the primary role of the OutputCommitter class's two-phase commit protocol?
Not quite. Try another option.
Answer: To allow tasks to write output to a temporary location and gracefully promote it to the final destination only if the task, and subsequently the job, successfully completes.
The OutputCommitter uses a two-phase commit: tasks write to a temporary working directory. When a task succeeds, it does a task commit (commitTask()) to promote its temporary output. When the entire job succeeds, a job commit (commitJob()) promotes the task outputs to the final job output directory, ensuring dirty reads or partial files from failed tasks are hidden.
Question 56 of 60 · Shuffle and Sort Phase · Hard
During the Reduce phase, the execution fundamentally consists of three sub-phases: Copy (Shuffle), Sort (Merge), and Reduce. Which of the following accurately describes a critical operation during the Sort (Merge) phase?
Not quite. Try another option.
Answer: The Reducer merges the already-sorted map output files fetched from various NodeManagers to maintain a single, totally ordered stream of keys.
The Sort phase in the Reducer is actually a Merge phase. Because the map outputs are already sorted by key during the map-side spill, the Reducer does not need to sort them from scratch. Instead, it performs a multi-pass merge (often using a priority queue) of these sorted segments to present an ordered stream of keys to the reduce() method.
Question 57 of 60 · YARN Architecture Components · Hard
YARN Federation addresses the scalability limits of a single ResourceManager cluster. How does YARN Federation manage a single application that requires more resources than a single sub-cluster can provide?
Not quite. Try another option.
Answer: It allows the ApplicationMaster to request resources from ResourceManagers of multiple sub-clusters simultaneously using a global policy.
YARN Federation scales the cluster by tying together multiple independent YARN sub-clusters. The ApplicationMaster can be aware of the federation environment and negotiate resources transparently across multiple sub-cluster ResourceManagers via the Federation State Store and router policies.
Question 58 of 60 · MapReduce Execution Framework · Hard
If you submit a MapReduce job with the configuration mapreduce.job.reduces=0, what happens to the output data?
Not quite. Try another option.
Answer: The framework bypasses the shuffle and sort phases, and the map tasks write their output directly to HDFS in the final output directory.
Setting the number of reducers to zero creates a Map-only job. The shuffle, sort, and reduce phases are skipped entirely. The Map tasks directly write their final outputs to HDFS using the configured OutputFormat.
Question 59 of 60 · YARN Architecture Components · Hard
In YARN, an ApplicationMaster operates within a container and must authenticate with the ResourceManager to request further resources. Which security mechanism does the AM use to securely communicate with the RM in a Kerberized cluster?
Not quite. Try another option.
Answer: It uses a short-lived AMRMToken (ApplicationMaster-ResourceManager Token) issued by the RM during AM launch.
In a secure YARN cluster, the AM does not use Kerberos directly to talk to the RM. Instead, when the RM launches the AM, it provides a specialized Hadoop delegation token called the AMRMToken. The AM uses this token for authentication on subsequent RPC calls to negotiate resources, and it is periodically rolled/renewed.
Question 60 of 60 · Combiners and Partitioners · Hard
A developer writes a custom Partitioner for a MapReduce job to route records based on an 'AccountID' string. The logic uses (accountID.hashCode() % numReducers). Under what circumstance will this custom partitioner cause a severe job failure?
Not quite. Try another option.
Answer: If accountID.hashCode() evaluates to Integer.MIN_VALUE.
In Java, Math.abs(Integer.MIN_VALUE) returns a negative number (Integer.MIN_VALUE itself, due to two's complement overflow). If the hash code happens to be Integer.MIN_VALUE, modulo numReducers will yield a negative partition index, which causes an ArrayIndexOutOfBoundsException or IllegalStateException in the framework. It must be masked using (accountID.hashCode() & Integer.MAX_VALUE) % numReducers.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of INT312 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of INT312 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.