PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम File System vs DBMS: Redundancy, Inconsistency, Data Isolation (फाइल सिस्टम बनाम DBMS: डेटा दोहराव, असंगतता और सुरक्षा में अंतर) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Traditional OS file-processing systems suffer from uncontrolled data redundancy, update inconsistency, data isolation across incompatible formats, missing atomicity, and coarse security—all systematically resolved by a centralized DBMS.
अध्याय सार: पारंपरिक फाइल प्रोसेसिंग सिस्टम में अनियंत्रित डेटा दोहराव (Redundancy), असंगतता (Inconsistency), डेटा आइसोलेशन, एटॉमिकिटी की कमी और कमजोर सुरक्षा जैसी गंभीर समस्याएं होती हैं, जिन्हें एक केंद्रीकृत DBMS हल करता है।
File System vs DBMS: Redundancy, Inconsistency, Data Isolation: Detailed Notes & Architecture (फाइल सिस्टम बनाम DBMS: डेटा दोहराव, असंगतता और सुरक्षा में अंतर)
1. Data Redundancy & Data Inconsistency (डेटा दोहराव (Redundancy) और असंगतता (Inconsistency))
[EN] In a traditional File Processing System, separate departments (Admissions, Hostel, Accounts) maintain independent flat files duplicating identical student records—wasting storage and creating Data Redundancy. When a student updates their phone number in the Admissions file but the Accounts file retains the old number, conflicting truths exist simultaneously, causing Data Inconsistency. A DBMS stores shared master entities once and normalizes tables, enforcing a single source of truth.
[HI] फाइल सिस्टम में अलग-अलग विभाग (प्रवेश, छात्रावास, लेखा) एक ही छात्र का पूरा डेटा अपनी-अपनी फाइलों में अलग से रखते हैं, जिससे भंडारण बर्बाद होता है (Data Redundancy)। यदि एक फाइल में मोबाइल नंबर बदल दिया जाए और दूसरी में पुराना रहे, तो विरोधाभासी जानकारी उत्पन्न होती है जिसे Data Inconsistency कहते हैं। DBMS नॉर्मलाइज़ेशन व एकीकृत स्कीमा द्वारा इसे रोकता है।
2. Data Isolation & Program-Data Dependence (डेटा आइसोलेशन और प्रोग्राम-डेटा निर्भरता)
[EN] Because department files are scattered across fixed-width text, CSV, or proprietary binary formats, extracting combined reports requires writing complex custom parsing scripts—a hurdle termed Data Isolation. Furthermore, traditional file programs hardcode exact byte offsets and field lengths (Program-Data Dependence): adding a single column breaks every compiled application reading that file. DBMS exposes standardized declarative SQL and shields programs via Data Independence.
[HI] विभिन्न फाइलें अलग-अलग फॉर्मेट (CSV, बाइनरी, टेक्स्ट) में बिखरी होने के कारण उनके बीच संयुक्त डेटा निकालना बहुत कठिन होता है, जिसे डेटा आइसोलेशन (Data Isolation) कहते हैं। साथ ही पारंपरिक प्रोग्रामों में फाइल का रिकॉर्ड फॉर्मेट हार्डकोड होता है (Program-Data Dependence), जिससे फाइल संरचना बदलने पर प्रोग्राम क्रैश हो जाते हैं। DBMS मानक SQL व डेटा इंडिपेंडेंस से यह समस्या समाप्त करता है।
3. Integrity Constraints, Atomicity & Concurrency Anomalies (इंटेग्रिटी नियम, एटॉमिकिटी और समवर्ती विसंगतियाँ)
[EN] Operating system files cannot natively enforce semantic Integrity Constraints (such as 'Age >= 18' or 'Dept_ID must exist in Departments'); validation must be duplicated in every application script. Flat files also lack Atomicity: if power fails after debiting Account A but before crediting Account B, money vanishes permanently. Moreover, simultaneous multi-user edits on OS files trigger Lost Update race conditions, whereas a DBMS uses ACID transactions and row/table locks.
[HI] सामान्य फाइल सिस्टम 'Age >= 18' या फॉरेन-की जैसे इंटेग्रिटी नियम लागू नहीं कर सकते। इनमें Atomicity भी नहीं होती—यदि बैंक ट्रांसफर के दौरान एक खाते से पैसे कटने के बाद बिजली चली जाए, तो डेटा अधूरी भ्रष्ट स्थिति में रह जाता है। इसके अलावा एक साथ दो उपयोगकर्ताओं के लिखने पर 'लॉस्ट अपडेट' त्रुटि होती है, जिसे DBMS ट्रांजैक्शन व लॉकिंग से हल करता है।
4. Security Granularity & Controlled Redundancy in DBMS (सुरक्षा सूक्ष्मता और DBMS में नियंत्रित दोहराव)
[EN] File systems rely on coarse OS permissions (file-level read/write/execute via `chmod` or ACLs), meaning a clerk needing only student names gains access to confidential salary columns in the same file. A DBMS provides fine-grained security via Views and `GRANT`/`REVOKE` permissions down to table or column granularity. Note that a DBMS minimizes—rather than always 100% eliminates—redundancy, retaining controlled redundancy for foreign-key links and strategic denormalized performance.
[HI] फाइल सिस्टम केवल पूरी फाइल पर Read/Write अनुमति देता है, जिससे एक ही फाइल के संवेदनशील कॉलम छिपाना असंभव होता है। DBMS में Views और `GRANT`/`REVOKE` से कॉलम व पंक्ति स्तर की सुरक्षा मिलती है। ध्यान रहे कि DBMS दोहराव को पूरी तरह शून्य करने के बजाय नियंत्रित (Controlled Redundancy—जैसे फॉरेन-की) रखता है ताकि संबंध जुड़े रहें।
Syntax, Formula & Technical Example (File System vs DBMS: Redundancy, Inconsistency, Data Isolation)
-- File System Risk vs DBMS Transactional Integrity & Granular Security
-- In flat files: crash between debit & credit loses Rs 5000 permanently!
-- In DBMS (Atomic Transaction + Constraint + View Security):
BEGIN TRANSACTION;
UPDATE Accounts SET Balance = Balance - 5000 WHERE AccNo = 101 AND Balance >= 5000;
UPDATE Accounts SET Balance = Balance + 5000 WHERE AccNo = 202;
COMMIT; -- Either BOTH succeed or BOTH roll back safely
CREATE VIEW PublicStudentDir AS SELECT RollNo, Name, Dept FROM Students; -- Hides Phone/Fees
File System vs DBMS: Redundancy, Inconsistency, Data Isolation Quick Reference & Comparison Table
| File System Limitation | Failure Mechanism in Flat Files | How a DBMS Resolves It |
|---|---|---|
| Data Redundancy | Multiple departments duplicate identical master records independently | Centralized schema & normalization store entities once |
| Data Inconsistency | Updating one file copy leaves stale conflicting values in other copies | Single authoritative copy + cascading foreign-key updates |
| Data Isolation | Records scattered across incompatible binary/CSV formats block easy joins | Unified relational tables queried via standard SQL JOINs |
| Atomicity & Concurrency Failure | System crash leaves partial writes; parallel edits overwrite updates | ACID transactions, WAL rollback, and multi-granularity locks |
File System vs DBMS: Redundancy, Inconsistency, Data Isolation Top 20 Bilingual MCQs with Answers
Q1. What is 'Data Inconsistency' in a traditional File Processing System?
(पारंपरिक फाइल प्रोसेसिंग सिस्टम में 'डेटा असंगतता' (Data Inconsistency) का क्या अर्थ है?)
(A) Users cannot connect without an internet connection
(B) All files are encrypted with SHA-256
(C) Different copies of the same duplicated data hold conflicting, out-of-sync values
(D) Data is indexed using B+ trees automatically
Correct Answer: (C)
[EN] Inconsistency is the direct consequence of unmanaged redundancy: updating a customer's address in one file without updating copies elsewhere.
[HI] जब एक ही डेटा की विभिन्न प्रतियों में अलग-अलग व विरोधाभासी मान मौजूद हों (एक जगह अपडेट और दूसरी जगह पुराना), तो उसे डेटा असंगतता कहते हैं।
Q2. Which limitation describes the difficulty of writing new application programs to retrieve data scattered across multiple files of different formats?
(विभिन्न फॉर्मेट की कई अलग-अलग फाइलों में बिखरे डेटा को एक साथ निकालने में होने वाली कठिनाई को क्या कहा जाता है?)
(A) Physical Independence
(B) Data Isolation
(C) Referential Transparency
(D) Data Normalization
Correct Answer: (B)
[EN] Data Isolation occurs because flat files lack a unified schema or common declarative query language like SQL.
[HI] डेटा आइसोलेशन का अर्थ है अलग-अलग फाइलों और असंगत फॉर्मेट में डेटा बिखरा होने के कारण संयुक्त रिपोर्ट या क्वेरी बना पाने की कठिनाई।
Q3. Why can't traditional OS file systems guarantee Atomicity during a bank funds transfer?
(बैंक फंड ट्रांसफर के दौरान पारंपरिक OS फाइल सिस्टम एटॉमिकिटी (Atomicity) की गारंटी क्यों नहीं दे सकते?)
(A) A mid-transfer crash leaves the debit written without the corresponding credit, with no automatic rollback log
(B) Operating systems delete files after every reboot
(C) Text files run at faster CPU speeds than RAM
(D) Files do not support numeric characters
Correct Answer: (A)
[EN] Without a Transaction Manager and Write-Ahead Log, partial file writes persist permanently if power fails between two updates.
[HI] यदि पैसे कटने के बाद और जमा होने से पहले सिस्टम क्रैश हो जाए, तो फाइल सिस्टम में अधूरे बदलावों को स्वचालित रोलबैक करने का तंत्र नहीं होता।
Q4. If a department clerk only needs to view student names and roll numbers, why does a flat-file system create a security flaw?
(यदि किसी क्लर्क को केवल छात्रों के नाम और रोल नंबर देखने हैं, तो फ्लैट-फाइल सिस्टम सुरक्षा दोष कैसे पैदा करता है?)
(A) Flat files cannot store alphabetical characters
(B) OS file permissions grant access to the entire file, exposing restricted columns like fees or grades stored in the same record
(C) OS permissions automatically publish files to public web servers
(D) Flat files require biometric authentication per byte
Correct Answer: (B)
[EN] Unlike a DBMS View that exposes only specific columns/rows, OS permissions work at the coarse whole-file level.
[HI] OS अनुमतियाँ पूरी फाइल पर लागू होती हैं, इसलिए क्लर्क को केवल दो कॉलम दिखाने के बजाय पूरी फाइल (गोपनीय कॉलम सहित) का एक्सेस देना पड़ता है।
Q5. What is meant by 'Program-Data Dependence' in file systems?
(फाइल सिस्टम में 'प्रोग्राम-डेटा निर्भरता' (Program-Data Dependence) से क्या तात्पर्य है?)
(A) Every database needs an active Python interpreter
(B) Application code embeds exact file record structures, so changing field order or length breaks every program
(C) Programs automatically reorganize disk sectors
(D) Data automatically switches to XML when compiled
Correct Answer: (B)
[EN] In COBOL/C flat-file systems, modifying a field from 20 to 30 bytes forces recompilation and rewriting of every program accessing that file.
[HI] प्रोग्राम-डेटा निर्भरता में फाइल के रिकॉर्ड का लेआउट प्रोग्राम कोड में हार्डकोड होता है, जिससे फाइल संरचना बदलते ही सभी प्रोग्राम खराब हो जाते हैं।
Q6. What concurrency anomaly occurs when two clerks read a flat-file ticket count of 10 simultaneously and both write back 9?
(जब दो क्लर्क एक साथ फ्लैट फाइल से टिकट संख्या 10 पढ़ते हैं और दोनों उसे घटाकर 9 लिख देते हैं, तो कौन सी समस्या होती है?)
(A) Referential Integrity Cascade
(B) Deadlock Prevention
(C) View Materialization
(D) Lost Update anomaly due to lack of DBMS locking/isolation
Correct Answer: (D)
[EN] Because OS files lack transactional row locks or MVCC, the second write silently overwrites the first clerk's update.
[HI] लॉकिंग व ट्रांजैक्शन आइसोलेशन न होने के कारण दूसरे उपयोगकर्ता का अपडेट पहले वाले के अपडेट को मिटा देता है, जिसे Lost Update कहते हैं।
Q7. Does a Relational DBMS eliminate 100% of all data redundancy?
(क्या एक रिलेशनल DBMS डेटा के दोहराव (Redundancy) को 100% पूरी तरह समाप्त कर देता है?)
(A) No — it maintains controlled redundancy (such as repeating Primary Keys as Foreign Keys) to link related tables
(B) Yes — foreign keys are strictly forbidden in SQL
(C) No — DBMS deliberately duplicates every file across 10 folders
(D) Yes — every table can have only one column globally
Correct Answer: (A)
[EN] DBMS eliminates uncontrolled harmful redundancy while preserving controlled redundancy (foreign keys) required for relational joins.
[HI] नहीं, DBMS अनियंत्रित दोहराव हटाता है लेकिन तालिकाओं को आपस में जोड़ने के लिए फॉरेन-की के रूप में नियंत्रित दोहराव (Controlled Redundancy) रखता है।
Q8. How does a DBMS enforce Integrity Constraints more reliably than a File System?
(फाइल सिस्टम की तुलना में DBMS इंटेग्रिटी नियमों (Integrity Constraints) को अधिक विश्वसनीयता से कैसे लागू करता है?)
(A) Constraints like CHECK, NOT NULL, and FOREIGN KEY are defined centrally in the schema and enforced for all clients
(B) The OS hard drive automatically rejects invalid spellings
(C) Integrity depends entirely on client-side HTML color tags
(D) Constraints are emailed daily as PDF reminders to programmers
Correct Answer: (A)
[EN] Centralized schema constraints cannot be bypassed by rogue application scripts, unlike ad-hoc validation buried inside file-processing apps.
[HI] DBMS में नियम केंद्रित स्कीमा स्तर पर (`CHECK`, `FOREIGN KEY`) परिभाषित होते हैं, जिससे कोई भी एप्लिकेशन अवैध डेटा नहीं डाल सकता।
Q9. In which situation might a simple OS File System still be preferred over a full enterprise DBMS?
(किस परिस्थिति में एक पूर्ण एंटरप्राइज DBMS के बजाय सरल OS फाइल सिस्टम को प्राथमिकता दी जा सकती है?)
(A) Multi-branch global banking transactions
(B) Single-user, static, small-scale applications with minimal concurrency and strict overhead constraints
(C) Hospital electronic health records requiring HIPAA audit trails
(D) Airline seat reservation systems with thousands of concurrent agents
Correct Answer: (B)
[EN] Full DBMS engines add RAM, licensing, and setup overhead unnecessary for tiny embedded configs or single-user logs.
[HI] जहाँ बहुत कम डेटा हो, एक ही उपयोगकर्ता हो, समवर्ती अपडेट न हों और कम हार्डवेयर संसाधन हों, वहाँ सरल फाइल सिस्टम बेहतर हो सकता है।
Q10. Which SQL feature specifically resolves the File System's lack of column-level and row-level security?
(SQL की कौन सी सुविधा विशेष रूप से फाइल सिस्टम की कॉलम-स्तरीय और पंक्ति-स्तरीय सुरक्षा की कमी को दूर करती है?)
(A) AUTO_INCREMENT
(B) TRUNCATE TABLE
(C) ORDER BY DESC
(D) Views combined with DCL GRANT/REVOKE privileges
Correct Answer: (D)
[EN] Creating a restricted View and granting `SELECT` only on that View prevents unauthorized users from seeing sensitive base columns.
[HI] Views के साथ `GRANT`/`REVOKE` का उपयोग करके उपयोगकर्ता को केवल आवश्यक कॉलम व पंक्तियों तक सीमित किया जा सकता है।
Q11. How are 'Data Redundancy' and 'Data Inconsistency' causally linked?
('डेटा दोहराव' (Redundancy) और 'डेटा असंगतता' (Inconsistency) आपस में किस प्रकार संबंधित हैं?)
(A) Uncontrolled redundancy across duplicate files is the root cause that leads to data inconsistency during partial updates
(B) Data inconsistency eliminates storage redundancy completely
(C) Inconsistency happens only when zero redundancy exists
(D) Both terms mean encryption of deleted records
Correct Answer: (A)
[EN] If a fact is stored in exactly one place (zero duplication), it can never contradict itself.
[HI] यदि कोई तथ्य केवल एक स्थान पर संग्रहीत हो तो उसमें विरोधाभास नहीं हो सकता; अनियंत्रित दोहराव ही डेटा असंगतता का मुख्य कारण है।
Q12. Which DBMS capability fixes 'Difficulty in Accessing Data' (having to write a new C/Python program for every ad-hoc query)?
(हर नई क्वेरी के लिए अलग C/Python प्रोग्राम लिखने की मजबूरी (Difficulty in Accessing Data) को DBMS की कौन सी क्षमता दूर करती है?)
(A) File Fragmentation utilities
(B) BIOS Boot Order configuration
(C) High-level declarative Query Languages such as SQL
(D) Hardware Interrupt Controllers
Correct Answer: (C)
[EN] In a file system, answering 'list students with >85% in Jaipur' requires writing a custom parser; in DBMS, a one-line SQL `SELECT` answers immediately.
[HI] फाइल सिस्टम में हर नई रिपोर्ट के लिए प्रोग्राम लिखना पड़ता था, जबकि DBMS में SQL जैसी डिक्लेरेटिव क्वेरी भाषा तुरंत परिणाम देती है।
Q13. In a university using flat files, Student RollNo 42 is deleted from the Student file, yet marks for RollNo 42 stay in the Exam file. Which anomaly is this?
(फ्लैट फाइल वाले विश्वविद्यालय में छात्र रोल नंबर 42 को छात्र फाइल से हटाने के बाद भी परीक्षा फाइल में उसके अंक रह जाते हैं; यह कौन सी त्रुटि है?)
(A) Referential Integrity failure (orphaned records)
(B) Buffer Pool Hit
(C) Physical Data Independence
(D) Two-Phase Commit
Correct Answer: (A)
[EN] Flat files have no `FOREIGN KEY ... ON DELETE CASCADE/RESTRICT`, leaving orphaned dangling records across files.
[HI] फाइल सिस्टम में फॉरेन-की व रेफरेंशियल इंटेग्रिटी नियम न होने के कारण अनाथ रिकॉर्ड (Orphaned Records) बच जाते हैं।
Q14. Why does adding an index or migrating a database to SSDs require zero code changes in DBMS applications, unlike flat-file offset lookups?
(फ्लैट-फाइल के विपरीत, DBMS में इंडेक्स जोड़ने या SSD पर माइग्रेट करने पर एप्लिकेशन कोड में कोई बदलाव क्यों नहीं करना पड़ता?)
(A) Because SQL ignores all indexes during execution
(B) Because OS files always run faster than B+ trees
(C) DBMS converts all applications into JavaScript automatically
(D) DBMS achieves Physical Data Independence by separating logical SQL queries from physical file layouts
Correct Answer: (D)
[EN] Physical Data Independence hides storage format, block offsets, and index paths behind the DBMS Storage Manager.
[HI] DBMS भौतिक डेटा इंडिपेंडेंस प्रदान करता है, जिससे एप्लिकेशन को भौतिक फाइल पतों की जानकारी रखने की आवश्यकता नहीं रहती।
Q15. What happens to storage efficiency and backup costs when uncontrolled redundancy grows across 12 departmental flat files?
(जब 12 विभागीय फ्लैट फाइलों में अनियंत्रित डेटा दोहराव बढ़ता है, तो स्टोरेज और बैकअप लागत पर क्या प्रभाव पड़ता है?)
(A) Network bandwidth drops to zero
(B) Backup recovery speed becomes instantaneous
(C) Storage consumption and backup windows multiply unnecessarily for the exact same underlying information
(D) Compression ratio automatically reaches 100%
Correct Answer: (C)
[EN] Duplicating identical records across 12 files multiplies disk usage, RAM buffering, and backup maintenance effort.
[HI] एक ही डेटा की 12 प्रतियां रखने से डिस्क स्पेस, रखरखाव और बैकअप का समय व लागत कई गुना बढ़ जाती है।
Q16. Which of the following statements comparing File Systems and DBMS is FALSE?
(फाइल सिस्टम और DBMS की तुलना के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) File processing systems natively enforce ACID transactions and multi-user row-level locking without custom code
(B) DBMS provides centralized backup, crash recovery, and concurrency control
(C) Uncontrolled redundancy in flat files wastes disk space and breeds inconsistency
(D) DBMS enforces schema-level integrity constraints centrally
Correct Answer: (A)
[EN] OS file systems provide neither ACID atomicity nor fine-grained row locking out of the box—those are hallmark capabilities of a DBMS.
[HI] सामान्य OS फाइल सिस्टम में अंतर्निहित ACID ट्रांजैक्शन और पंक्ति-स्तरीय लॉकिंग की सुविधा नहीं होती; यह DBMS की विशेषता है।
Q17. Within File System vs DBMS: Redundancy, Inconsistency, Data Isolation, which file system limitation directly maps to: "Multiple departments duplicate identical master records independently"?
(File System vs DBMS: Redundancy, Inconsistency, Data Isolation में कौन सा File System Limitation सीधे "Multiple departments duplicate identical master records independently" से संबंधित है?)
(A) Data Inconsistency
(B) Atomicity & Concurrency Failure
(C) Data Redundancy
(D) Data Isolation
Correct Answer: (C)
[EN] In File System vs DBMS: Redundancy, Inconsistency, Data Isolation, 'Data Redundancy' handles 'Multiple departments duplicate identical master records independently' (Centralized schema & normalization store entities once).
[HI] File System vs DBMS: Redundancy, Inconsistency, Data Isolation में 'Data Redundancy' का कार्य/विवरण 'Multiple departments duplicate identical master records independently' (Centralized schema & normalization store entities once) है।
Q18. Which option accurately describes 'Data Inconsistency' in File System vs DBMS: Redundancy, Inconsistency, Data Isolation?
(File System vs DBMS: Redundancy, Inconsistency, Data Isolation के संदर्भ में 'Data Inconsistency' की सही विशेषता कौन सी है?)
(A) Updating one file copy leaves stale conflicting values in other copies
(B) Records scattered across incompatible binary/CSV formats block easy joins
(C) Multiple departments duplicate identical master records independently
(D) System crash leaves partial writes; parallel edits overwrite updates
Correct Answer: (A)
[EN] 'Data Inconsistency' provides 'Updating one file copy leaves stale conflicting values in other copies' — key point: Single authoritative copy + cascading foreign-key updates.
[HI] 'Data Inconsistency' का मुख्य विवरण 'Updating one file copy leaves stale conflicting values in other copies' है (Single authoritative copy + cascading foreign-key updates)।
Q19. In File System vs DBMS: Redundancy, Inconsistency, Data Isolation, identify the correct parameter for the specification: "Records scattered across incompatible binary/CSV formats block easy joins".
(File System vs DBMS: Redundancy, Inconsistency, Data Isolation में "Records scattered across incompatible binary/CSV formats block easy joins" विवरण किस विकल्प के लिए सही है?)
(A) Data Isolation
(B) Atomicity & Concurrency Failure
(C) Data Inconsistency
(D) Data Redundancy
Correct Answer: (A)
[EN] 'Data Isolation' corresponds to 'Records scattered across incompatible binary/CSV formats block easy joins' (Unified relational tables queried via standard SQL JOINs).
[HI] 'Data Isolation' का संबंध 'Records scattered across incompatible binary/CSV formats block easy joins' (Unified relational tables queried via standard SQL JOINs) से है।
Q20. Considering File System vs DBMS: Redundancy, Inconsistency, Data Isolation, what key behavior defines 'Atomicity & Concurrency Failure'?
(File System vs DBMS: Redundancy, Inconsistency, Data Isolation में 'Atomicity & Concurrency Failure' की मुख्य भूमिका या मान क्या है?)
(A) Updating one file copy leaves stale conflicting values in other copies
(B) Multiple departments duplicate identical master records independently
(C) System crash leaves partial writes; parallel edits overwrite updates
(D) Records scattered across incompatible binary/CSV formats block easy joins
Correct Answer: (C)
[EN] 'Atomicity & Concurrency Failure' represents 'System crash leaves partial writes; parallel edits overwrite updates' (ACID transactions, WAL rollback, and multi-granularity locks).
[HI] 'Atomicity & Concurrency Failure' का अर्थ/मान 'System crash leaves partial writes; parallel edits overwrite updates' है (ACID transactions, WAL rollback, and multi-granularity locks)।
File System vs DBMS: Redundancy, Inconsistency, Data Isolation — Exam FAQs
Q1: Why do we still use flat files (CSV, JSON, log files) if DBMS is superior?
जब DBMS इतना बेहतर है, तो आज भी CSV, JSON या लॉग फाइलों का उपयोग क्यों किया जाता है?
[EN] Flat files are lightweight, human-readable, and ideal for data interchange, streaming event logs, and small configuration files where multi-user ACID transactions and complex joins are unnecessary.
[HI] डेटा के आदान-प्रदान (एक्सपोर्ट/इम्पोर्ट), सरल कॉन्फ़िगरेशन और एकतरफा लॉग फाइलों के लिए हल्के व पढ़ने योग्य होने के कारण CSV/JSON का उपयोग आज भी होता है।
Q2: Can a DBMS completely remove all data redundancy?
क्या DBMS डेटा के दोहराव को शत-प्रतिशत खत्म कर सकता है?
[EN] No. Relational DBMS keeps controlled redundancy—such as storing a `Dept_ID` foreign key in the `Employee` table—and sometimes uses intentional denormalization in data warehouses to speed up reporting queries.
[HI] नहीं, रिलेशनल DBMS तालिकाओं को जोड़ने के लिए फॉरेन-की के रूप में 'नियंत्रित दोहराव' रखता है और कभी-कभी तेज़ रिपोर्टिंग के लिए जानबूझकर डीनॉर्मलाइज़ेशन भी करता है।
Q3: What is the difference between Redundancy and Inconsistency?
डेटा रिडंडेंसी (Redundancy) और इनकंसिस्टेंसी (Inconsistency) में क्या अंतर है?
[EN] Redundancy is the duplication of the same data in multiple places; Inconsistency happens later when one duplicate copy is updated while others remain stale, creating contradictory values.
[HI] रिडंडेंसी का अर्थ एक ही डेटा का कई जगह दोहराया जाना है, जबकि उन प्रतियों में से एक के अपडेट होने और बाकी के पुराने रह जाने पर पैदा हुआ विरोधाभास इनकंसिस्टेंसी कहलाता है।
Post a Comment
Post a Comment