0
0
DBMS Theoryknowledge~20 mins

ACID properties in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
ACID Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Atomicity in Transactions

Which statement best describes the Atomicity property in database transactions?

ATransactions are isolated from each other to prevent interference.
BData remains consistent before and after a transaction.
CAll parts of a transaction must complete successfully or none at all.
DOnce a transaction is committed, changes are permanent even after a crash.
Attempts:
2 left
πŸ’‘ Hint

Think about whether a transaction can be partially done or not.

πŸ“‹ Factual
intermediate
2:00remaining
Identifying Durability in ACID

What does the Durability property guarantee in a database system?

ATransactions do not affect each other’s data during execution.
BChanges made by a committed transaction are saved permanently, even if the system crashes.
CData is always valid before and after a transaction.
DA transaction can be partially completed if needed.
Attempts:
2 left
πŸ’‘ Hint

Consider what happens to data after a power failure.

πŸ” Analysis
advanced
2:00remaining
Analyzing Isolation Levels

Which scenario best illustrates a violation of the Isolation property in transactions?

ATwo transactions read and write the same data simultaneously, causing inconsistent results.
BA transaction fails halfway and rolls back all changes.
CData remains consistent before and after a transaction commits.
DOnce a transaction commits, its changes are permanent.
Attempts:
2 left
πŸ’‘ Hint

Think about what happens when transactions interfere with each other.

❓ Comparison
advanced
2:00remaining
Comparing Consistency and Atomicity

How does the Consistency property differ from Atomicity in ACID?

ABoth mean the same and can be used interchangeably.
BAtomicity guarantees transaction completion; Consistency guarantees data rules.
CConsistency means transactions are isolated; Atomicity means changes are permanent.
DConsistency ensures data rules are followed after a transaction; Atomicity ensures the transaction is all or nothing.
Attempts:
2 left
πŸ’‘ Hint

Think about data correctness versus transaction completeness.

❓ Reasoning
expert
2:00remaining
Determining the Outcome of a Transaction Sequence

Consider two transactions running concurrently on a bank database:

Transaction 1: Withdraw $100 from Account A
Transaction 2: Deposit $100 to Account A

If the system does not enforce Isolation, what problem might occur?

AThe account balance might show an incorrect value due to overlapping operations.
BThe withdrawal will always fail due to locking.
CThe deposit will be lost permanently.
DThe system will automatically rollback both transactions.
Attempts:
2 left
πŸ’‘ Hint

Think about what happens if transactions see each other's partial changes.