Question 4Medium
Which is the correct pairing of tool to purpose?
- Flume - running interactive SQL queries on tables
- Oozie - storing data blocks across the cluster
- Flume - collecting log data into Hadoop
- HBase - scheduling cluster resources among jobs
Answer: C. Flume - collecting log data into Hadoop
Explanation
Flume ingests streaming log data; Oozie schedules workflows; HBase stores tables.
Step-by-step solution
- Flume ingests logs.
- Oozie schedules.
- HBase stores random access data.
Why the other options are wrong
- A. That is Hive or Spark SQL.
- B. Oozie schedules workflows; HDFS stores blocks.
- D. That is YARN.
Question 5Hard
Which statement about Spark and Hadoop MapReduce is accurate?
- Spark cannot run on a YARN-managed cluster at all
- MapReduce keeps all intermediate data in memory by default
- Spark does not need any storage layer for its input data
- Spark can keep intermediate data in memory, avoiding MapReduce's disk writes between stages
Answer: D. Spark can keep intermediate data in memory, avoiding MapReduce's disk writes between stages
Explanation
In-memory caching makes iterative algorithms far faster on Spark.
Step-by-step solution
- MapReduce writes to disk between jobs.
- Spark pipelines in memory.
- Iterative jobs benefit most.
Why the other options are wrong
- A. Spark runs on YARN as one of its cluster managers.
- B. It writes intermediates to disk.
- C. It reads data from storage such as HDFS or object stores.