SSC-IMD-SA-CS-MOCK-01 – Question 7

Question:

In database systems, what is a ‘Phantom Read’ anomaly? (Variant 34)
डेटाबेस सिस्टम में ‘फैंटम रीड’ (Phantom Read) विसंगति क्या है? (प्रकार 34)

Options:

  • A transaction re-executes a query returning a set of rows satisfying a condition and finds that another committed transaction has inserted or deleted rows in that range
  • A transaction reads uncommitted data that is subsequently rolled back
  • A transaction reads a row twice and finds different column values due to an update
  • A transaction fails to commit due to disk quota
  • एक लेनदेन एक ही रेंज क्वेरी को दोबारा चलाता है और पाता है कि किसी अन्य कमिटेड लेनदेन ने उस रेंज में नई पंक्तियां डाली या हटाई हैं
  • रोलबैक किए गए डेटा को पढ़ना
  • अपडेट के कारण अलग मान पढ़ना
  • डिस्क कोटा विफलता

Correct Answer: a)

Explanation:

Phantom read occurs when transaction \(T1\) reads a range of records matching a WHERE predicate, and \(T2\) inserts new rows matching that predicate and commits, causing \(T1\) to see newly appeared ‘phantom’ rows upon re-querying.
फैंटम रीड तब होता है जब कोई अन्य लेनदेन नई पंक्तियाँ जोड़कर कमिट कर देता है, जिससे दोबारा वही क्वेरी करने पर नई पंक्तियाँ दिखने लगती हैं।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top