1. Home
  2. Explore
  3. Computer Science
  4. Hadoop Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Hadoop Overview

  • 25Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Big Data Concepts

What is the primary reason data has been converting into big data?

25 questions

  1. 1

    What is the primary reason data has been converting into big data?

    1. A

      The rise of social media platforms generating vast amounts of user data

    2. B

      The decreasing cost of data storage hardware

    3. C

      The increasing processing power of traditional systems

    4. D

      The adoption of data compression algorithms

    Correct answer
    A

    The rise of social media platforms generating vast amounts of user data

    Explanation

    The tutorial highlights social media, along with smart devices and IoT, as a major driver of big data growth, with billions of users generating data every day.

  2. 2

    According to Cisco, which of the following is a major reason for the rise of data?

    1. A

      Reduction in internet bandwidth costs

    2. B

      Decreased usage of social media

    3. C

      Increasing popularity of desktop computers

    4. D

      Adapting to smarter mobile devices

    Correct answer
    D

    Adapting to smarter mobile devices

    Explanation

    Cisco's white paper mentions three reasons: adapting to smarter mobile devices, defining cell network advances, and reviewing tiered pricing.

  3. 3

    Which of the 5Vs of big data refers to the inability of traditional systems to process the sheer amount of data?

    1. A

      Volume

    2. B

      Velocity

    3. C

      Variety

    4. D

      Veracity

    Correct answer
    A

    Volume

    Explanation

    Volume refers to the huge amount of data that traditional systems cannot handle. The other Vs address other aspects: variety (different types), velocity (speed), veracity (trustworthiness), and value (usefulness).

  4. 4

    According to the tutorial, what percentage of data is unstructured?

    1. A

      95%

    2. B

      90%

    3. C

      80%

    4. D

      70%

    Correct answer
    B

    90%

    Explanation

    The tutorial states that almost 90% of data is unstructured, making it a key challenge for traditional systems.

  5. 5

    What is the primary problem that Hadoop solves?

    1. A

      Storing and processing large datasets in a parallel and distributed fashion

    2. B

      Providing real-time data processing for all applications

    3. C

      Eliminating the need for data replication

    4. D

      Replacing relational databases for all data storage needs

    Correct answer
    A

    Storing and processing large datasets in a parallel and distributed fashion

    Explanation

    Hadoop is a framework designed to store and process large datasets in parallel and distributed manner, addressing the limitations of traditional systems.

  6. 6

    In Hadoop's master/slave architecture, which component is the master in HDFS?

    1. A

      NameNode

    2. B

      ResourceManager

    3. C

      DataNode

    4. D

      NodeManager

    Correct answer
    A

    NameNode

    Explanation

    In HDFS, the NameNode is the master node that manages the DataNodes (slaves).

  7. 7

    What is the role of the Secondary NameNode?

    1. A

      To perform checkpointing by merging the edit log with the FS image

    2. B

      To store a backup of all data blocks

    3. C

      To act as a standby NameNode in case of failure

    4. D

      To manage the replication factor of data blocks

    Correct answer
    A

    To perform checkpointing by merging the edit log with the FS image

    Explanation

    The Secondary NameNode performs checkpointing, which combines the edit log with the FS image to create an updated FS image. It is not a backup for the NameNode.

  8. 8

    Which two files does HDFS use to maintain metadata?

    1. A

      Block report and heartbeat log

    2. B

      NameNode data and DataNode data

    3. C

      Replication file and storage log

    4. D

      FS image and edit log

    Correct answer
    D

    FS image and edit log

    Explanation

    HDFS maintains metadata using the FS image (containing all modifications since NameNode start) and the edit log (containing recent changes).

  9. 9

    What is the default block size in HDFS?

    1. A

      64 MB

    2. B

      256 MB

    3. C

      512 MB

    4. D

      128 MB

    Correct answer
    D

    128 MB

    Explanation

    The default block size in HDFS is 128 MB.

  10. 10

    A file of 380 MB is stored in HDFS. How many blocks will it be divided into?

    1. A

      5

    2. B

      3

    3. C

      4

    4. D

      2

    Correct answer
    B

    3

    Explanation

    380 MB divided by 128 MB per block gives 2 full blocks and a partial block, so a total of 3 blocks (128 MB, 128 MB, and 124 MB).

  11. 11

    What is the default replication factor in HDFS?

    1. A

      1

    2. B

      4

    3. C

      2

    4. D

      3

    Correct answer
    D

    3

    Explanation

    By default, each data block is replicated three times across the cluster to provide fault tolerance.

  12. 12

    How does HDFS provide fault tolerance?

    1. A

      By compressing data to reduce storage footprint

    2. B

      By using RAID technology on each node

    3. C

      By backing up data to an external server daily

    4. D

      By storing multiple replicas of each data block across different nodes

    Correct answer
    D

    By storing multiple replicas of each data block across different nodes

    Explanation

    HDFS replicates each block (default 3 copies) so that if one node fails, the data is still available from other nodes.

  13. 13

    In the HDFS write pipeline, what is the first step?

    1. A

      The client reads the file from the local disk

    2. B

      The client requests a list of DataNodes from the NameNode

    3. C

      The NameNode sends the data to all DataNodes simultaneously

    4. D

      The client directly writes to the first DataNode

    Correct answer
    B

    The client requests a list of DataNodes from the NameNode

    Explanation

    The client first contacts the NameNode to get the IP addresses of three DataNodes where the block will be replicated.

  14. 14

    During the HDFS write operation, which DataNode sends the final acknowledgment to the client?

    1. A

      The NameNode

    2. B

      The last DataNode in the pipeline

    3. C

      The first DataNode in the pipeline

    4. D

      The Secondary NameNode

    Correct answer
    C

    The first DataNode in the pipeline

    Explanation

    Acknowledgments flow in reverse order: the last DataNode acknowledges to the previous, and finally the first DataNode acknowledges the client.

  15. 15

    In MapReduce, what is the input to the mapper function?

    1. A

      A key-value pair where the key is the word and the value is the frequency

    2. B

      A list of all words from the entire file

    3. C

      A key-value pair where the key is the byte offset and the value is a line of text

    4. D

      A set of already aggregated counts

    Correct answer
    C

    A key-value pair where the key is the byte offset and the value is a line of text

    Explanation

    The mapper receives input as key-value pairs: the key is the byte offset of the line, and the value is the line itself.

  16. 16

    What does the mapper output in the word count example?

    1. A

      Key-value pairs where the key is a line number and the value is the line

    2. B

      Key-value pairs where the key is a word and the value is 1

    3. C

      Only the list of unique words

    4. D

      A single key-value pair with the total count

    Correct answer
    B

    Key-value pairs where the key is a word and the value is 1

    Explanation

    The mapper tokenizes each line and emits each word with a hard-coded value of 1.

  17. 17

    In MapReduce, what is the purpose of the reducer?

    1. A

      To shuffle and sort the mapper output

    2. B

      To aggregate the intermediate values for each key

    3. C

      To write the final output to HDFS

    4. D

      To split the input file into smaller parts

    Correct answer
    B

    To aggregate the intermediate values for each key

    Explanation

    The reducer receives a key and a list of values, then aggregates them (e.g., summing counts) to produce the final output.

  18. 18

    What is YARN?

    1. A

      A tool for data ingestion into HDFS

    2. B

      A distributed file system used by Hadoop

    3. C

      A resource management layer for Hadoop that enables multiple data processing frameworks

    4. D

      A programming model for big data processing

    Correct answer
    C

    A resource management layer for Hadoop that enables multiple data processing frameworks

    Explanation

    YARN (Yet Another Resource Negotiator) is the resource management layer in Hadoop that manages cluster resources and allows various processing frameworks to run.

  19. 19

    Which YARN component is responsible for launching the AppMaster?

    1. A

      ApplicationMaster

    2. B

      Container

    3. C

      ResourceManager

    4. D

      NodeManager

    Correct answer
    C

    ResourceManager

    Explanation

    The ResourceManager receives job requests and instructs a NodeManager to launch an AppMaster for the application.

  20. 20

    In the map phase, what triggers a spill to disk?

    1. A

      The map task finishes processing all records

    2. B

      The circular buffer reaches 80% of its capacity

    3. C

      The reducer requests intermediate data

    4. D

      The NameNode runs out of memory

    Correct answer
    B

    The circular buffer reaches 80% of its capacity

    Explanation

    A background thread starts spilling when the buffer's content reaches the threshold (default 80%).

  21. 21

    Which Hadoop cluster mode is suitable for production environments?

    1. A

      Single-node mode

    2. B

      Multi-node cluster mode

    3. C

      Pseudo-distributed mode

    4. D

      Standalone mode

    Correct answer
    B

    Multi-node cluster mode

    Explanation

    Multi-node cluster mode distributes daemons across multiple machines, providing scalability and fault tolerance.

  22. 22

    Which Hadoop ecosystem tool is used to ingest unstructured data like social media data into HDFS?

    1. A

      Flume

    2. B

      Scoop

    3. C

      Pig

    4. D

      Hive

    Correct answer
    A

    Flume

    Explanation

    Flume is designed for ingesting unstructured and semi-structured data, especially from sources like social media.

  23. 23

    In the Pig use case, what delimiter is used in the Olympic dataset?

    1. A

      Tab

    2. B

      Space

    3. C

      Comma

    4. D

      Semicolon

    Correct answer
    A

    Tab

    Explanation

    The tutorial specifies that fields are separated by a tab, so the PigStorage delimiter is set to '\t'.

  24. 24

    In Pig Latin, which command is used to display the contents of a relation?

    1. A

      dump

    2. B

      show

    3. C

      display

    4. D

      print

    Correct answer
    A

    dump

    Explanation

    The 'dump' command outputs the contents of a variable to the console.

  25. 25

    According to the tutorial, how many lines of MapReduce code are equivalent to 10 lines of Pig code?

    1. A

      100

    2. B

      20

    3. C

      200

    4. D

      50

    Correct answer
    C

    200

    Explanation

    The tutorial claims that 10 lines of Pig code equate to about 200 lines of MapReduce code.

Question 1 of 25
Question 1 of 25

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent