Practice Library
All MCQs
Browse exam-wise, subject-wise, and country-wise MCQs with explanations.
Choose an option to check your answer.
Correct Answer: A. A task whose repeated execution produces the same intended external effect
Explanation:
Failures and speculation can cause task attempts to repeat.
Idempotence prevents duplicate side effects from corrupting results.
Choose an option to check your answer.
Correct Answer: D. Each stage may materialize intermediate data to disk and add scheduling overhead
Explanation:
Disk I/O and repeated job startup increase latency.
In-memory engines such as Spark can be faster for iterative pipelines.
Choose an option to check your answer.
Correct Answer: C. Using the output of one MapReduce job as input to another
Explanation:
Complex workflows are decomposed into stages.
Intermediate HDFS output provides durability between jobs.
Choose an option to check your answer.
Correct Answer: B. Representative sample keys to estimate partition boundaries
Explanation:
Samples approximate the key distribution.
Good boundaries balance reducer loads while preserving global ranges.
Choose an option to check your answer.
Correct Answer: A. A globally sorted dataset divided into nonoverlapping ordered reducer ranges
Explanation:
Range partitioning ensures reducer outputs cover consecutive key intervals.
Concatenating part files in reducer order yields global order.
Choose an option to check your answer.
Correct Answer: D. Only a small set of local candidates reaches the final reducer
Explanation:
Each mapper keeps only its best N records.
The final reducer processes at most roughly N candidates per mapper.
Choose an option to check your answer.
Correct Answer: C. Finding the N records with the largest or smallest scores
Explanation:
Local top-N lists can be produced by mappers and merged globally.
This reduces the amount of data sent to the final stage.
Choose an option to check your answer.
Correct Answer: B. Producing each unique key or value once
Explanation:
The shuffle groups duplicate occurrences under the same key.
A reducer can emit one result per distinct group.
Choose an option to check your answer.
Correct Answer: A. Parallel aggregation of occurrences by key
Explanation:
Mappers emit each word with count one.
Reducers sum the counts for identical words.
Choose an option to check your answer.
Correct Answer: D. A mapping from terms to the documents or records containing them
Explanation:
Mappers emit terms with document identifiers.
Reducers aggregate the document lists for each term.
Choose an option to check your answer.
Correct Answer: C. Emitting only records that satisfy a condition
Explanation:
Filters are often implemented as map-only jobs.
Records that fail the predicate produce no output.
Choose an option to check your answer.
Correct Answer: B. A reducer that emits grouped input records without additional transformation
Explanation:
Identity reduction can preserve framework grouping and sorting results.
It may also serve as a simple pass-through stage.