Chapter Ten Flashcards

(80 cards)

1
Q

What are the classifications of NoSQL databases?

A
  • Key-value stores
  • Document stores
  • Wide-column stores
  • Graph-oriented databases

These classifications help in understanding the various types of NoSQL databases and their use cases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a wide-column store?

A

A NoSQL database that distributes data based on both key values and columns, using ‘column groups/families’.

Example: Apache Cassandra.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a graph-oriented database?

A

A database that maintains information regarding the relationships between data items, with nodes and properties, and connections between nodes can also have properties.

Example: Neo4j.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does NoSQL stand for?

A

Not Only SQL.

A category of data storage and retrieval technologies not based on the relational model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the main characteristics of NoSQL databases?

A
  • Performance: Variable
  • Scalability: High
  • Flexibility: High
  • Complexity: Low
  • Functionality: Variable

These characteristics differentiate NoSQL databases from traditional relational databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the Five V’s of Big Data?

A
  • Volume
  • Variety
  • Velocity
  • Veracity
  • Value

These characteristics define the nature and challenges of Big Data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is meant by ‘Schema on Read’?

A

A data model determined later, depending on how the data will be used, allowing flexibility in data access.

This contrasts with ‘Schema on Write’, which uses a preexisting data model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Data Lake?

A

A large integrated repository for internal and external data that does not follow a predefined schema.

It allows flexible access and captures everything.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Hadoop?

A

An open-source implementation framework of MapReduce designed for managing large files in a distributed environment.

Hadoop is widely used for big data management.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is MapReduce?

A

An algorithm for massive parallel processing of various types of computing tasks, dividing a computing task so multiple nodes can work on it simultaneously.

It consists of two stages: Map and Reduce.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the function of the Hadoop Distributed File System (HDFS)?

A

A file system designed for managing large files in a distributed environment, breaking data into blocks and distributing them across nodes.

HDFS allows efficient data storage and processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the role of Pig in the Hadoop ecosystem?

A

A tool that integrates a scripting language and an execution environment to simplify the use of MapReduce.

It is useful for developing data processing tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Hive in the context of Hadoop?

A

A tool that supports management and querying of large datasets using a SQL-like language called HiveQL.

It is useful for ETL tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the primary difference between relational and NoSQL databases?

A

Relational databases rely on a predefined schema, while NoSQL databases support schema on read and greater flexibility.

This affects how data is stored and retrieved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Fill in the blank: A document-store database uses _______ for storage.

A

BSON-based storage format.

BSON stands for Binary JSON.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False: NoSQL databases are typically ACID compliant.

A

False.

NoSQL databases are often not ACID compliant, which distinguishes them from traditional relational databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does the acronym BASE in NoSQL refer to?

A

Basically Available, Soft state, Eventually consistent.

This is a model used in many NoSQL databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the purpose of the _id property in MongoDB?

A

To uniquely identify a document.

It serves as a primary key in the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does the term ‘move computation to the data’ refer to in Hadoop?

A

The principle of processing data where it is stored rather than moving it to a centralized location for processing.

This approach enhances efficiency in data processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

With HDFS it is less expensive to move the execution of computation to data than to move the:

A

data to computation.
data to hardware.
data to systems analysis.
data to processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Hive uses ________ to query data.

A

Honeyquery
* HiveQL *
BeesNest
SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Structured Query Language (SQL) is a set of methodologies, processes, architectures, and technologies that transform raw data into meaningful information.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

JSON is commonly used in conjunction with the ‘document store’ NoSQL database model.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

NoSQL includes data storage and retrieval:

A

based on normalized tables.
* not based on the relational model. *
based on the relational model.
not based on data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Hive creates MapReduce jobs and executes them on a Hadoop Cluster.
True
26
An organization that requires a sole focus on performance with the ability for keys to include strings, hashes, lists, and sorted sets would select ________ database management system.
Access * Redis * Neo4j Excel Spreadsheet
27
The NoSQL model that is specifically designed to maintain information regarding the relationships (often real-world instances of entities) between data items is called a:
key-value store. * graph-oriented database. * wide-column store. document store.
28
It is true that in an HDFS cluster the NameNode is the:
* single master server. * business intelligence. language library. large number of slaves.
29
Data in MongoDB is represented in:
*BSON. * SON. CSON. JSON
30
Collect everything is a characteristic of a data lake.
True
31
Big data requires effectively processing:
a single data type (text). a single data type (numeric). * many data types. * two data types (text and numeric).
32
________ includes concern about data quality issues.
Velocity * Veracity * Variety Vigilant
33
The primary use of Pig is to:
*transform raw data into a format that is useful for analysis.* create data warehouses. query large databases. create large databases.
34
MapReduce is an algorithm for massive parallel processing utilized by Hadoop.
True
35
A business owner that needs carefully normalized tables would likely need a relational database instead of a NoSQL database.
True
36
The Hadoop framework consists of the ________ algorithm to solve large scale problems.
MapSystem MapComponent * MapReduce * MapCluster
37
Neo4j is a wide-column NoSQL database management system developed by Oracle.
False
38
Hive is a(n) ________ data warehouse software.
Oracle Macintosh Microsoft * Apache *
39
NoSQL focuses on avoidance of replication and minimizing storage space.
False
40
Why do modern data needs extend beyond relational DBs & data warehouses?
They must handle unstructured/semi-structured data, petabyte scale, real-time ingestion, and elastic horizontal growth.
41
Name two technical limits of traditional relational databases in a big-data world.
(1) Vertical scaling costs skyrocket; (2) Schema-on-write forces ETL & slows agile development.
42
Give an example use case poorly served by a relational DB but ideal for NoSQL.
IoT sensor streams arriving at millions of events per second.
43
Main NoSQL categories (list).
* Key-Value * Document * Column-Family (Wide-Column) * Graph
44
Key-Value store—core idea?
Data = arbitrary 'value' blob referenced by a unique key.
45
Document store—core idea?
JSON/BSON documents with flexible nested fields.
46
Column-Family (Wide-Column) store—core idea?
Data stored by column families rather than rows for large sparse tables.
47
Graph store—core idea?
Nodes + edges with properties; optimized for traversals.
48
What kind of NoSQL DB is MongoDB?
Document store.
49
Which on-disk format does MongoDB use?
BSON (Binary JSON).
50
Two features of MongoDB that illustrate NoSQL flexibility.
(1) Dynamic schema; (2) Automatic sharding for horizontal scaling.
51
ACID vs BASE—relational or NoSQL?
ACID = Relational transactions; BASE = many NoSQL systems.
52
When would you choose a relational DB over NoSQL?
Need strong transactions, complex joins, strict integrity.
53
When would you choose NoSQL over relational?
High write throughput, variable schema, massive scale.
54
Define 'Big Data' in one sentence.
Data sets whose volume, velocity, and variety exceed the capacity of conventional systems.
55
List the classic 3 Vs of big data.
* Volume * Velocity * Variety
56
Two additional Vs often mentioned.
* Veracity * Value
57
Core storage layer of Hadoop.
HDFS (Hadoop Distributed File System).
58
Hadoop’s resource manager.
YARN (Yet Another Resource Negotiator).
59
Hadoop’s original compute engine.
MapReduce.
60
What are 'Hadoop Common' libraries?
Shared utilities & Java APIs that support all Hadoop modules.
61
Name two ecosystem tools that often run on Hadoop.
* Hive * Pig
62
Purpose of MapReduce’s 'Map' phase.
Parallelize data into (key, value) pairs.
63
Purpose of MapReduce’s 'Reduce' phase.
Aggregate or merge all values for each key.
64
Why is MapReduce necessary for big data?
It abstracts fault-tolerant parallel processing across thousands of nodes.
65
Explain 'data locality' in MapReduce.
Code is sent to the HDFS node holding the data block.
66
What happens if a Map task fails?
YARN re-schedules the task on another node.
67
HDFS replication default factor & reason.
Default 3 copies; ensures fault tolerance.
68
Column-family DBs achieve high write throughput by…
Using log-structured storage with sequential disk writes.
69
Graph query language example.
Cypher (Neo4j) or Gremlin (Apache TinkerPop).
70
CAP theorem trade-offs—how do NoSQL DBs differ from RDBMS?
Many NoSQL systems sacrifice strong consistency for availability and partition tolerance.
71
Describe 'sharding.'
Horizontal partitioning of data across many nodes.
72
Which NoSQL category best fits time-series metrics?
Often a specialized subset of Key-Value or Wide-Column.
73
Document DB vs Key-Value store—key distinction?
Document DB allows querying inside the value.
74
What does BASE’s 'soft-state' imply?
System state may change over time even without input.
75
In Hadoop, what service copies data blocks between DataNodes?
DataNode daemons themselves.
76
HDFS NameNode single point of failure mitigation.
High-Availability mode with active & standby NameNodes.
77
Spark vs MapReduce (one advantage).
Spark keeps intermediate data in memory.
78
Hadoop streaming—what is it?
Allows MapReduce programs written in any language.
79
ACID transactions in MongoDB—supported?
Yes, multi-document ACID transactions since v4.0.
80
Eventual consistency—give a real-world analogy.
Family group chat: messages may appear in slightly different order.