THEORY EXAMINATION (SEM–VI) 2016-17 DISTRIBUTED DATABASE

B.Tech General 0 downloads
₹29.02

DISTRIBUTED DATABASE – NCS067

B.Tech (SEM VI) | Section-wise Solved Answers


SECTION – A

(10 × 2 = 20 marks)


(a) Cascadeless schedules

A cascadeless schedule is one in which transactions read only committed data. This avoids cascading rollbacks because no transaction depends on uncommitted updates of another transaction.


(b) Serializability and its testing

Serializability ensures that the outcome of concurrent transactions is equivalent to some serial execution. It is tested using a precedence (serialization) graph. If the graph has no cycle, the schedule is serializable.


(c) Strict 2PL vs Rigorous 2PL

In strict two-phase locking, exclusive locks are released only after commit, while shared locks may be released earlier.
In rigorous two-phase locking, both shared and exclusive locks are held until commit, ensuring strict serializability.

 

(d) Timestamps associated with each data item

Each data item maintains a read timestamp (RTS) and write timestamp (WTS) to track the most recent read and write operations.


(e) Replication

Replication is the process of maintaining multiple copies of data at different sites to improve availability, reliability, and performance.

 

(f) Fragmentation and its types

Fragmentation divides a database into smaller pieces.
Types include horizontal fragmentation, vertical fragmentation, and hybrid fragmentation.


(g) Orphan concept in distributed database

An orphan transaction occurs when a transaction continues execution even though its parent transaction has failed, leading to inconsistency.


(h) Database recovery

Recovery restores the database to a consistent state after failure using log-based recovery, checkpointing, and rollback/redo operations.


(i) Distributed vs Replicated database

A distributed database stores data across multiple sites.
A replicated database stores multiple copies of the same data at different sites.


(j) Distributed deadlock detection

Distributed deadlock detection identifies cycles in the global wait-for graph across multiple sites to detect deadlocks involving distributed transactions.


SECTION – B

(Attempt any five – 5 × 10 = 50 marks)


(a) Conflict vs View Serializability

Conflict serializability is based on swapping non-conflicting operations and is easier to test using precedence graphs.
View serializability considers read-from relationships and final writes and is more general but difficult to test.


(b) Timestamp-based concurrency control

Transactions are ordered using timestamps. Operations violating timestamp order are aborted. This method avoids deadlocks but may cause frequent rollbacks.


(c) Purpose of Two-Phase Commit (2PC) Protocol

2PC ensures atomicity of distributed transactions.
It guarantees that either all participating sites commit the transaction or all abort.


(d) Two phases of 2PC

Phase 1 – Voting phase: Coordinator asks participants to prepare.
Phase 2 – Decision phase: Coordinator decides commit or abort based on votes and informs participants.


(e) Cost-based query optimization

This approach selects the execution plan with minimum communication and processing cost by estimating data transfer, CPU usage, and response time.


(f) Recovery in message passing systems

Failures can lead to inconsistent states where messages are lost or duplicated. Logging and checkpointing help restore consistency.


(g) Multiversion schemes

Multiversion concurrency control maintains multiple versions of data items. It improves read performance and reduces conflicts between read and write operations.


(h) Query optimization algorithms

Algorithms include dynamic programming, heuristic-based optimization, and cost-based optimization to minimize distributed query execution cost.


SECTION – C

(Attempt any two – 2 × 15 = 30 marks)


(3) Transaction management in distributed databases

Distributed transaction management ensures atomicity, consistency, isolation, and durability across sites.
Homogeneous DB: Same DBMS and data model at all sites.
Heterogeneous DB: Different DBMSs and data models at different sites.


(4) Traditional recovery techniques

Traditional recovery uses write-ahead logging, undo/redo operations, and checkpoints.
Example: If a system crashes after logging but before commit, redo is applied; if before commit, undo is applied.


(5) Objectives of distributed query processing

The objectives are to minimize data transfer, reduce response time, optimize resource usage, and ensure correctness of query results in a distributed environment.

File Size
50.81 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Foreign Language Classes Near By Kirti Nagar Learn Global Languages & Unlock International Opportunities Kirti Nagar, Delhi
Music Theory & Composition Classes Near By Najafgarh – Build Your Musical Foundation Najafgarh, Delhi
Guitar Classes Near By Defence Colony Learn Guitar with Expert Trainers & Turn Your Passion into a Lifelong Skill Defence Colony, Delhi
Music Production (Laptop-Based) Near DLF Golf Course Road – Create, Mix & Release Your Own Music DLF Road, Gurugram
Meditation Coaching Near Malibu Town, Gurugram – Find Inner Calm & Mental Clarity Malibu Town, Gurugram
Web Development Classes Near Noida Sector 103 – Complete Guide to Start Your Tech Career Noida
Dance Classes (Bollywood, Hip-Hop, Classical) Near Sector 129 Greater Noida – Learn, Express, and Stay Fit Through Dance Noida
Spoken English Classes Near By Paschim Vihar Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Paschim Vihar, Delhi
Spoken English Classes Near By Najafgarh Improve Fluency, Build Confidence & Speak English Naturally Najafgarh, Delhi
Real Estate Consulting Near By Dwarka Mor Professional Property Guidance for Buying, Selling & Investment Decisions Dwarka Mor, Delhi
Guitar Classes Near Central Noida Sector 1 – Learn Guitar with Expert Trainers Noida
🇫🇷 French Language Classes Near Sector 114 Noida – Learn French with Professional Trainers Noida
Physiotherapy Guidance (Certified Professionals Only) Near Uppal Southend – Expert Care for Pain Relief and Recovery Uppal Southend, Gurugram
Physiotherapy Guidance (Certified Professionals Only) Near Central Park 1 & 2 – Restore Movement, Regain Strength Central Park 2, Gurugram
Vedic Maths Classes Near By Dwarka Mor Improve Speed, Accuracy & Confidence in Mathematics Dwarka Mor, Delhi
Accounts & Commerce Classes Near By Dwarka Mor Professional Coaching Dwarka Mor, Delhi
Harmonium Classes Near DLF Golf Course Road – Learn Classical & Devotional Music Gurugram
Singing & Guitar Classes Near Sector 106 Gurugram (Dwarka Expressway) – Discover Your Musical Talent Sector 106, Gurugram
App Development Classes Near Noida Sector 100 – Learn Mobile App Development and Start Your Tech Career Sector 100, Noida
Guitar Classes Near By Green Park Learn Guitar with Expert Trainers & Turn Your Passion into a Lifelong Skill Green Park, Delhi
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020