FliQi Education App Download
प्रश्न-बैंक · Programmer DBMS

Concurrency Control — प्रश्न और उत्तर

Programmer DBMS · 98 जाँचे हुए (verified) प्रश्न

  • 98 जाँचे हुए प्रश्न
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
किसी CRM प्रणाली में विक्रय प्रतिनिधि ग्राहक प्रोफ़ाइल और विक्रय आँकड़े बदलते रहते हैं, जबकि प्रबंधक उसी समय विक्रय रिपोर्ट और पूर्वानुमान देखते हैं। दोनों को साथ-साथ डेटा पहुँच देने के लिए कौन-सी locking granularity सबसे ठीक रहेगी?
In a customer relationship management (CRM) system, sales representatives update customer profiles and sales data while managers analyze sales reports and forecasts. Which locking granularity strategy would support concurrent data access for both sales representatives and managers?
  1. Aपृष्ठ-स्तरीय (page-level) lockingPage-level locking
  2. Bपंक्ति-स्तरीय (row-level) lockingRow-level locking
  3. Cतालिका-स्तरीय (table-level) lockingTable-level locking
  4. Dपूरे डेटाबेस के स्तर की (database-level) lockingDatabase-level locking

सही उत्तर / Answer: (B)

हल / Solution
locking granularity जितनी बारीक होगी, उतने ही कम डेटा पर ताला लगेगा और उतने ही ज़्यादा काम साथ चल सकेंगे। row-level locking में सिर्फ़ वही पंक्ति रुकती है जिसे प्रतिनिधि बदल रहा है, बाक़ी पंक्तियाँ प्रबंधक पढ़ सकते हैं। page-level में उसी पृष्ठ की और पंक्तियाँ भी फँस जाती हैं। table-level पूरी तालिका रोक देता है और database-level तो पूरा डेटाबेस — दोनों में concurrency सबसे कम रहती है।
The finer the locking granularity, the smaller the piece of data that gets locked, so more work can run side by side. Row-level locking blocks only the row a sales representative is editing, leaving every other row readable for managers. Page-level locking traps unrelated rows on the same page. Table-level locking freezes the whole table and database-level locking the entire database, which gives the least concurrency.
प्रश्न 2उत्तर + हल
डेटाबेस प्रणालियों में बहु-कणिकता लॉकिंग (multiple granularity locking) का क्या अर्थ है?
What does Multiple Granularity Locking refer to in database systems?
  1. Aएक ही lock से कई डेटा मद lock करनाLocking multiple data items with a single lock
  2. Bअलग-अलग स्तरों पर lock लगाना (जैसे पंक्ति, पृष्ठ, तालिका)Locking data at different levels of granularity (e.g., row-level, page-level, table-level)
  3. Cकई तरह के lock काम में लेना (जैसे साझा, अनन्य)Locking data using multiple lock types (e.g., shared locks, exclusive locks)
  4. Dलेन-देन की ज़रूरत के हिसाब से अलग-अलग कड़ाई वाले lock लगानाLocking data with varying degrees of strictness based on transaction requirements

सही उत्तर / Answer: (B)

हल / Solution
बहु-कणिकता लॉकिंग में डेटा को एक वृक्ष की तरह देखा जाता है — डेटाबेस, फ़ाइल, तालिका, पृष्ठ (page), पंक्ति — और लेन-देन उसी स्तर पर lock लेता है जितने की उसे ज़रूरत है। थोड़ी पंक्तियों के लिए पंक्ति-स्तर, पूरी तालिका पढ़नी हो तो तालिका-स्तर। ऊपरी गाँठों पर आशय-lock (intention lock) लगते हैं, ताकि टकराव जल्दी पकड़ा जाए। बाक़ी विकल्प lock के प्रकार या कड़ाई की बात करते हैं, स्तर की नहीं।
Multiple granularity locking treats the data as a tree: database, file, table, page and row. A transaction locks at whatever level suits it, taking row locks for a few rows and a single table lock when it must scan everything. Intention locks on the higher nodes let the system detect conflicts quickly without walking the whole tree. The other options describe lock types or lock strictness rather than levels of granularity.
प्रश्न 3उत्तर + हल
दो-चरणीय लॉकिंग का कौन-सा रूप उस स्थिति के लिए सबसे उपयुक्त है जहाँ डेटा संगति ज़रूरी हो, पर समवर्तिता बनाए रखने के लिए साझा (read) lock जल्दी छोड़ने भी पड़ें?
Which variant of Two-Phase Locking is most suitable where data consistency is critical but shared read locks must still be released early to retain concurrency?
  1. Aमूल दो-चरणीय लॉकिंग (basic)Basic Two-Phase Locking
  2. Bरूढ़िवादी दो-चरणीय लॉकिंग (conservative)Conservative Two-Phase Locking
  3. Cकठोर दो-चरणीय लॉकिंग (strict)Strict Two-Phase Locking
  4. Dकठोरतम दो-चरणीय लॉकिंग (rigorous)Rigorous Two-Phase Locking

सही उत्तर / Answer: (C)

हल / Solution
कठोर दो-चरणीय लॉकिंग (strict) में लिखने वाले अनन्य lock commit तक रुकते हैं, जिससे गंदा पाठ और शृंखलाबद्ध वापसी दोनों रुक जाते हैं; पर साझा (shared) lock पहले छोड़े जा सकते हैं, सो पढ़ने वालों को ज़्यादा जगह मिलती है। कठोरतम (rigorous) रूप साझा lock भी रोके रखता है और समवर्तिता घटा देता है। मूल रूप शृंखलाबद्ध वापसी नहीं रोकता और रूढ़िवादी रूप शुरू में ही सब lock माँगकर इंतज़ार बढ़ाता है।
Strict two phase locking holds exclusive write locks until commit, which stops dirty reads and cascading rollbacks, yet it may release shared read locks earlier, so readers are held back less. The rigorous variant keeps shared locks as well and cuts concurrency further. Basic locking does not prevent cascading rollback at all, and conservative locking makes a transaction wait for every lock before it even starts.
प्रश्न 4उत्तर + हल
कठोरतम दो-चरणीय लॉकिंग (rigorous two-phase locking) का मुख्य लाभ क्या है?
What is the primary advantage of Rigorous Two-Phase Locking?
  1. Aचलते-चलते lock लेने से ज़्यादा समवर्तिताHigher concurrency due to dynamic lock acquisition
  2. Bपहले से lock ले लेने से गतिरोध का कम ख़तराReduced risk of deadlock due to proactive lock acquisition
  3. Cकड़े lock नियमों से डेटा संगति की मज़बूत गारंटीStronger data consistency guarantees due to strict locking rules
  4. Dदूसरे रूपों की तुलना में lock प्रबंधन का कम बोझLower overhead for lock management compared to other variants

सही उत्तर / Answer: (C)

हल / Solution
कठोरतम दो-चरणीय लॉकिंग में साझा और अनन्य, दोनों तरह के lock लेन-देन के अंत तक रुके रहते हैं। इससे कोई दूसरा लेन-देन बीच में न पढ़ सकता है, न बदल सकता है, और लेन-देनों का क्रम उनके commit के क्रम जैसा बन जाता है — यही सबसे मज़बूत संगति की गारंटी है। क़ीमत यह है कि समवर्तिता घटती है और बोझ बढ़ता है; पहले से lock ले लेना रूढ़िवादी (conservative) रूप की बात है।
Rigorous two phase locking keeps both shared and exclusive locks until the transaction ends. No other transaction can read or modify those items meanwhile, and the serialization order of transactions becomes the same as their commit order, which is the strongest consistency guarantee among the variants. The price is lower concurrency and heavier lock management, while the proactive pre claiming named in option 2 belongs to conservative locking.
प्रश्न 5उत्तर + हल
रूढ़िवादी दो-चरणीय लॉकिंग में lock किस तरह लिए जाते हैं?
In Conservative Two-Phase Locking, how are locks acquired?
  1. Aपहले से, किसी भी डेटा मद को छूने से पूर्वProactively, before accessing any data items
  2. Bचलते-चलते, पहुँच के ढर्रे के अनुसारDynamically, based on the data access pattern
  3. Cलेन-देन के आधे रास्ते पहुँचने के बादAfter the transaction reaches its halfway point
  4. Dसिर्फ़ तब, जब दूसरे लेन-देनों से टकराव पकड़ा जाएOnly when conflicts with other transactions are detected

सही उत्तर / Answer: (A)

हल / Solution
रूढ़िवादी रूप में लेन-देन चलने से पहले ही बता देता है कि उसे कौन-कौन से डेटा मद चाहिए और सारे lock एक साथ ले लेता है। सब मिल जाएँ तभी वह आगे बढ़ता है, वरना बिना कुछ पकड़े प्रतीक्षा करता है। इसी पूर्व-दावे की वजह से गतिरोध बन ही नहीं पाता। चलते-चलते lock लेना मूल रूप का ढंग है, और आधे रास्ते या टकराव दिखने पर lock लेना किसी मानक प्रोटोकॉल में होता ही नहीं।
In the conservative variant a transaction states in advance which data items it will touch and acquires every lock before execution begins. Only when all of them are granted does it proceed; otherwise it waits while holding nothing. This pre claiming is precisely why deadlock cannot occur. Taking locks dynamically is basic two phase locking, and acquiring them halfway through or only on conflict is not a standard protocol at all.
प्रश्न 6उत्तर + हल
मूल दो-चरणीय लॉकिंग (basic two-phase locking) की कमी इनमें से कौन-सी है?
Which of the following is a drawback of Basic Two-Phase Locking?
  1. Aगतिरोध (deadlock) का ख़तरा बढ़ जानाIncreased risk of deadlock
  2. Bक्रमबद्धता (serializability) की गारंटी न दे पानाInability to guarantee serializability
  3. Cप्रोटोकॉल को लागू करना और सँभालना कठिन होनाDifficulty in implementing and maintaining the protocol
  4. Dसमवर्ती लेन-देनों के लिए बहुत कम सहाराLimited support for concurrent transactions

सही उत्तर / Answer: (A)

हल / Solution
मूल दो-चरणीय लॉकिंग में lock ज़रूरत पड़ने पर माँगे जाते हैं, इसलिए दो लेन-देन आसानी से एक-दूसरे के lock का इंतज़ार करते हुए फँस सकते हैं — यही गतिरोध (deadlock) है, और इससे निपटने के लिए पहचान या रोकथाम अलग से लगानी पड़ती है। क्रमबद्धता की गारंटी यह प्रोटोकॉल देता ही है, इसे लागू करना सीधा है, और यह समवर्ती लेन-देन चलने भी देता है, सो बाक़ी तीनों कथन ग़लत हैं।
Basic two phase locking asks for each lock only when it is needed, so two transactions can easily end up waiting for locks that the other already holds. That is deadlock, and a separate detection or prevention scheme has to be added to deal with it. The protocol does guarantee conflict serializability, it is simple to implement, and it certainly allows concurrent transactions, so the other three statements are false.
प्रश्न 7उत्तर + हल
कठोरतम दो-चरणीय लॉकिंग (rigorous two-phase locking) को 2PL के दूसरे रूपों से क्या अलग करता है?
What distinguishes Rigorous Two-Phase Locking (2PL) from other variants of 2PL?
  1. Aयह lock को साझा से अनन्य (shared से exclusive) में बदलने देता हैIt allows transactions to upgrade locks from shared to exclusive
  2. Bयह लेन-देन के गतिरोध-मुक्त होने की गारंटी देता हैIt guarantees that transactions are deadlock-free
  3. Cयह पक्का करता है कि सारे lock लेन-देन के अंत में ही छूटेंIt ensures that all locks are released at the end of a transaction
  4. Dयह कड़े lock नियमों से खोए हुए update रोकता हैIt prevents lost updates by enforcing strict locking rules

सही उत्तर / Answer: (C)

हल / Solution
कठोर (strict) रूप सिर्फ़ लिखने वाले अनन्य lock commit तक रोकता है, जबकि कठोरतम (rigorous) रूप साझा (shared) lock भी अंत तक रोके रखता है — यानी सारे lock एक साथ, लेन-देन ख़त्म होने पर ही छूटते हैं। इसी से इसका क्रम commit के क्रम जैसा बन जाता है। यह गतिरोध से नहीं बचाता, वह गुण रूढ़िवादी (conservative) रूप का है, और lock का दर्जा बढ़ाना सभी रूपों में हो सकता है।
Strict two phase locking holds only the exclusive write locks until commit, whereas the rigorous variant also keeps the shared read locks to the very end, so every lock is released together when the transaction finishes. That is what makes its serialization order match its commit order. It does not make transactions deadlock free, which is a property of conservative locking, and lock upgrading is possible in all variants.
प्रश्न 8उत्तर + हल
कठोर दो-चरणीय लॉकिंग (strict two-phase locking) में lock कब छोड़े जाते हैं?
In Strict Two-Phase Locking (2PL), when are locks released?
  1. Aलेन-देन के किसी डेटा मद को पढ़ लेने के बादAfter a transaction reads a data item
  2. Bलेन-देन के किसी डेटा मद में लिख देने के बादAfter a transaction writes to a data item
  3. Cलेन-देन के commit या abort हो जाने के बादAfter a transaction commits or aborts
  4. Dलेन-देन के समय-सीमा (timeout) तक पहुँचने के बादAfter a transaction reaches its timeout threshold

सही उत्तर / Answer: (C)

हल / Solution
कठोर दो-चरणीय लॉकिंग में लिखने वाले अनन्य (exclusive) lock लेन-देन के commit या abort होने तक नहीं छूटते। इससे कोई दूसरा लेन-देन बिना commit किया मान पढ़ ही नहीं पाता, सो गंदा पाठ (dirty read) और शृंखलाबद्ध वापसी (cascading rollback) दोनों ख़त्म हो जाते हैं। पढ़ते ही या लिखते ही lock छोड़ देना यही बचाव तोड़ देता है, और समय-सीमा का इस नियम से कोई लेना-देना नहीं है।
In strict two phase locking the exclusive locks taken for writing are not released until the transaction commits or aborts. No other transaction can therefore read an uncommitted value, which removes both dirty reads and cascading rollbacks. Releasing a lock as soon as an item has been read or written would destroy exactly that protection, and a timeout threshold has nothing to do with the rule, so the other options fail.
प्रश्न 9उत्तर + हल
रूढ़िवादी दो-चरणीय लॉकिंग (conservative two-phase locking) का सही वर्णन कौन-सा है?
Which of the following statements accurately describes Conservative Two-Phase Locking?
  1. Aलेन-देन अपने शुरू में ही सारे ज़रूरी lock ले लेता हैTransactions acquire all required locks at the beginning of execution
  2. Bलेन-देन डेटा छूते ही lock छोड़ देता हैTransactions release locks immediately after accessing data items
  3. Cलेन-देन पहुँच के ढर्रे के हिसाब से चलते-चलते lock लेता हैTransactions acquire locks dynamically based on the data access pattern
  4. Dलेन-देन commit या abort के बाद ही lock छोड़ता हैTransactions release locks only after they commit or abort

सही उत्तर / Answer: (A)

हल / Solution
रूढ़िवादी दो-चरणीय लॉकिंग में लेन-देन शुरू होने से पहले ही घोषित कर देता है कि उसे क्या-क्या चाहिए और सारे lock एक साथ लेता है। एक भी न मिले तो वह कुछ भी पकड़े बिना प्रतीक्षा करता है, इसलिए प्रतीक्षा का चक्र बन ही नहीं पाता और गतिरोध असंभव हो जाता है। चलते-चलते lock लेना मूल रूप का ढंग है, और commit तक रोके रखना कठोर (strict) रूप की पहचान है।
Conservative two phase locking makes a transaction declare everything it will need before it starts and take all those locks together. If even one lock is unavailable the transaction waits while holding nothing, so no cycle of waiting can form and deadlock becomes impossible. Acquiring locks dynamically as data is touched is ordinary basic two phase locking, and holding every lock until commit is the mark of the strict variant.
प्रश्न 10उत्तर + हल
डेटाबेस समवर्तिता नियंत्रण में मूल दो-चरणीय लॉकिंग (basic two-phase locking) का मुख्य लक्ष्य क्या है?
What is the primary goal of Basic Two-Phase Locking (2PL) in database concurrency control?
  1. Aलेन-देन चलने से पहले सभी डेटा मदों पर lock ले लेनाTo acquire locks on all data items before transaction execution
  2. Bडेटा पढ़ते ही lock छोड़कर गतिरोध रोकनाTo prevent deadlock by releasing locks immediately after reading data
  3. Cदो चरणों में lock लेकर और छोड़कर क्रमबद्धता (serializability) पक्की करनाTo ensure serializability by acquiring and releasing locks in two phases
  4. Dसमवर्ती पहुँच देकर प्रश्न का निष्पादन सुधारनाTo optimize query performance by allowing concurrent access to data

सही उत्तर / Answer: (C)

हल / Solution
दो-चरणीय लॉकिंग में हर लेन-देन पहले बढ़ता चरण (growing phase) चलाता है, जहाँ वह सिर्फ़ lock लेता है, और फिर घटता चरण (shrinking phase), जहाँ सिर्फ़ छोड़ता है। एक बार कोई lock छूट जाए तो नया lock नहीं लिया जा सकता। इसी एक बंदिश से यह पक्का होता है कि नतीजा किसी क्रमिक चलन जैसा ही रहे, यानी क्रमबद्धता (serializability)। यह गतिरोध नहीं रोकता और निष्पादन सुधारना इसका मक़सद नहीं।
Under two phase locking every transaction first runs a growing phase, in which it may only acquire locks, and then a shrinking phase, in which it may only release them. Once any lock has been released no new lock may be taken. That single restriction is what guarantees a conflict serializable schedule. The protocol does not prevent deadlock, and improving query performance is not its purpose at all.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
वितरित डेटाबेस में समवर्तिता नियंत्रण (concurrency control) के निष्पादन पर इनमें से कौन-सा कारक असर डाल सकता है?
Which of the following factors can impact the performance of Concurrency Control in Distributed Databases?
  1. Aनेटवर्क विलंब (network latency)Network latency
  2. BCPU की गतिCPU speed
  3. Cडिस्क I/O throughputDisk I/O throughput
  4. Dउपर्युक्त सभीAll of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 12उत्तर app में
वितरित डेटाबेस में वैश्विक लेन-देन पहचानकर्ता (global transaction identifier) का क्या काम है?
In distributed databases, what is the purpose of a global transaction identifier?
  1. Aकिसी एक डेटाबेस के भीतर लेन-देन की अनोखी पहचान करनाTo uniquely identify a transaction within a single database
  2. Bवितरित नोड्स पर लेन-देन की प्रगति पर नज़र रखनाTo track the progress of a transaction across distributed nodes
  3. Cवितरित डेटा के लिए पहुँच नियंत्रण देनाTo provide access control for distributed data
  4. Dनोड्स के बीच भेजे जा रहे डेटा को गोपित करनाTo encrypt data transmitted between distributed nodes
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 13उत्तर app में
वितरित गतिरोध (distributed deadlock) को पकड़ने और सुलझाने के लिए कौन-सी तकनीक काम में ली जाती है?
Which of the following techniques is used to detect and resolve distributed deadlocks?
  1. Aदो-चरणीय commit प्रोटोकॉलTwo-phase commit protocol
  2. Bकेंद्रीकृत गतिरोध पहचान (centralized detection)Centralized deadlock detection
  3. Cकोरम आधारित गतिरोध पहचानQuorum-based deadlock detection
  4. Dटाइमस्टैंप आधारित पहचानTimestamp-based detection
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
वितरित डेटाबेस प्रणालियों में transaction coordinator की क्या भूमिका होती है?
What is the role of a transaction coordinator in distributed database systems?
  1. Aवितरित नोड पर transaction के काम चलानाTo execute transaction operations on distributed nodes
  2. Bएक ही डेटाबेस के भीतर डेटा की एकरूपता पक्की करनाTo ensure data consistency within a single database
  3. Cवितरित transaction का तालमेल बैठाना और उनका चलना सँभालनाTo coordinate distributed transactions and manage their execution
  4. Dवितरित नोड पर query के प्रदर्शन को सुधारनाTo optimize query performance across distributed nodes
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 15उत्तर app में
वितरित डेटाबेस में Two-Phase Commit (2PC) प्रोटोकॉल का सबसे सही वर्णन कौन-सा है?
Which of the following best describes the Two-Phase Commit (2PC) protocol in distributed databases?
  1. Aवितरित deadlock से निपटने का एक प्रोटोकॉलA protocol for handling distributed deadlocks
  2. Bसाथ-साथ चलने वाले वितरित transaction के बीच isolation पक्की करने का प्रोटोकॉलA protocol for ensuring isolation between concurrent distributed transactions
  3. Cवितरित नोड पर transaction के commit का तालमेल बैठाने वाला प्रोटोकॉलA protocol for coordinating transaction commit across distributed nodes
  4. Dवितरित डेटा-पहुँच के टकराव सुलझाने का एक प्रोटोकॉलA protocol for resolving conflicts in distributed data access
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 16उत्तर app में
वितरित डेटाबेस में quorum क्या होता है?
In distributed databases, what is a quorum?
  1. Aनोड का वह उपसमूह जिसका किसी फ़ैसले पर सहमत होना ज़रूरी हैA subset of nodes that must agree on a decision
  2. Bएक वितरित lock managerA distributed lock manager
  3. Cनेटवर्क के बँट जाने से निपटने की एक व्यवस्थाA mechanism for handling network partitions
  4. Dडेटाबेस transaction का एक समन्वयकA database transaction coordinator
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 17उत्तर app में
वितरित डेटाबेस में Concurrency Control का मुख्य लक्ष्य क्या है?
What is the primary goal of Concurrency Control in Distributed Databases?
  1. Atransaction का throughput सबसे ऊँचा करनाTo maximize the throughput of transactions
  2. Bएक-एक transaction का जवाब देने का समय घटानाTo minimize the response time of individual transactions
  3. Ctransaction की consistency और isolation पक्की करनाTo ensure consistency and isolation of transactions
  4. Dवितरित नोड के कुल संसाधन-उपभोग को घटानाTo reduce the overall resource utilization of distributed nodes
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 18उत्तर app में
वितरित डेटाबेस में Concurrency Control की कौन-सी चुनौती ख़ास तौर पर उसी की है?
Which of the following is a challenge specific to Concurrency Control in Distributed Databases?
  1. Aएक ही डेटाबेस के भीतर डेटा की अखंडता बनाए रखनाEnsuring data integrity within a single database
  2. Bभौगोलिक रूप से दूर-दूर बिखरी कई साइटों पर transaction का तालमेल बैठानाCoordinating transactions across multiple geographically dispersed sites
  3. Cसंवेदनशील डेटा तक अनधिकृत पहुँच रोकनाPreventing unauthorized access to sensitive data
  4. Dडेटाबेस के backup और recovery की व्यवस्था सँभालनाManaging database backups and recovery procedures
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में
वितरित डेटाबेस में Concurrency Control क्या है?
What is Concurrency Control in Distributed Databases?
  1. Aवितरित डेटा तक अनधिकृत पहुँच रोकने की एक व्यवस्थाA mechanism to prevent unauthorized access to distributed data
  2. Bनोड के बीच भेजे जाने वाले डेटा को सिकोड़ने (compress) की एक तकनीकA technique to compress data sent between nodes
  3. Cquery का बोझ सभी नोड पर बराबर बाँटने की एक विधिA method to spread the query load evenly across nodes
  4. Dकई वितरित नोड पर transaction के साथ-साथ चलने को सँभालने की रणनीतिA strategy to manage concurrent execution of transactions across distributed nodes
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 20उत्तर app में
इनमें से कौन-सी deadlock रोकने वाली तकनीक deadlock टालने के बदले कुछ concurrency क़ुर्बान कर देती है?
Which of the following deadlock prevention techniques sacrifices some degree of concurrency for deadlock avoidance?
  1. ATimeout आधारित lockingTimeout-based locking
  2. BTwo-phase commit
  3. Cप्रतीक्षा-आलेख का विश्लेषण (wait-for graph analysis)Wait-for graph analysis
  4. DWound-wait प्रोटोकॉलWound-wait protocol
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 21उत्तर app में
deadlock रोकने में timeout आधारित locking व्यवस्था का उद्देश्य क्या है?
What is the purpose of a timeout-based locking mechanism in deadlock prevention?
  1. Atransaction को टकराने वाले lock छूटने तक अनंत काल इंतज़ार करानाTo force transactions to wait indefinitely until conflicting locks are released
  2. Btransaction को उनके आने के समय के हिसाब से वरीयता देनाTo prioritize transactions based on their arrival time
  3. Cतय की गई प्रतीक्षा-सीमा पार करने वाले transaction को अपने आप रद्द कर देनाTo automatically abort transactions that exceed a specified waiting time
  4. Dtransaction को सिस्टम घड़ी से मिलानाTo synchronize transactions with the system clock
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 22उत्तर app में
प्रतीक्षा-आलेख (wait-for graph) deadlock से निपटने में कैसे मदद करता है?
How does the wait-for graph help in handling deadlocks?
  1. Aयह transaction को उनके timestamp के हिसाब से वरीयता देता हैIt assigns priorities to transactions based on their timestamps
  2. Bयह transaction को पहले ही lock छोड़ने देकर deadlock टालता हैIt allows transactions to preemptively release locks to avoid deadlocks
  3. Cयह transaction निर्भरता के आलेख में चक्र ढूँढ़कर deadlock पकड़ लेता हैIt detects cycles in the transaction dependency graph to find deadlocks
  4. Dयह तय समय से ज़्यादा चलने वाले transaction को rollback कर देता हैIt rolls back transactions that exceed a predefined execution time
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 23उत्तर app में
DBMS में deadlock detection क्या है?
What is deadlock detection in DBMS?
  1. Atransaction को डेटा पर lock लेने से रोकने की एक व्यवस्थाA mechanism to prevent transactions from acquiring locks on data
  2. Bपहले ही बन चुके deadlock को पहचानने और सुलझाने की प्रक्रियाA process of identifying and resolving deadlocks that have already occurred
  3. Ctransaction को उनकी अहमियत के हिसाब से वरीयता देने की तकनीकA technique to prioritize transactions based on their criticality
  4. Dtransaction को संगत हालत तक लौटाने की एक विधिA method to roll back transactions to a consistent state
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 24उत्तर app में
deadlock होने के लिए इनमें से कौन-सी शर्त ज़रूरी नहीं है?
Which of the following is NOT a necessary condition for deadlock occurrence?
  1. Aपारस्परिक अपवर्जन (mutual exclusion)Mutual exclusion
  2. Bपकड़कर इंतज़ार (hold and wait)Hold and wait
  3. Cअपहरण न होना (no-preemption)No-preemption
  4. DTwo-phase locking
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 25उत्तर app में
DBMS में transaction प्रबंधन के संदर्भ में deadlock क्या है?
What is a deadlock in the context of transaction management in DBMS?
  1. Aऐसी स्थिति जिसमें टकराते बदलावों के कारण transaction commit नहीं कर पातेA situation where transactions are unable to commit due to conflicting data modifications
  2. Bऐसी हालत जिसमें transaction एक-दूसरे के lock छूटने की राह देखते हुए सदा के लिए अटक जाते हैंA condition where transactions are blocked indefinitely, waiting for each other to release locks
  3. Cऐसी स्थिति जिसमें एकरूपता के लिए transaction क्रम से चलाए जाते हैंA scenario where transactions are executed in a serial order to ensure data consistency
  4. Dऐसी हालत जिसमें transaction प्रदर्शन के लिए ACID गुण छोड़ देते हैंA state where transactions bypass the ACID properties for performance optimization
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 27उत्तर app में
Snapshot Isolation लागू करने की मुख्य चुनौती क्या है?
What is the primary challenge of implementing Snapshot Isolation?
  1. Aडेटा के बदलावों की durability पक्की करनाEnsuring durability of data changes
  2. Bसाझा डेटा पर साथ-साथ होने वाले बदलाव सँभालनाManaging concurrent updates to shared data
  3. Cdeadlock पकड़ना और सुलझानाDetecting and resolving deadlocks
  4. Dसिर्फ़ पढ़ने वाले transaction के बीच deadlock रोकनाPreventing deadlocks between read-only transactions
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 28उत्तर app में
Snapshot Isolation में इनमें से कौन-सी स्थिति write skew पैदा कर सकती है?
Which of the following scenarios can lead to a write skew anomaly in Snapshot Isolation?
  1. Aदो transaction एक ही डेटा को साथ-साथ पढ़ेंTwo transactions concurrently reading the same data
  2. Bकोई transaction ऐसा डेटा पढ़े जिसे दूसरे transaction ने बदल दिया हैA transaction reading data that has been updated by another transaction
  3. Cदो transaction एक ही डेटा को बिना टकराव बदल देंTwo transactions updating the same data without conflict
  4. Dकोई transaction डेटाबेस के पुराने पड़ चुके snapshot के आधार पर बदलाव कर देA transaction updating data based on a stale snapshot of the database
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 29उत्तर app में
Snapshot Isolation में अगर कोई transaction ऐसा डेटा पढ़े जिसे किसी और बिना commit हुए transaction ने बदल दिया है, तो क्या होता है?
In Snapshot Isolation, what happens if a transaction reads data that has been modified by another uncommitted transaction?
  1. Aवह transaction टकराने वाले transaction के पूरे होने तक इंतज़ार करता हैThe transaction waits until the conflicting transaction completes
  2. Bवह डेटा का पुराना संस्करण पढ़ता है और बिना commit हुए बदलाव को अनदेखा कर देता हैThe transaction reads the old version of data, ignoring the uncommitted changes
  3. Cवह बिना commit हुए बदलाव पढ़ लेता है, जिससे असंगति हो सकती हैThe transaction reads the uncommitted changes, potentially leading to inconsistencies
  4. Dवह रद्द होकर नए snapshot के साथ दोबारा शुरू होता हैThe transaction aborts and restarts with a new snapshot of the database
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 30उत्तर app में
Snapshot Isolation के बारे में इनमें से कौन-सा कथन सही है?
Which of the following statements is true regarding Snapshot Isolation?
  1. Aयह concurrency से जुड़ी सारी विसंगतियाँ रोक देता हैIt prevents all forms of concurrency-related anomalies
  2. Bइसके लिए हर transaction को डेटा मदों पर साफ़ तौर पर lock लगाना पड़ता हैIt requires explicit locking of data items for each transaction
  3. Cध्यान से न सँभाला जाए तो इससे write skew जैसी विसंगति हो सकती हैIt can lead to write skew anomalies if not carefully managed
  4. Dयह बिना किसी अतिरिक्त व्यवस्था के serializability की गारंटी देता हैIt guarantees serializability by default without any additional configuration
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Concurrency Control के सभी 98 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

Programmer DBMS के दूसरे topics

सभी topics