JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV Year DISTRIBUTED DATABASES Previous Question Paper (February/March - 2022 - R18)
Answer any Five Questions
All Questions Carry Equal Marks
Main
Give an overview of various architectural alternatives in distributed DBMS.
Answer
Architectural alternatives in a distributed database management system (DDBMS) are primarily categorized based on the distribution of data, the autonomy of local sites, and the degree of heterogeneity. The three main architectural models are:
- Client-Server Architecture: This model separates the system into a centralized server that manages the database and multiple clients that request data. It is simple but can suffer from bottlenecks at the server.
- Collaborative Server Architecture: This model allows multiple database servers to work together to execute a query. Each server manages its own local data and communicates with others to process distributed requests, providing better scalability.
- Middleware Architecture: A middleware layer sits between the client and multiple heterogeneous database servers. It provides a unified global view of the data, translating queries into the specific language required by each underlying local database system.
Additionally, architectures are classified by autonomy (how much control local sites retain), distribution (where data resides), and heterogeneity (whether the systems use different software or hardware).
Explain partitioning algorithm.
Answer
Partitioning (or fragmentation) is the process of dividing a logical database relation into smaller, non-overlapping subsets called fragments, which are then stored at different sites. The primary goal is to improve performance by placing data closer to where it is most frequently accessed. The main algorithms/types are:
- Horizontal Partitioning: Rows of a relation are grouped based on a selection predicate. For example, a table of employees might be split by department ID, where all rows for 'IT' go to one site and 'HR' to another.
- Vertical Partitioning: Columns of a relation are grouped. Each fragment contains the primary key to allow for reconstruction. This is useful when different applications require different subsets of attributes.
- Hybrid Partitioning: A combination of horizontal and vertical partitioning, where a relation is first split horizontally and then those fragments are split vertically, or vice versa.
The algorithm must ensure completeness (all data is mapped to at least one fragment), reconstruction (the original relation can be recreated using relational algebra operators like Union or Join), and disjointness (fragments should not overlap, except for the primary key in vertical partitioning).
Explain client/server reference architecture.
Answer
Sign in to view the complete answer paper.
Give the allocation model that minimizes the total cost of processing and storage.
Answer
Sign in to view the complete answer paper.
Give the generic layering scheme for distributed query processing.
Answer
Sign in to view the complete answer paper.
Explain INGRES algorithm.
Answer
Sign in to view the complete answer paper.
What is an operator tree? Explain how to obtain an equivalent operator tree by applying transformation rules using examples.
Answer
Sign in to view the complete answer paper.
What is a semijoin program? Explain with an example.
Answer
Sign in to view the complete answer paper.
Give an overview of various types of transactions.
Answer
Sign in to view the complete answer paper.
Explain basic timestamp-ordering algorithm.
Answer
Sign in to view the complete answer paper.
What are the various phases of optimistic transaction execution and the possible execution scenarios? Give the rules for ensuring serializability in optimistic concurrency control algorithms.
Answer
Sign in to view the complete answer paper.
Explain mechanisms for deadlock avoidance.
Answer
Sign in to view the complete answer paper.
Explain two phase commitment protocol, and termination and recovery protocols for two phase commitment.
Answer
Sign in to view the complete answer paper.
What do you mean by cache consistency? What are the various methods for ensuring cache consistency?
Answer
Sign in to view the complete answer paper.
Explain vertical class partitioning.
Answer
Sign in to view the complete answer paper.