1. Home
  2. Explore
  3. Computer Science
  4. Big Data Analytics Overview

Study methods

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

Big Data Analytics Overview

  • 40Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Big Data Fundamentals

What is the primary characteristic that defines 'Big Data' according to the content?

40 questions

  1. 1

    What is the primary characteristic that defines 'Big Data' according to the content?

    1. A

      Data that is stored in a distributed file system

    2. B

      Data that requires real-time processing

    3. C

      Data that cannot be processed using traditional methods due to its size and complexity

    4. D

      Data that is generated by social media platforms only

    Correct answer
    C

    Data that cannot be processed using traditional methods due to its size and complexity

    Explanation

    Big Data is defined as a huge amount of data that cannot be processed using traditional methods. The content emphasizes that it is not just about size but also about the inability of conventional systems to handle it.

  2. 2

    Which of the following is a drawback of traditional RDBMS when dealing with large-scale data?

    1. A

      RDBMS systems are unable to store structured data

    2. B

      RDBMS systems cannot ensure ACID properties for transactions

    3. C

      RDBMS systems are always more expensive than Hadoop

    4. D

      As data size increases, query performance degrades significantly

    Correct answer
    D

    As data size increases, query performance degrades significantly

    Explanation

    The content mentions that as data size increases in RDBMS, processing becomes very slow because of join operations and the inability to physically partition tables effectively.

  3. 3

    Why does the content suggest that RDBMS is still used for transaction management?

    1. A

      RDBMS is cheaper to maintain than Hadoop

    2. B

      RDBMS is faster than NoSQL databases for all operations

    3. C

      RDBMS is the only system that can handle large volumes of data

    4. D

      RDBMS ensures ACID properties which are essential for transactional integrity

    Correct answer
    D

    RDBMS ensures ACID properties which are essential for transactional integrity

    Explanation

    The content explicitly states that RDBMS is used for transaction management because it can ensure ACID properties, which are critical for transactions such as purchases.

  4. 4

    In the context of Big Data, what does the acronym ELT stand for and why is it preferred over ETL?

    1. A

      Extract, Load, Transform; it is preferred because Hadoop can store raw data and transform it later

    2. B

      Extract, Log, Transfer; it is preferred because it uses less memory

    3. C

      Extract, Load, Test; it is preferred because it validates data before loading

    4. D

      Extract, Link, Transform; it is preferred because it reduces network traffic

    Correct answer
    A

    Extract, Load, Transform; it is preferred because Hadoop can store raw data and transform it later

    Explanation

    The content explains that in Hadoop, ELT (Extract, Load, Transform) is used because you first load raw data into HDFS and then transform it later, unlike traditional ETL where transformation happens before loading.

  5. 5

    What was the primary motivation for ICICI Bank to migrate to a Big Data platform?

    1. A

      To replace their entire core banking system with Hadoop

    2. B

      To improve the speed of their online transaction processing

    3. C

      To reduce the cost of their Oracle database licenses

    4. D

      To enable real-time analytics and overcome scalability limitations of their existing data warehouse

    Correct answer
    D

    To enable real-time analytics and overcome scalability limitations of their existing data warehouse

    Explanation

    The content describes that ICICI Bank faced challenges with their traditional data warehouse: it was not real-time, could not scale with increasing data, and was costly. They wanted a solution that could handle real-time analytics and large volumes of unstructured data.

  6. 6

    Which of the following is NOT a component of Hadoop as described in the content?

    1. A

      MapReduce

    2. B

      YARN (Yet Another Resource Negotiator)

    3. C

      HDFS (Hadoop Distributed File System)

    4. D

      Hive

    Correct answer
    D

    Hive

    Explanation

    The content states that the three major components of Hadoop are HDFS, YARN, and MapReduce. Hive is an ecosystem tool that runs on top of Hadoop but is not a core component.

  7. 7

    In HDFS, what is the default replication factor mentioned in the content?

    1. A

      1

    2. B

      2

    3. C

      4

    4. D

      3

    Correct answer
    D

    3

    Explanation

    The content explains that HDFS replicates each block three times by default to provide fault tolerance.

  8. 8

    What is the role of the NameNode in HDFS?

    1. A

      To manage the metadata and namespace of the file system

    2. B

      To allocate resources to applications

    3. C

      To execute MapReduce tasks

    4. D

      To store the actual data blocks

    Correct answer
    A

    To manage the metadata and namespace of the file system

    Explanation

    The NameNode is the master server that manages the file system namespace and metadata (e.g., which blocks make up which files and where they are located). DataNodes store the actual data.

  9. 9

    Why does HDFS use a block size of 64 MB or 128 MB instead of a smaller size?

    1. A

      To reduce the overhead of replication

    2. B

      To increase the number of files that can be stored

    3. C

      To allow random access to any byte in the file

    4. D

      To minimize disk seek time and improve throughput for large files

    Correct answer
    D

    To minimize disk seek time and improve throughput for large files

    Explanation

    The content mentions that HDFS is designed for sequential reads of large files. A larger block size reduces the number of seeks and allows for faster streaming reads.

  10. 10

    In HDFS, if a DataNode fails, what happens to the blocks stored on that node?

    1. A

      The blocks are lost permanently

    2. B

      The blocks are automatically recovered from the failed node's disk when it restarts

    3. C

      The blocks are moved to a different cluster

    4. D

      The NameNode immediately replicates the blocks from other replicas to maintain the replication factor

    Correct answer
    D

    The NameNode immediately replicates the blocks from other replicas to maintain the replication factor

    Explanation

    The content explains that HDFS is fault-tolerant; if a DataNode fails, the NameNode detects the missing replicas and schedules new replicas on other DataNodes to maintain the desired replication factor.

  11. 11

    What is the purpose of rack awareness in HDFS?

    1. A

      To balance memory usage among racks

    2. B

      To reduce network traffic during data replication by placing replicas on different racks

    3. C

      To allow data to be stored on specific racks only

    4. D

      To improve CPU utilization across racks

    Correct answer
    B

    To reduce network traffic during data replication by placing replicas on different racks

    Explanation

    Rack awareness ensures that HDFS places replicas across different racks to prevent data loss in case of a rack failure and to optimize bandwidth usage during read/write operations.

  12. 12

    How does MapReduce achieve fault tolerance?

    1. A

      By using a single master node to re-execute all failed tasks from the beginning

    2. B

      By periodically writing intermediate results to disk so that failed tasks can be restarted from the last checkpoint

    3. C

      By storing intermediate data in memory only

    4. D

      By replicating all map output across multiple nodes

    Correct answer
    B

    By periodically writing intermediate results to disk so that failed tasks can be restarted from the last checkpoint

    Explanation

    MapReduce writes intermediate data to disk between the map and reduce phases. If a task fails, it can be re-executed because the intermediate data is persisted, allowing fault tolerance.

  13. 13

    What is YARN's primary role in Hadoop?

    1. A

      To execute MapReduce programs only

    2. B

      To provide a distributed file system

    3. C

      To store metadata about HDFS blocks

    4. D

      To manage cluster resources and schedule applications

    Correct answer
    D

    To manage cluster resources and schedule applications

    Explanation

    YARN is the resource management layer in Hadoop that allocates CPU and memory to applications (like MapReduce, Spark) and schedules their execution.

  14. 14

    In the context of Hive, what is the difference between a managed table and an external table?

    1. A

      Managed tables can only store structured data; external tables can store unstructured data

    2. B

      Managed tables require a schema; external tables do not

    3. C

      Managed tables store data in the Hive warehouse; external tables point to data stored elsewhere and Hive does not manage the lifecycle of the data

    4. D

      Managed tables are faster for queries; external tables are slower

    Correct answer
    C

    Managed tables store data in the Hive warehouse; external tables point to data stored elsewhere and Hive does not manage the lifecycle of the data

    Explanation

    The content explains that when you drop a managed table, both the metadata and the data are deleted. For an external table, only the metadata is deleted; the data remains in the original location.

  15. 15

    What is the advantage of using ORC file format in Hive?

    1. A

      It stores data in row-oriented format for faster inserts

    2. B

      It allows real-time updates to the data

    3. C

      It is the only format that supports ACID transactions

    4. D

      It provides built-in indexing and compression, improving query performance

    Correct answer
    D

    It provides built-in indexing and compression, improving query performance

    Explanation

    The content highlights that ORC (Optimized Row Columnar) format compresses data and includes indexes (row and column indexes) which speed up queries by minimizing data scans.

  16. 16

    Why is partitioning in Hive recommended only for columns with low cardinality?

    1. A

      Low cardinality columns make the data smaller

    2. B

      High cardinality columns would create too many partitions, leading to inefficiency and potential NameNode overload

    3. C

      Partitioning is only supported for integer columns

    4. D

      High cardinality columns cannot be used in WHERE clauses

    Correct answer
    B

    High cardinality columns would create too many partitions, leading to inefficiency and potential NameNode overload

    Explanation

    If a column has many unique values, partitioning creates many small directories and files, which increases metadata overhead and can slow down queries. It is best for columns like country or date (month/year) with limited distinct values.

  17. 17

    What is the main purpose of bucketing in Hive?

    1. A

      To compress data further than partitioning

    2. B

      To divide data into a fixed number of files within a partition for efficient sampling and join operations

    3. C

      To encrypt sensitive columns

    4. D

      To allow Hive to support real-time queries

    Correct answer
    B

    To divide data into a fixed number of files within a partition for efficient sampling and join operations

    Explanation

    Bucketing splits data into a specified number of buckets based on the hash of a column. This is useful for sampling and for performing efficient map-side joins when both tables are bucketed on the same column.

  18. 18

    What is the key advantage of Spark over MapReduce according to the content?

    1. A

      Spark performs in-memory processing, making it much faster for iterative algorithms

    2. B

      Spark does not require a cluster manager

    3. C

      Spark can only process structured data

    4. D

      Spark is easier to program in Java

    Correct answer
    A

    Spark performs in-memory processing, making it much faster for iterative algorithms

    Explanation

    The content emphasizes that Spark's in-memory processing allows it to be up to 100x faster than MapReduce for iterative algorithms and interactive queries, as intermediate data is kept in memory rather than written to disk.

  19. 19

    What does RDD stand for in Spark?

    1. A

      Random Data Division

    2. B

      Recursive Data Definition

    3. C

      Reliable Data Distribution

    4. D

      Resilient Distributed Dataset

    Correct answer
    D

    Resilient Distributed Dataset

    Explanation

    RDD stands for Resilient Distributed Dataset, which is the fundamental data structure in Spark. It is an immutable, partitioned collection of records that can be processed in parallel.

  20. 20

    In Spark, what is the difference between transformations and actions?

    1. A

      Transformations are used only for SQL queries; actions are used for streaming

    2. B

      Transformations are executed immediately; actions are delayed

    3. C

      Transformations return results to the driver; actions define new datasets

    4. D

      Transformations are lazy and define a new RDD; actions trigger computation and return a value or write to external storage

    Correct answer
    D

    Transformations are lazy and define a new RDD; actions trigger computation and return a value or write to external storage

    Explanation

    The content explains that Spark uses lazy evaluation: transformations (like map, filter) build up a lineage but do not execute until an action (like count, collect) is called. Actions trigger the actual computation.

  21. 21

    What is the purpose of caching (persisting) an RDD in Spark?

    1. A

      To convert the RDD into a DataFrame

    2. B

      To save the RDD data permanently to HDFS

    3. C

      To shuffle the data across partitions

    4. D

      To avoid recomputing the RDD when multiple actions are called on it

    Correct answer
    D

    To avoid recomputing the RDD when multiple actions are called on it

    Explanation

    Caching an RDD stores its contents in memory (or disk) so that subsequent actions on the same RDD do not need to recompute it from its lineage, speeding up iterative algorithms.

  22. 22

    In Spark, what is a partition?

    1. A

      A logical division of an RDD that is processed by a single executor task

    2. B

      A way to split the driver program

    3. C

      A stage in the execution plan

    4. D

      A physical copy of data across multiple nodes

    Correct answer
    A

    A logical division of an RDD that is processed by a single executor task

    Explanation

    An RDD is divided into partitions, and each partition is processed by a single task in an executor. More partitions allow greater parallelism.

  23. 23

    Which of the following is true about Spark Streaming?

    1. A

      It requires a separate cluster from the main Spark cluster

    2. B

      It can only read from HDFS

    3. C

      It processes each event individually in real time

    4. D

      It processes data in micro-batches with a configurable interval

    Correct answer
    D

    It processes data in micro-batches with a configurable interval

    Explanation

    Spark Streaming divides the incoming stream into small batches (micro-batches) and processes them using Spark's batch processing engine, providing near-real-time processing.

  24. 24

    When running Spark on YARN, what is the role of the ApplicationMaster?

    1. A

      To compile the Spark code into bytecode

    2. B

      To store the data to be processed

    3. C

      To provide a web UI for the cluster

    4. D

      To coordinate the execution of the Spark application, including requesting containers from YARN

    Correct answer
    D

    To coordinate the execution of the Spark application, including requesting containers from YARN

    Explanation

    In YARN mode, the ApplicationMaster is responsible for negotiating resources from the ResourceManager and monitoring the execution of the Spark application tasks.

  25. 25

    Why does the content recommend using Spark SQL or DataFrames over RDDs when dealing with structured data?

    1. A

      DataFrames are always faster than RDDs regardless of the operation

    2. B

      RDDs cannot be used with SQL

    3. C

      Spark SQL can optimize queries using schema information and catalyst optimizer, leading to better performance

    4. D

      DataFrames consume less memory than RDDs

    Correct answer
    C

    Spark SQL can optimize queries using schema information and catalyst optimizer, leading to better performance

    Explanation

    The content explains that when using RDDs with lambda functions, Spark cannot optimize the execution plan. With Spark SQL/DataFrames, the Catalyst optimizer can apply optimizations like predicate pushdown and column pruning, resulting in faster execution.

  26. 26

    In the context of Hadoop cluster hardware, what does 'commodity hardware' mean?

    1. A

      Virtual machines running on a single physical server

    2. B

      Cheap, off-the-shelf hardware that may fail frequently

    3. C

      High-end servers with redundant components

    4. D

      Hardware that is specifically designed for Hadoop

    Correct answer
    B

    Cheap, off-the-shelf hardware that may fail frequently

    Explanation

    Hadoop is designed to run on commodity hardware (inexpensive, standard servers) because it can tolerate failures through replication and re-execution, unlike traditional systems that require expensive, reliable hardware.

  27. 27

    What is the purpose of the Sqoop tool in the Hadoop ecosystem?

    1. A

      To efficiently transfer bulk data between Hadoop and structured data stores like relational databases

    2. B

      To process graph data

    3. C

      To manage cluster resources

    4. D

      To stream real-time data from web servers into HDFS

    Correct answer
    A

    To efficiently transfer bulk data between Hadoop and structured data stores like relational databases

    Explanation

    Sqoop is used to import data from relational databases (e.g., Oracle, MySQL) into Hadoop and export data back to those databases.

  28. 28

    How does Hive handle data with different schemas?

    1. A

      It uses a 'schema-on-read' approach, applying the schema only when the data is queried

    2. B

      It enforces a strict schema at write time

    3. C

      It automatically converts all data to a common schema

    4. D

      It requires all data to have the same schema before loading

    Correct answer
    A

    It uses a 'schema-on-read' approach, applying the schema only when the data is queried

    Explanation

    Hive uses schema-on-read, meaning the data is stored as is (e.g., as text files) and the schema is applied at query time. This allows flexibility to handle various data formats.

  29. 29

    In the content, what is the significance of the 'DataNode' process in HDFS?

    1. A

      It tracks the health of the cluster

    2. B

      It manages the file system namespace

    3. C

      It stores actual data blocks and serves read/write requests from clients

    4. D

      It compresses data before storage

    Correct answer
    C

    It stores actual data blocks and serves read/write requests from clients

    Explanation

    DataNodes are the slave nodes in HDFS that store the actual data blocks and perform read/write operations as instructed by the NameNode.

  30. 30

    What is the main reason Spark is considered a 'unified analytics engine'?

    1. A

      It can run on any cluster manager

    2. B

      It supports multiple workloads (batch, streaming, SQL, ML, graph) within a single platform

    3. C

      It replaces all Hadoop components

    4. D

      It is the only engine that can process both structured and unstructured data

    Correct answer
    B

    It supports multiple workloads (batch, streaming, SQL, ML, graph) within a single platform

    Explanation

    The content highlights that Spark unifies data processing by providing libraries for SQL, streaming, machine learning, and graph processing, all on the same engine, eliminating the need to learn multiple separate tools.

  31. 31

    In HDFS, what happens when a file is deleted?

    1. A

      The file is moved to a trash directory for a configurable period before being permanently deleted

    2. B

      The file is compressed and archived

    3. C

      The file is immediately erased from all disks

    4. D

      The file's metadata is deleted but the data blocks remain

    Correct answer
    A

    The file is moved to a trash directory for a configurable period before being permanently deleted

    Explanation

    HDFS has a trash feature (similar to Windows recycle bin) that temporarily stores deleted files. They can be recovered until the trash is emptied or the retention period expires.

  32. 32

    What is the role of ZooKeeper in a Hadoop cluster?

    1. A

      To provide distributed coordination and synchronization for services like NameNode high availability

    2. B

      To monitor cluster health

    3. C

      To act as a resource manager

    4. D

      To store HDFS metadata

    Correct answer
    A

    To provide distributed coordination and synchronization for services like NameNode high availability

    Explanation

    ZooKeeper is used for coordination in distributed systems. In Hadoop, it enables automatic failover of the NameNode by maintaining the active/standby state.

  33. 33

    In the context of the content, what is the main advantage of using a NoSQL database like HBase over HDFS for random access?

    1. A

      HBase stores data in a relational format

    2. B

      HBase provides indexes for fast random reads and writes, whereas HDFS is optimized for sequential scans

    3. C

      HBase does not require a schema

    4. D

      HBase is cheaper than HDFS

    Correct answer
    B

    HBase provides indexes for fast random reads and writes, whereas HDFS is optimized for sequential scans

    Explanation

    The content mentions that HBase (a NoSQL database on HDFS) supports random read/write access to individual records, unlike HDFS which is designed for batch processing and does not support efficient random access.

  34. 34

    What is the purpose of the 'partitioning' feature in Hive?

    1. A

      To divide data into separate physical tables

    2. B

      To split data across multiple clusters

    3. C

      To organize data into subdirectories based on partition keys, allowing queries to skip irrelevant data and improve performance

    4. D

      To enforce data integrity constraints

    Correct answer
    C

    To organize data into subdirectories based on partition keys, allowing queries to skip irrelevant data and improve performance

    Explanation

    Partitioning in Hive creates subdirectories for each unique value of the partition column. When a query filters on that column, only the relevant subdirectories are scanned, reducing I/O and improving performance.

  35. 35

    In Spark, what is a 'stage'?

    1. A

      A partition within an RDD

    2. B

      A set of tasks that can be executed together without shuffling data

    3. C

      A grouping of actions

    4. D

      A phase of the application where transformations are applied

    Correct answer
    B

    A set of tasks that can be executed together without shuffling data

    Explanation

    A stage in Spark's execution plan consists of tasks that process data in a pipelined fashion without needing to shuffle data across the network. Stages are separated by shuffle operations.

  36. 36

    What does the 'flatMap' transformation do in Spark?

    1. A

      It applies a function to each element and returns a sequence of elements, flattening the result

    2. B

      It applies a function to each element and returns a single element

    3. C

      It filters out null values

    4. D

      It partitions the data into a flat structure

    Correct answer
    A

    It applies a function to each element and returns a sequence of elements, flattening the result

    Explanation

    flatMap is similar to map but each input element can be mapped to zero or more output elements, and the results are flattened into a single RDD.

  37. 37

    In the content, why is Hadoop considered suitable for data warehousing?

    1. A

      It provides a SQL-like interface through Hive and can store and process large volumes of structured data

    2. B

      It supports ACID transactions

    3. C

      It is faster than traditional data warehouses

    4. D

      It guarantees real-time query responses

    Correct answer
    A

    It provides a SQL-like interface through Hive and can store and process large volumes of structured data

    Explanation

    Hadoop, with Hive, acts as a data warehouse where data can be stored cheaply and queried using SQL. However, it is not real-time and does not support full ACID transactions (though newer versions add limited support).

  38. 38

    What is the 'lazy evaluation' in Spark?

    1. A

      Spark evaluates transformations only when the data is cached

    2. B

      Spark evaluates actions lazily

    3. C

      Spark delays the execution of transformations until an action is called, allowing optimization of the execution plan

    4. D

      Spark executes all transformations eagerly to provide immediate results

    Correct answer
    C

    Spark delays the execution of transformations until an action is called, allowing optimization of the execution plan

    Explanation

    Lazy evaluation means that transformations are not executed immediately; instead, they build a lineage. When an action is invoked, Spark optimizes and executes the entire Directed Acyclic Graph (DAG) of transformations.

  39. 39

    In the content, what is the purpose of using Flume in a Big Data pipeline?

    1. A

      To schedule batch jobs

    2. B

      To transfer data between Hadoop and relational databases

    3. C

      To collect and ingest streaming data (e.g., log files) into HDFS

    4. D

      To process data in real time

    Correct answer
    C

    To collect and ingest streaming data (e.g., log files) into HDFS

    Explanation

    Flume is designed to collect large amounts of streaming data (like log files) from various sources and reliably deliver it to centralized storage like HDFS.

  40. 40

    What is a key limitation of Hive for real-time processing?

    1. A

      Hive queries are converted into MapReduce jobs which have high latency, making them unsuitable for real-time

    2. B

      Hive requires data to be in a specific file format

    3. C

      Hive does not support SQL queries

    4. D

      Hive can only process unstructured data

    Correct answer
    A

    Hive queries are converted into MapReduce jobs which have high latency, making them unsuitable for real-time

    Explanation

    Hive was originally designed for batch processing via MapReduce, which introduces significant latency. Later versions with Tez/Spark improve speed but still not real-time.

Question 1 of 40
Question 1 of 40

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent