Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 2 : The log record must be forced to stable storage before the data page it describes is written / जिस डेटा पेज का वह वर्णन करता है उसके लिखे जाने से पहले लॉग रिकॉर्ड स्थायी स्टोरेज में फ़ोर्स किया जाना चाहिए

Advertisement

Detailed Solution

सही उत्तर The log record must be forced to stable storage before the data page it describes is written / जिस डेटा पेज का वह वर्णन करता है उसके लिखे जाने से पहले लॉग रिकॉर्ड स्थायी स्टोरेज में फ़ोर्स किया जाना चाहिए है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

The write-ahead logging (WAL) protocol mandates which ordering between a log record and the corresponding data-page write? / राइट-अहेड लॉगिंग (WAL) प्रोटोकॉल लॉग रिकॉर्ड और संगत डेटा-पेज राइट के बीच कौन-सा क्रम अनिवार्य करता है?

1.
The data page must reach stable storage before its log record / डेटा पेज अपने लॉग रिकॉर्ड से पहले स्थायी स्टोरेज में पहुँचना चाहिए
2.
The log record must be forced to stable storage before the data page it describes is written / जिस डेटा पेज का वह वर्णन करता है उसके लिखे जाने से पहले लॉग रिकॉर्ड स्थायी स्टोरेज में फ़ोर्स किया जाना चाहिए
3.
Both must be written simultaneously in one I/O / दोनों एक ही I/O में एक साथ लिखे जाने चाहिए
4.
The order is irrelevant as long as a checkpoint exists / जब तक चेकपॉइंट मौजूद है, क्रम अप्रासंगिक है

Correct Answer: The log record must be forced to stable storage before the data page it describes is written / जिस डेटा पेज का वह वर्णन करता है उसके लिखे जाने से पहले लॉग रिकॉर्ड स्थायी स्टोरेज में फ़ोर्स किया जाना चाहिए

WAL requires the log record describing an update to be on stable storage before the dirty data page is flushed; otherwise a crash could lose the only record of the update and make UNDO/REDO impossible. / WAL अपेक्षा करता है कि अपडेट का वर्णन करने वाला लॉग रिकॉर्ड डर्टी डेटा पेज फ्लश होने से पहले स्थायी स्टोरेज में हो; अन्यथा क्रैश में अपडेट का एकमात्र रिकॉर्ड खो सकता है और UNDO/REDO असंभव हो जाएगा।

Downloaded from PrepSnap (prepsnap.in)