📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A hospital system updates a patient record and a billing record in one transaction. If billing fails, what does ACID require?

A. Only the patient update is kept
B. The billing update is kept alone
C. The database is deleted
D. Both updates are rolled back to keep records consistent ✅

Correct Answer: D. Both updates are rolled back to keep records consistent

Explanation

Atomicity and consistency require related updates to succeed together or not at all.