wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NOSQL

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

What solution is proposed to overcome the performance wall encountered by traditional SQL databases?

a)

Switching to batch processing for all user writes

b)

Adding more indexes to relational tables and views

c)

Increasing vertical memory in a single SQL server

d)

Adopting NoSQL with flexible schemas and horizontal scaling

2.

For a social application storing images, posts, and logs, which database trait is most critical?

a)

Flexible schemas for varied content

b)

Single-node synchronous writes

c)

Fixed column counts per table

d)

Only normalized third normal form

3.

Partition tolerance in distributed systems primarily refers to the ability to:

a)

Operate despite dropped or delayed messages

b)

Guarantee linearizable reads under any failure

c)

Pause service until full connectivity returns

d)

Rollback all writes during network splits

4.

According to the CAP theorem, a distributed system can simultaneously guarantee:

a)

Only two of Consistency, Availability, Partition tolerance

b)

None of Consistency, Availability, Partition tolerance

c)

Only one of Consistency, Availability, Partition tolerance

d)

All three of Consistency, Availability, Partition tolerance

5.

Which choice correctly matches CA in the CAP context?

a)

Consistency and Availability with strong partition tolerance

b)

Consistency and Availability in absence of partitions

c)

Consistency and Availability with eventual consistency

d)

Consistency and Availability guaranteed under partitions

6.

A social media feed loads instantly, but the like count is briefly inconsistent. Which CAP choice is demonstrated?

a)

PA prioritizing partitions

b)

CA prioritizing latency

c)

AP prioritizing availability

d)

CP prioritizing consistency

7.

When designing a social platform, which metric is least critical for AP-first features?

a)

Exact global like count

b)

Partition recovery speed

c)

Feed load time latency

d)

Service uptime percentage

8.

A system needs to query millions of sensor readings by time windows with fast writes. Which model is the most suitable?

a)

Graph model with relationship traversals

b)

Document model favoring flexible fields

c)

Column-family model optimized for wide writes

d)

Relational model enforcing normalization

9.

Which operation is most efficient on column-family stores compared to graph databases?

a)

Parsing nested JSON within documents

b)

Joining tables via foreign keys and constraints

c)

Range scans across time-series column slices

d)

Depth-first traversal through friend networks

10.

When a replica node fails, what is the expected system behavior in a well-replicated setup?

a)

Other nodes continue serving data

b)

All nodes stop serving immediately

c)

Clients lose access until manual reset

d)

Data becomes permanently unrecoverable

11.

What is the primary benefit of implementing data sharding?

a)

Horizontal scalability for larger workloads

b)

Enhanced vertical CPU performance

c)

Guaranteed zero latency for queries

d)

Perfect data consistency across shards

12.

What is the primary purpose of sharding as illustrated?

a)

Ensuring zero-latency reads for all queries

b)

Providing strong consistency with single-writes

c)

Handling massive traffic one server cannot handle

d)

Reducing storage usage through data compression

13.

In the diagram, how are users divided between servers?

a)

Time-based buckets of login events

b)

Alphabetical ranges A–M and N–Z

c)

Random hashing of user session IDs

d)

Geographic regions of user locations

14.

A web application scales horizontally. What does this typically involve?

a)

Upgrading CPU and memory of one server

b)

Reducing network bandwidth allocation

c)

Adding more servers with load distribution

d)

Migrating to a monolithic codebase

15.

In the context of distributed systems, what does the term 'eventual consistency' imply?

a)

All nodes will eventually converge to the same state

b)

Data can be inconsistent indefinitely

c)

Data is always consistent across all nodes

d)

Immediate consistency is guaranteed after every write

16.

Which database model is best suited for handling complex relationships between entities?

a)

Graph model with nodes and edges

b)

Column-family model with wide rows

c)

Document model with embedded documents

d)

Relational model with foreign keys

17.

What is a common challenge when implementing sharding in a distributed database?

a)

Reducing the number of servers required

b)

Ensuring data consistency across shards

c)

Improving single-node performance

d)

Eliminating the need for backups

18.

In a distributed system, what does the term 'strong consistency' imply?

a)

Data is consistent only after a write operation

b)

Data may be temporarily inconsistent

c)

All nodes reflect the same data at all times

d)

Nodes can operate independently without synchronization