Back to Topic 3.3 — Database programming
3.3.6Computer Science5 flashcards

Transactions and integrity

Practice Flashcards

Flip to reveal answers
Card 1 of 53.3.6
3.3.6
Question

What is a transaction?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Transactions and integrity

Sign up free to track progress and get spaced-repetition review schedules.

Card 1definition

Question

What is a transaction?

Answer

A group of statements treated as **one indivisible unit** — COMMIT makes them permanent, ROLLBACK undoes them all.

Card 2definition

Question

What does ACID stand for?

Answer

**Atomicity** (all or none), **Consistency** (rules still hold), **Isolation** (no interference), **Durability** (survives a crash).

Card 3concept

Question

Which property stops two withdrawals from the same balance?

Answer

**Isolation** — achieved by locking the row, so the second transaction waits and then reads the updated balance.

Card 4concept

Question

What does durability actually require?

Answer

That the change has reached **non-volatile storage** before COMMIT returns — which is why a commit waits for the disc.

Card 5definition

Question

What is a deadlock, and what happens?

Answer

Each transaction holds what the other wants, so neither can proceed. The database **aborts one**, which then retries.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free