Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Describe features of transactional workloads

A worked example

Match

A bank's OLTP database processes a transfer of $40 from Account A (balance $100) to Account B (balance $50). The transfer debits Account A and credits Account B in one transaction.

Match each requirement for the transfer to the ACID property that provides it.

  • Correct match: Atomicity.

    Atomicity treats the debit and the credit as one unit that succeeds or fails completely, so one action cannot complete without the other. Consistency describes the valid end state, not the all-or-nothing handling of the two actions.

  • Correct match: Consistency.

    Consistency means a transaction can only take the database from one valid state to another, and the completed state must reflect the transfer. Atomicity is about the two actions succeeding or failing together, which this requirement does not describe.

  • Correct match: Isolation.

    Isolation stops concurrent transactions from interfering with each other, so a balance check cannot see one account before the transfer and the other after it. Durability concerns committed data surviving a shutdown, not what concurrent readers see.

  • Correct match: Durability.

    Durability means a committed transaction stays committed and is still reflected after the system is switched off and back on. Consistency covers valid state changes, not the survival of committed data across a restart.

Why

OLTP systems apply ACID semantics to transactions. Atomicity makes the debit and the credit succeed or fail as one unit. Consistency allows only changes from one valid state to another. Isolation stops a concurrent balance check from seeing a mix of before-transfer and after-transfer values. Durability keeps a committed transfer in place even after the database system is switched off and on again. Availability concerns keeping the system running, which none of the four requirements describes; each one is covered by an ACID property.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free