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.
Which type of architecture is traditionally used by Hadoop?
Not quite. Try another option.
Answer: Master-slave architecture
Traditional Hadoop uses master nodes to coordinate work and slave nodes to store data and execute tasks.
Question 2 of 60 · Hadoop Architecture · Easy
Which two components form the core of classic Hadoop architecture?
Not quite. Try another option.
Answer: HDFS and MapReduce
HDFS provides distributed storage, while MapReduce provides distributed data processing.
Question 3 of 60 · Hadoop Storage: HDFS · Easy
What does HDFS stand for?
Not quite. Try another option.
Answer: Hadoop Distributed File System
HDFS stands for Hadoop Distributed File System and stores files across multiple machines.
Question 4 of 60 · Hadoop Storage: HDFS · Easy
How does HDFS normally store a large file?
Not quite. Try another option.
Answer: As blocks across multiple nodes
HDFS divides a large file into blocks and distributes those blocks across DataNodes.
Question 5 of 60 · Hadoop Storage: HDFS · Easy
What is the main purpose of block replication in HDFS?
Not quite. Try another option.
Answer: To improve fault tolerance
Replication keeps copies of data blocks on different DataNodes so data remains available after a node failure.
Question 6 of 60 · Hadoop MapReduce paradigm · Easy
Which two main phases are used in the MapReduce programming model?
Not quite. Try another option.
Answer: Map and Reduce
The Map phase processes input data, and the Reduce phase combines or summarizes intermediate results.
Question 7 of 60 · Hadoop MapReduce paradigm · Easy
What is the primary role of the Map phase?
Not quite. Try another option.
Answer: Produce intermediate key-value pairs
A mapper reads input records and produces intermediate key-value pairs for later processing.
Question 8 of 60 · Hadoop MapReduce paradigm · Easy
What is the primary role of the Reduce phase?
Not quite. Try another option.
Answer: Combine values associated with keys
A reducer receives grouped values for each key and combines them to produce final output.
Question 9 of 60 · MapReduce Terminology · Easy
In MapReduce, data is commonly processed in which form?
Not quite. Try another option.
Answer: Key-value pairs
MapReduce represents input, intermediate, and output data using key-value pairs.
Question 10 of 60 · MapReduce Terminology · Easy
What is the process of transferring mapper output to reducers called?
Not quite. Try another option.
Answer: Shuffle
The shuffle process transfers and groups intermediate mapper output for the reducers.
Question 11 of 60 · MapReduce Terminology · Easy
What does a mapper produce before the Reduce phase begins?
Not quite. Try another option.
Answer: Intermediate output
The mapper generates intermediate output that is shuffled, sorted, and sent to reducers.
Question 12 of 60 · Hadoop NameNode · Easy
What is the main responsibility of the HDFS NameNode?
Not quite. Try another option.
Answer: Manage file system metadata
The NameNode manages metadata such as file names, directories, permissions, and block locations.
Question 13 of 60 · Hadoop NameNode · Easy
Which information is maintained by the NameNode?
Not quite. Try another option.
Answer: Locations of HDFS blocks
The NameNode tracks which DataNodes contain the blocks belonging to each HDFS file.
Question 14 of 60 · Hadoop DataNode · Easy
What is the main responsibility of an HDFS DataNode?
Not quite. Try another option.
Answer: Store actual data blocks
DataNodes store the actual HDFS blocks and handle client requests to read or write them.
Question 15 of 60 · Hadoop DataNode · Easy
What does a DataNode regularly send to the NameNode to show that it is active?
Not quite. Try another option.
Answer: Heartbeat
A DataNode sends heartbeat messages so the NameNode can monitor its availability.
Question 16 of 60 · Hadoop JobTracker · Easy
In classic Hadoop MapReduce, what is the main role of the JobTracker?
Not quite. Try another option.
Answer: Coordinate and schedule jobs
The JobTracker accepts jobs, schedules tasks, and monitors their execution in classic Hadoop MapReduce.
Question 17 of 60 · Hadoop JobTracker · Easy
Which component submits progress information to the JobTracker in classic Hadoop?
Not quite. Try another option.
Answer: TaskTracker
TaskTrackers report task progress and status to the JobTracker.
Question 18 of 60 · Hadoop TaskTracker · Easy
What does a TaskTracker do in classic Hadoop MapReduce?
Not quite. Try another option.
Answer: Runs map and reduce tasks
A TaskTracker executes map and reduce tasks assigned by the JobTracker on a worker node.
Question 19 of 60 · Word count on command line · Easy
Which command pattern correctly runs a Hadoop word-count JAR?
Not quite. Try another option.
Answer: hadoop jar app.jar WordCount input output
The hadoop jar command runs a Hadoop application, followed by its class name and arguments.
Question 20 of 60 · Word count on command line · Easy
Which command can display the first reducer output file from an HDFS word-count result directory named output?
Not quite. Try another option.
Answer: hdfs dfs -cat output/part-r-00000
The -cat command displays an HDFS file, and part-r-00000 is a common reducer output file name.
Question 21 of 60 · Hadoop Architecture · Medium
A Hadoop cluster must process a large dataset while minimizing network traffic. Which architectural decision best supports this goal?
Not quite. Try another option.
Answer: Move computation to nodes storing the required blocks
Hadoop uses data locality by scheduling computation near HDFS blocks, reducing network transfers.
Question 22 of 60 · Hadoop Architecture · Medium
A client submits a MapReduce job that reads a file from HDFS. Which sequence best describes the main interaction?
Not quite. Try another option.
Answer: The client gets block locations from the NameNode and tasks read from DataNodes
The NameNode supplies metadata and block locations, while the actual file blocks are read from DataNodes.
Question 23 of 60 · Hadoop Storage: HDFS · Medium
An HDFS file is divided into 5 blocks and stored with a replication factor of 3. Assuming every block is fully replicated, how many block replicas are stored in total?
Not quite. Try another option.
Answer: 15 block replicas
The total is block replicas.
Question 24 of 60 · Hadoop Storage: HDFS · Medium
A 300 MB file is stored in HDFS using a block size of 128 MB. How many HDFS blocks are required?
Not quite. Try another option.
Answer: 3 blocks
Two blocks hold 256 MB, and the remaining 44 MB requires a third block.
Question 25 of 60 · Hadoop Storage: HDFS · Medium
A DataNode containing one replica of an HDFS block becomes unavailable. Other replicas remain accessible. What is the expected immediate result?
Not quite. Try another option.
Answer: The file remains readable from another replica
HDFS clients can read an available replica, while the NameNode arranges re-replication if needed.
Question 26 of 60 · Hadoop MapReduce paradigm · Medium
A MapReduce program calculates total sales for each product. The mapper emits (product, saleAmount). What should the reducer do?
Not quite. Try another option.
Answer: Sum all sale amounts received for each product
The shuffle groups values by product, allowing the reducer to calculate each product's total.
Question 27 of 60 · Hadoop MapReduce paradigm · Medium
A job has many repeated mapper keys and performs an associative sum. Which feature can reduce the amount of data transferred during shuffle?
Not quite. Try another option.
Answer: A combiner that performs local partial sums
A combiner can aggregate repeated keys on each mapper before intermediate data crosses the network.
Question 28 of 60 · Hadoop MapReduce paradigm · Medium
A MapReduce job uses four reducers. What determines which reducer receives a particular intermediate key?
Not quite. Try another option.
Answer: The partitioner applied to the intermediate key
The partitioner maps each intermediate key to one reducer, ensuring identical keys reach the same reducer.
Question 29 of 60 · MapReduce Terminology · Medium
In a word-count job, a mapper emits (cloud, 1) three times and (data, 1) twice. After shuffle and sort, what input is logically presented to reducers?
Not quite. Try another option.
Answer: (cloud, [1,1,1]) and (data, [1,1])
Shuffle and sort group all intermediate values associated with the same key before reduction.
Question 30 of 60 · MapReduce Terminology · Medium
Which MapReduce component defines how input data is divided into logical splits and converted into key-value records?
Not quite. Try another option.
Answer: InputFormat
InputFormat creates input splits and supplies a RecordReader that converts input data into mapper records.
Question 31 of 60 · MapReduce Terminology · Medium
A mapper task fails after producing intermediate output, but before reducers finish fetching it. What normally happens?
Not quite. Try another option.
Answer: The mapper task is rerun to regenerate its output
Mapper output is temporary, so Hadoop reruns the failed map task to recreate unavailable intermediate data.
Question 32 of 60 · Hadoop NameNode · Medium
A user renames an HDFS file without changing its contents. Which node primarily updates the information for this operation?
Not quite. Try another option.
Answer: NameNode
Renaming changes filesystem namespace metadata, which is managed by the NameNode.
Question 33 of 60 · Hadoop NameNode · Medium
The NameNode stops receiving heartbeats from a DataNode for an extended period. What action is most appropriate?
Not quite. Try another option.
Answer: Mark the DataNode unavailable and schedule missing replicas
The NameNode treats the DataNode as unavailable and initiates replication for under-replicated blocks.
Question 34 of 60 · Hadoop DataNode · Medium
During an HDFS read, a client discovers that the nearest replica is unavailable. What should the client normally do?
Not quite. Try another option.
Answer: Request the block from another listed DataNode
The client can use another replica location provided by the NameNode when one DataNode is unavailable.
Question 35 of 60 · Hadoop DataNode · Medium
Which message allows a DataNode to inform the NameNode about the HDFS blocks it currently stores?
Not quite. Try another option.
Answer: Block report
A block report lists the blocks stored by a DataNode and helps the NameNode maintain block-location metadata.
Question 36 of 60 · Hadoop JobTracker · Medium
In Hadoop MapReduce version 1, a TaskTracker repeatedly fails tasks assigned to it. Which JobTracker response best maintains job progress?
Not quite. Try another option.
Answer: Reschedule failed tasks on other available TaskTrackers
The JobTracker monitors task execution and reschedules failed tasks on other workers when possible.
Question 37 of 60 · Hadoop JobTracker · Medium
The JobTracker has two available TaskTrackers, but only one stores a local replica of the next map task's input block. Which placement is generally preferred?
Not quite. Try another option.
Answer: Assign the map task to the TaskTracker with the local replica
A data-local assignment reduces network traffic because the mapper reads its input from local storage.
Question 38 of 60 · Hadoop TaskTracker · Medium
In MapReduce version 1, how does a TaskTracker normally obtain new work from the JobTracker?
Not quite. Try another option.
Answer: It sends a heartbeat that reports status and available slots
TaskTracker heartbeats report health and capacity, enabling the JobTracker to assign tasks.
Question 39 of 60 · Word count on command line · Medium
A word-count job has written results to /output/wc in HDFS. Which command displays all reducer output part files on the terminal?
Not quite. Try another option.
Answer: hadoop fs -cat /output/wc/part-*
hadoop fs -cat prints HDFS file contents, and part-* selects the reducer output files.
Question 40 of 60 · Word count on command line · Medium
A word-count command fails because its intended HDFS output directory already exists. Which action usually resolves the issue before rerunning the job?
Not quite. Try another option.
Answer: Remove the old output with hadoop fs -rm -r /output/wc
MapReduce normally requires the output path not to exist, so the old directory must be removed or a new path used.
Question 41 of 60 · Hadoop Architecture · Hard
In a classic Hadoop 1.x cluster, a worker remains reachable and continues sending TaskTracker heartbeats, but its DataNode process has stopped. Which system behavior is most accurate?
Not quite. Try another option.
Answer: The JobTracker may still schedule tasks there, while HDFS eventually marks its block replicas unavailable.
DataNode and TaskTracker are independent daemons with separate masters and heartbeats. A live TaskTracker can still receive tasks even after the NameNode detects that its DataNode has failed.
Question 42 of 60 · Hadoop Storage: HDFS · Hard
A 300 MiB HDFS file uses a 128 MiB block size and replication factor 3. Ignoring checksums and metadata, which statement is correct?
Not quite. Try another option.
Answer: It creates 3 logical blocks and consumes 900 MiB across all replicas.
The file has logical blocks. HDFS does not pad the final block to 128 MiB, so replicated payload storage is MiB.
Question 43 of 60 · Hadoop Storage: HDFS · Hard
An HDFS file has replication factor 3, and all DataNodes are healthy. The NameNode reports that all three replicas of one block are on the same rack. What is the most important consequence?
Not quite. Try another option.
Answer: The block tolerates two DataNode failures but not loss of that rack.
Replication protects against individual node failures only when replicas survive elsewhere. Co-locating every replica on one rack leaves the block vulnerable to a rack-level outage.
Question 44 of 60 · Hadoop Storage: HDFS · Hard
A MapReduce job reads 10,000 files of 1 KiB each from HDFS. The total payload is small, yet startup and metadata overhead are severe. Which explanation best identifies the structural cause?
Not quite. Try another option.
Answer: Each file and block adds NameNode metadata and may produce a separate input split.
The small-files problem is dominated by per-file and per-block namespace metadata plus excessive map-task setup. HDFS does not necessarily allocate a full block's physical capacity to each file.
Question 45 of 60 · Hadoop NameNode · Hard
Which statement correctly distinguishes a SecondaryNameNode checkpoint from NameNode failover in classic Hadoop 1.x?
Not quite. Try another option.
Answer: A checkpoint merges fsimage with edits but does not automatically assume the active NameNode role.
The SecondaryNameNode periodically creates checkpoints by merging namespace image and edit logs. It is not a hot standby and does not provide automatic failover.
Question 46 of 60 · Hadoop NameNode · Hard
After a NameNode restart, HDFS enters safe mode because the configured threshold of reported blocks has not yet been reached. Which action is expected during this period?
Not quite. Try another option.
Answer: Clients can generally read reported blocks, but namespace mutations and replication scheduling are restricted.
Safe mode is primarily a read-only startup state. The NameNode waits for sufficient block reports before enabling normal namespace changes and replication management.
Question 47 of 60 · Hadoop DataNode · Hard
A client detects a checksum mismatch while reading one replica of an HDFS block, while another replica is healthy. What is the expected recovery path?
Not quite. Try another option.
Answer: The client reads another replica and reports the corrupt replica so it can be invalidated and replaced.
HDFS clients verify block checksums and can retry another replica. Corruption is reported so the NameNode can arrange removal and re-replication from a valid copy.
Question 48 of 60 · Hadoop DataNode · Hard
An administrator wants to retire a healthy DataNode without reducing the durable replication of its blocks. Which procedure has the intended semantics?
Not quite. Try another option.
Answer: Add it to the exclude list, refresh nodes, and wait for decommissioning to complete.
Decommissioning lets the NameNode replicate affected blocks elsewhere before declaring the DataNode safely retired. Abrupt shutdown can temporarily create under-replicated blocks.
Question 49 of 60 · Hadoop MapReduce paradigm · Hard
A large text file has HDFS block boundaries that fall in the middle of several lines. With a standard line-oriented TextInputFormat, why are records normally neither lost nor duplicated?
Not quite. Try another option.
Answer: Each split's RecordReader adjusts record boundaries, typically skipping or extending partial lines as needed.
Input splits describe logical work, while the RecordReader defines record boundaries. A line reader can read beyond a split boundary to finish a record and avoid re-emitting the preceding partial record.
Question 50 of 60 · MapReduce Terminology · Hard
A job uses four reducers and the default conceptual partition rule . Keys A and B have different hash codes but compare equal under the reducer's grouping comparator. What must be true for correctness?
Not quite. Try another option.
Answer: The partitioner must send A and B to the same reducer.
Grouping occurs only within a reducer. Keys considered part of one reduce group must therefore be assigned to the same partition; otherwise the logical group is split across reducers.
Question 51 of 60 · Hadoop MapReduce paradigm · Hard
A mapper emits (department, (salary, 1)). A proposed combiner replaces all salaries for each department with (averageSalary, 1), and the reducer averages its received salary values. Why can this produce an incorrect global average?
Not quite. Try another option.
Answer: An average alone discards the partial count needed to weight groups of unequal size.
An unweighted average of partial averages is invalid when partial groups differ in size. A safe design combines (sum, count) pairs, which are associative and composable.
Question 52 of 60 · Hadoop MapReduce paradigm · Hard
A reducer writes directly to an external payment service, and speculative execution is enabled. Two attempts of the same reduce task both reach the service before one attempt is discarded. Which design property is required to prevent duplicate payments?
Not quite. Try another option.
Answer: The external operation must be idempotent or deduplicated using a stable transaction identifier.
Speculation can run multiple attempts for one logical task. Hadoop commits managed output carefully, but arbitrary external side effects require idempotency or explicit deduplication.
Question 53 of 60 · MapReduce Terminology · Hard
A secondary-sort job uses composite keys (customer, timestamp) and must deliver each customer's records to one reducer in ascending timestamp order. Which configuration is correct?
Not quite. Try another option.
Answer: Partition by customer, sort by the full composite key, and group by customer.
Customer-based partitioning co-locates each customer's keys. Full-key sorting orders timestamps, while customer-only grouping invokes the reducer once per customer.
Question 54 of 60 · MapReduce Terminology · Hard
A job has 12 map tasks and 5 reduce tasks. Every mapper emits data, but the partitioner assigns no keys to one reducer. How many final reducer part files are normally created after successful completion?
Not quite. Try another option.
Answer: Five part files, including an empty file for the reducer receiving no keys.
Each successful reducer task normally commits one final part file. A reducer with no assigned records still has a task output, which may be empty.
Question 55 of 60 · Hadoop JobTracker · Hard
In a default classic Hadoop 1.x deployment without configured recovery or external high availability, what is the principal effect of JobTracker failure?
Not quite. Try another option.
Answer: Running jobs lose central coordination and generally must be resubmitted after the JobTracker returns.
The JobTracker is the central MRv1 scheduler and job coordinator. Without recovery or HA mechanisms, its failure disrupts active jobs even though HDFS may remain operational.
Question 56 of 60 · Hadoop JobTracker · Hard
For a map task whose input block has replicas on nodes N1, N2, and N3, no map slot is immediately free on those nodes, but a slot is free on another node in the same rack. Which scheduling choice best reflects delay scheduling for locality?
Not quite. Try another option.
Answer: Wait briefly for node locality, then allow rack-local execution if the delay threshold expires.
Delay scheduling briefly postpones assignment to improve node locality without allowing a job to wait indefinitely. Rack-local execution is a common fallback when node-local capacity does not become available.
Question 57 of 60 · Hadoop TaskTracker · Hard
A classic MRv1 TaskTracker is configured with 8 map slots and 2 reduce slots. All map slots are busy, both reduce slots are idle, and another map task is waiting. Under static slot configuration, what normally happens?
Not quite. Try another option.
Answer: The map task waits because an idle reduce slot is not automatically converted into a map slot.
Classic MRv1 commonly uses separately configured map and reduce slot capacities. Idle capacity of one slot type is not automatically available to the other type.
Question 58 of 60 · Hadoop TaskTracker · Hard
A TaskTracker stops heartbeating after launching several attempts. The attempts may still be running at the operating-system level. What does the JobTracker normally do after the worker timeout?
Not quite. Try another option.
Answer: It marks the worker lost and reschedules incomplete attempts on other available TaskTrackers.
TaskTracker heartbeats report worker and task status. When the worker times out, the JobTracker cannot trust its attempts and schedules replacement attempts elsewhere.
Question 59 of 60 · Word count on command line · Hard
The command hadoop jar hadoop-mapreduce-examples.jar wordcount /books /wc-out fails immediately with a message that /wc-out already exists. Which remedy preserves the existing output while allowing a new run?
Not quite. Try another option.
Answer: Choose a different non-existing HDFS output path for the new job.
MapReduce output formats normally require the output directory not to exist. A new path preserves the prior results and avoids the pre-execution validation failure.
Question 60 of 60 · Word count on command line · Hard
A WordCount job completes with three reducers. Running hadoop fs -cat /wc-out/part-r-00000 shows only some words, even though the input contained many more. What is the correct way to inspect the complete reducer output from the command line?
Not quite. Try another option.
Answer: Run hadoop fs -cat /wc-out/part-r-* to concatenate all reducer part files.
Each reducer writes a separate part-r-* file containing its key partitions. _SUCCESS is only a completion marker, so all reducer files must be read to inspect the full result.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT312 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 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.