Section outline

    • Exercise 1:

      1. Explain the CAP theorem with an example scenario.

      2. Why can’t a distributed database system achieve all three: Consistency, Availability, and Partition Tolerance at the same time?

      3. Provide a real-world example of a database that prioritizes:

        • (a) CA (Consistency + Availability).

        • (b) CP (Consistency + Partition Tolerance).

        • (c) AP (Availability + Partition Tolerance).

      Exercise 2:

      Complete the sentences by writing the correct ACID property:

      1. ______________ guarantees that the database moves from one valid state to another after a transaction.

      2. ______________ ensures that transactions are executed independently, even when run concurrently.

      3. ______________ ensures that once a transaction is committed, its changes will persist even in the case of a crash.

      4. ensures that either all steps in a transaction are completed or none at all.