Eladio Rocha
Quiz von , erstellt am vor 19 Tage

Test your knowledge of modern scalable databases, including sharding, NoSQL systems like MongoDB and Cassandra, and the trade-offs between normalized and denormalized data.

1
0
0
Eladio Rocha
Erstellt von Eladio Rocha vor 19 Tage
Schließen

Modern Scalable Databases

Frage 1 von 13

1

What is the primary purpose of a router in a scalable database design?

Wähle eine der folgenden:

  • To perform joins between shards.

  • To route client requests to the appropriate shard.

  • To store backup configurations for shards.

  • To hash keys for partitioning data.

Erklärung

Frage 2 von 13

1

What is a "shard" in the context of databases?

Wähle eine der folgenden:

  • A method of encrypting sensitive data.

  • A backup server in a replica set.

  • A horizontal partition of a database.

  • A tool for monitoring database traffic.

Erklärung

Frage 3 von 13

1

What is a major advantage of sharding in database systems?

Wähle eine der folgenden:

  • It eliminates the need for backups.

  • It increases both scalability and redundancy.

  • It simplifies complex SQL queries.

  • It reduces the need for a router.

Erklärung

Frage 4 von 13

1

What is a replica set in MongoDB?

Wähle eine der folgenden:

  • A set of configuration servers.

  • A collection of shards distributed across regions.

  • A primary server and its associated secondary servers for redundancy.

  • A group of shards that handle write-heavy traffic.

Erklärung

Frage 5 von 13

1

How does MongoDB ensure high availability when a primary server fails?

Wähle eine der folgenden:

  • Traffic is rerouted to the config server.

  • Secondary servers automatically elect a new primary.

  • The router assigns new shards dynamically.

  • The primary server is rebooted automatically.

Erklärung

Frage 6 von 13

1

What does "eventual consistency" mean in the context of Cassandra?

Wähle eine der folgenden:

  • Data is always immediately consistent across all nodes.

  • Data might take time to propagate across nodes, leading to temporary inconsistencies.

  • Data must be manually synchronized across nodes.

  • Consistency is not guaranteed due to system failures.

Erklärung

Frage 7 von 13

1

What is the "celebrity problem" in sharded databases?

Wähle eine der folgenden:

  • High traffic on specific shards causes uneven load distribution.

  • Celebrities’ data is stored differently for security reasons.

  • All shards are overloaded with high read and write requests.

  • Certain shards fail to replicate data efficiently.

Erklärung

Frage 8 von 13

1

What is re-sharding, and why is it challenging?

Wähle eine der folgenden:

  • Redistributing data when adding or removing shards, which requires fault-tolerant methods.

  • Creating backups for new shards added to the system.

  • Replicating data across all shards during traffic spikes.

  • Distributing write-heavy traffic across existing shards.

Erklärung

Frage 9 von 13

1

What is a key advantage of using a normalized database schema?

Wähle eine der folgenden:

  • It minimizes storage space and simplifies updates.

  • It allows faster reads with fewer database hits.

  • It duplicates data for high performance.

  • It eliminates the need for joins between tables.

Erklärung

Frage 10 von 13

1

Why might denormalized data be preferred in a NoSQL database?

Wähle eine der folgenden:

  • It reduces redundancy and improves update efficiency..

  • It allows for single-query retrieval of all necessary data.

  • It enforces strict schema rules.

  • It is easier to scale horizontally.

Erklärung

Frage 11 von 13

1

What should you prioritize when designing a horizontally scalable database?

Wähle eine der folgenden:

  • Using as many joins as possible for efficiency.

  • Designing around simple key-value lookups to avoid joins.

  • Avoiding hash functions for data distribution.

  • Relying heavily on a single primary server for consistency.

Erklärung

Frage 12 von 13

1

Which database systems are examples of NoSQL?

Wähle eine der folgenden:

  • PostgreSQL and MySQL.

  • MongoDB, Cassandra, and DynamoDB.

  • Oracle and SQLite.

  • Redis and HBase and SQLite

Erklärung

Frage 13 von 13

1

In what scenarios might you choose to use normalized data over denormalized data in a NoSQL database?

Wähle eine der folgenden:

  • When updates are frequent and space efficiency is important.

  • When scaling horizontally is a top priority.

  • When high traffic requires fewer database hits.

  • When you need to perform complex joins efficiently.

Erklärung