πŸ“Š Hadoop
Q. Which feature of Hadoop ensures continued service during hardware failure?
  • (A) Data encryption
  • (B) Data compression
  • (C) Fault tolerance
  • (D) User authentication
πŸ’¬ Discuss
βœ… Correct Answer: (C) Fault tolerance

Explanation: Hadoop is fault tolerant, meaning it can recover from hardware failures.

πŸ“Š Hadoop
Q. Which of these is a high-level scripting platform in Hadoop?
  • (A) Pig
  • (B) Sqoop
  • (C) Mahout
  • (D) HBase
πŸ’¬ Discuss
βœ… Correct Answer: (A) Pig

Explanation: Pig provides a high-level scripting language called Pig Latin for data analysis.

πŸ“Š Hadoop
Q. What is the function of 'fsimage' in Hadoop?
  • (A) Logs user activity
  • (B) Stores the file system namespace
  • (C) Stores user credentials
  • (D) Stores MapReduce output
πŸ’¬ Discuss
βœ… Correct Answer: (B) Stores the file system namespace

Explanation: The fsimage file contains a snapshot of the HDFS file system metadata.

πŸ“Š Hadoop
Q. Which of the following uses HDFS for storage?
  • (A) HBase
  • (B) MongoDB
  • (C) MySQL
  • (D) Redis
πŸ’¬ Discuss
βœ… Correct Answer: (A) HBase

Explanation: HBase stores its data in HDFS for fault tolerance and scalability.

πŸ“Š Hadoop
Q. Which one is not a valid feature of Hadoop?
  • (A) Scalability
  • (B) Fault tolerance
  • (C) Low latency
  • (D) High throughput
πŸ’¬ Discuss
βœ… Correct Answer: (C) Low latency

Explanation: Hadoop is not designed for low latency; it's built for batch processing with high throughput.

πŸ“Š Hadoop
Q. Which Apache project provides a RESTful API to interact with HDFS?
  • (A) ZooKeeper
  • (B) WebHDFS
  • (C) YARN
  • (D) Spark
πŸ’¬ Discuss
βœ… Correct Answer: (B) WebHDFS

Explanation: WebHDFS provides a RESTful API to access and manipulate HDFS data.

πŸ“Š Hadoop
Q. How does a client read data from HDFS?
  • (A) Through the NameNode only
  • (B) Through the DataNode only
  • (C) First contact NameNode, then read from DataNodes
  • (D) Only from Secondary NameNode
πŸ’¬ Discuss
βœ… Correct Answer: (C) First contact NameNode, then read from DataNodes

Explanation: Client contacts NameNode to get block locations and then reads directly from DataNodes.

πŸ“Š Hadoop
Q. What is speculative execution in MapReduce?
  • (A) Running a task on the fastest node
  • (B) Running a duplicate task to finish early
  • (C) Retrying failed tasks automatically
  • (D) Compressing job output
πŸ’¬ Discuss
βœ… Correct Answer: (B) Running a duplicate task to finish early

Explanation: Speculative execution runs a backup of slow tasks on another node to speed up job completion.

πŸ“Š Hadoop
Q. Which language is Hadoop primarily written in?
  • (A) Python
  • (B) C++
  • (C) Java
  • (D) Go
πŸ’¬ Discuss
βœ… Correct Answer: (C) Java

Explanation: Hadoop is primarily written in Java.

πŸ“Š Hadoop
Q. Which command displays the contents of a file in HDFS?
  • (A) hdfs dfs -view
  • (B) hdfs dfs -cat
  • (C) hdfs dfs -open
  • (D) hdfs dfs -disp
πŸ’¬ Discuss
βœ… Correct Answer: (B) hdfs dfs -cat

Explanation: The command 'hdfs dfs -cat' is used to display the contents of a file in HDFS.