categories.database Intermediate

What Are ACID Properties? What Does Each Letter Mean?

AI Practice

ACID Properties

A — Atomicity

All operations in a transaction either all succeed or all roll back

  • Example: bank transfer—debit and credit must both succeed or both roll back

C — Consistency

After a transaction, the database must move from one valid state to another

  • All constraints (uniqueness, foreign keys, check constraints) must be satisfied

I — Isolation

Concurrent transactions don't interfere with each other; each runs as if alone

  • Different isolation levels offer different performance vs consistency trade-offs

D — Durability

Once committed, data is permanently saved (even after a crash)

  • Implemented via: WAL (Write-Ahead Logging), periodic checkpoints

ACID vs BASE (NoSQL)

Property ACID (RDBMS) BASE (NoSQL)
Consistency Strong Eventual
Availability May be reduced High
Character Conservative, precise Optimistic, flexible

Interview bonus: Explain why NoSQL chose BASE over ACID—the CAP theorem trade-off (in distributed systems, you can't guarantee both CP and AP simultaneously).

✦ AI Mock Interview

Type your answer and get instant AI feedback

Sign in to use AI scoring

Copyright © 2026 Wood All Rights Reserved · FE Interview Hub