76
GB
What is the Durability property and how does Write-Ahead Logging (WAL) implement it?
IN
टिकाऊपन गुण क्या है और राइट-अहेड लॉगिंग (वाल) इसे कैसे कार्यान्वित करता है?
A
Once a transaction is committed its changes persist even through system crashes; WAL implements this by writing log records to disk BEFORE applying changes to the database ensuring that committed changes can be replayed during recovery even if the data pages were not yet flushed
एक बार लेन-देन हो जाने के बाद सिस्टम क्रैश होने पर भी इसमें परिवर्तन जारी रहता है; वाल डेटाबेस में परिवर्तन लागू करने से पहले डिस्क पर लॉग रिकॉर्ड लिखकर इसे लागू करता है, यह सुनिश्चित करता है कि पुनर्प्राप्ति के दौरान किए गए परिवर्तनों को फिर से दोहराया जा सकता है, भले ही डेटा पेज अभी तक फ्लश न किए गए हों।
B
Data is backed up to a remote server
डेटा का बैकअप रिमोट सर्वर पर किया जाता है
C
Durability means data is stored in RAID for redundancy
टिकाऊपन का मतलब है कि डेटा को अतिरेक के लिए RAID में संग्रहीत किया जाता है
D
Durability requires storing data in at least three locations
स्थायित्व के लिए कम से कम तीन स्थानों पर डेटा संग्रहीत करने की आवश्यकता होती है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
WAL/WAL protocol: log record for each change written to stable storage (disk flush) before the corresponding change is applied to the database. On COMMIT: log record is force-written to disk. On crash: log is read forward (redo committed transactions) and backward (undo uncommitted). Guarantees committed data survives crashes.
व्याख्या (हिन्दी)
वाल/वाल प्रोटोकॉल: डेटाबेस पर संबंधित परिवर्तन लागू होने से पहले स्थिर भंडारण (डिस्क फ्लश) में लिखे गए प्रत्येक परिवर्तन के लिए लॉग रिकॉर्ड। COMMIT पर: लॉग रिकॉर्ड डिस्क पर बलपूर्वक लिखा जाता है। क्रैश होने पर: लॉग को आगे पढ़ा जाता है (प्रतिबद्ध लेनदेन को फिर से करें) और पीछे (अप्रतिबद्ध लेनदेन को पूर्ववत करें)। गारंटी देता है कि प्रतिबद्ध डेटा क्रैश होने से बच जाता है।