Eladio Rocha
Quiz von , erstellt am vor 18 Tage

Learn the fundamental concepts of ACID compliance and the CAP Theorem in database systems. Explore how Atomicity, Consistency, Isolation, and Durability ensure reliable transactions, and understand the trade-offs between Consistency, Availability, and Partition Tolerance in distributed databases. This guide covers real-world examples, database system behaviors, and modern approaches to scalability and fault tolerance.

3
0
0
Eladio Rocha
Erstellt von Eladio Rocha vor 18 Tage
Schließen

ACID Compliance and CAP Theorem

Frage 1 von 10

1

What does Atomicity in ACID compliance ensure?

Wähle eine der folgenden:

  • Transactions are immediately readable by all users.

  • Each transaction either fully succeeds or fully fails.

  • Rules within the database are always consistently applied.

  • Data is distributed across multiple partitions.

Erklärung

Frage 2 von 10

1

In ACID, how is Consistency defined?

Wähle eine der folgenden:

  • Data changes are immediately visible across all nodes.

  • Database rules are consistently enforced during transactions.

  • Data retrieval is consistent across replicas.

  • Transactions never conflict with each other.

Erklärung

Frage 3 von 10

1

What is the main goal of Isolation in ACID?

Wähle eine der folgenden:

  • To allow multiple transactions to modify the same data simultaneously.

  • To prevent transactions from interfering with each other.

  • To propagate data quickly across distributed systems.

  • To write data to durable storage.

Erklärung

Frage 4 von 10

1

What does Durability in ACID compliance guarantee?

Wähle eine der folgenden:

  • Data is stored in memory for faster access.

  • Committed data will persist even after a crash.

  • Transactions are visible across distributed systems.

  • Data propagation is eventually consistent.

Erklärung

Frage 5 von 10

1

Which of the following is a core concept of the CAP Theorem?

Wähle eine der folgenden:

  • Scalability, Reliability, Durability

  • Availability, Partition Tolerance, Consistency

  • Atomicity, Durability, Replication

  • Redundancy, Speed, Isolation

Erklärung

Frage 6 von 10

1

What is the trade-off when using a database like Cassandra in terms of the CAP Theorem?

Wähle eine der folgenden:

  • Sacrifices partition tolerance for strong consistency.

  • Sacrifices consistency for availability and partition tolerance.

  • Sacrifices availability for consistency and partition tolerance.

  • Provides all three: consistency, availability, and partition tolerance.

Erklärung

Frage 7 von 10

1

What does Availability mean in the CAP Theorem?

Wähle eine der folgenden:

  • Data changes are consistently propagated immediately.

  • The system avoids single points of failure.

  • Transactions remain durable during failures.

  • Data retrieval always reflects the most recent write.

Erklärung

Frage 8 von 10

1

What is an example of a system that sacrifices availability in favor of consistency and partition tolerance?

Wähle eine der folgenden:

  • MySQL

  • Cassandra

  • DynamoDB in eventual consistency mode

  • MongoDB

Erklärung

Frage 9 von 10

1

How does Partition Tolerance benefit distributed databases?

Wähle eine der folgenden:

  • Ensures that no data is lost in case of system crashes.

  • Allows the system to scale horizontally across multiple servers.

  • Guarantees real-time consistency for all reads and writes.

  • Eliminates the need for replication across nodes.

Erklärung

Frage 10 von 10

1

What is a common characteristic of modern database systems regarding CAP trade-offs?

Wähle eine der folgenden:

  • They strictly enforce the CAP Theorem limitations.

  • They provide flexibility to optimize different properties based on use cases.

  • They always prioritize availability over consistency.

  • They eliminate the need for partition tolerance entirely.

Erklärung