wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NoSQL Database Quiz

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

ACID properties are primarily associated with which type of database transactions?

a)

NoSQL databases

b)

Graph databases

c)

Document databases

d)

Relational databases

2.

BASE properties are often preferred over ACID properties in scenarios prioritizing:

a)

High availability and eventual consistency

b)

Complex joins

c)

Strict consistency

d)

Strong integrity

3.

What is the primary purpose of database sharding?

a)

To improve data integrity

b)

To enforce ACID properties

c)

To reduce data redundancy

d)

To achieve horizontal scalability

4.

Brewer's CAP theorem states that a distributed system cannot simultaneously guarantee which three properties?

a)

Consistency, Atomicity, Partition Tolerance

b)

Consistency, Atomicity, Durability

c)

Consistency, Availability, Durability

d)

Consistency, Availability, Partition Tolerance

5.

Which of the following is a key characteristic of 'Big Data'?

a)

Low velocity, low volume, low variety

b)

High volume, velocity, variety

c)

Static data only

d)

Primarily small, structured datasets

6.

Which layer of the Big Data stack is NoSQL primarily associated with?

a)

Data Storage and Processing

b)

Application Layer

c)

Data Analysis and Visualization

d)

Data Ingestion

7.

The shift from vertical scaling to horizontal scaling in databases is often driven by the need to handle:

a)

Stronger ACID guarantees

b)

Smaller datasets

c)

Reduced query complexity

d)

Massive data growth and high traffic

8.

What is the primary benefit of 'moving queries to data, not data to the query' in a distributed NoSQL system?

a)

Decreased network latency and increased efficiency

b)

Stronger ACID guarantees

c)

Simplified data modeling

d)

Reduced need for replication

9.

Replication in NoSQL databases is primarily used to achieve:

a)

Reduced storage space

b)

Scalability for reads and high availability

c)

Centralized data management

d)

Strict serializable isolation

10.

When a query is distributed across multiple data nodes in a NoSQL system, what is generally happening?

a)

Only the primary node executes the query.

b)

The entire dataset is moved to a single node for processing.

c)

Each node processes a portion of the query on its local data.

d)

All data is replicated to every node for faster access.

11.

An aggregate in the context of NoSQL data modeling typically refers to:

a)

A single table with multiple foreign keys.

b)

A collection of related data that is often accessed and updated together.

c)

A complex SQL query result.

d)

A distributed transaction involving multiple nodes.

12.

What is the fundamental concept behind a key-value database?

a)

Data is accessed by a unique key that maps to a corresponding value.

b)

Data is represented as nodes and edges in a graph.

c)

Data is stored in tables with rows and columns.

d)

Data is organized as documents with flexible schemas.

13.

What is the fundamental unit of data storage in a document-oriented database?

a)

A graph node

b)

A row

c)

A document

d)

A table

14.

Which of the following is a key advantage of document-oriented databases?

a)

Support for complex, multi-table joins.

b)

Strict ACID compliance for all transactions.

c)

Rigid schema enforcement.

d)

Flexible schema, allowing for varied document structures.

15.

What is a 'Capped Collection' in MongoDB primarily used for?

a)

Storing high-volume, frequently updated data (e.g., logs, events) in a fixed-size collection that overwrites oldest entries.

b)

Storing data that is read-only.

c)

Storing fixed-size documents.

d)

Ensuring strong consistency across all replicas.