Advanced Database (BSc CSIT, CSC461): the questions likely to come
36 analyzed questions from 8 past papers (2074-2082), grouped by syllabus unit — each with its probability, how often it's been asked, and where to study the answer.
What is concurrency control? Explain the two-phase locking protocol and timestamp-based ordering protocol for concurrency control with suitable examples.
Concurrency Control
Concurrency control is the activity of coordinating the concurrent (interleaved) execution of transactions in a multi-user database so that the result is equivalent to some serial execution (serializability), while preserving the ACID properties. Without it, anomalies such as lost update, dirty read, and unrepeatable read can occur.
Two-Phase Locking (2PL) Protocol
2PL is a lock-based protocol. A transaction must obtain a shared lock (S) before reading and an exclusive lock (X) before writing a data item. Locking proceeds in two phases:
- Growing phase — the transaction may acquire locks but cannot release any.
- Shrinking phase — the transaction may release locks but cannot acquire any new lock.
The point after the last lock is acquired is the lock point. 2PL guarantees conflict serializability.
Variants: Strict 2PL holds all exclusive locks until commit/abort (prevents cascading rollback); Rigorous 2PL holds all locks until commit.
Example:
T1: lock-X(A); read(A); A=A-50; write(A);
lock-X(B); release(A); read(B); B=B+50; write(B); release(B);
All locks are acquired before any is released, so T1 obeys 2PL. A drawback is the possibility of deadlock.
Timestamp-Based Ordering Protocol
Each transaction gets a unique timestamp at start. Each data item has two values: W-timestamp(X) (largest timestamp of a transaction that wrote X) and R-timestamp(X) (largest timestamp that read X). The protocol orders transactions by their timestamps and ensures the schedule is equivalent to executing them in timestamp order.
Read rule (Ti reads X):
- If → is too late; reject and roll back .
- Else read is allowed; set .
Write rule (Ti writes X):
- If or → reject and roll back .
- Else write is allowed; set .
Example: Suppose , . If writes (so ) and then (timestamp 5) tries to write , since , is rolled back and restarted with a new timestamp.
Timestamp ordering is deadlock-free (no waiting) but can cause repeated rollbacks/starvation.
Parallel and Distributed Databases
What is concurrency control? Explain the two-phase locking protocol and timestamp-based ordering protocol for concurrency control with suitable examples.
What is a distributed database management system (DDBMS)? Explain data fragmentation, replication and allocation techniques used in distributed databases with suitable examples.
List the types of transparency in distributed database. Explain the distributed database architecture.
Define fragmentation. Explain horizontal fragmentation with an example.
Explain the two-phase locking (2PL) protocol for concurrency control.
Explain the two-phase commit (2PC) protocol used in distributed transactions.
Explain the architecture of parallel databases. What is inter-query and intra-query parallelism?
Explain log-based recovery techniques in a database system.
Discuss the replication and allocation techniques for distributed database design.
Sit a probable paper
A full mock exam built from the most likely questions, mirroring the real paper's structure. Every slot is a real past question.
Most Probable Paper
Mirrors the real structure · 60 marks · based on 8 past papers
- 1.[10 marks]
What is concurrency control? Explain the two-phase locking protocol and timestamp-based ordering protocol for concurrency control with suitable examples.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (Parallel and Distributed Databases) appears in 100% of years.
- 2.[10 marks]
What is a distributed database management system (DDBMS)? Explain data fragmentation, replication and allocation techniques used in distributed databases with suitable examples.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (Parallel and Distributed Databases) appears in 100% of years.
- 3.[10 marks]
Explain the Enhanced Entity-Relationship (EER) model. Discuss specialization, generalization, categorization and aggregation with suitable diagrams and examples.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (Object-Based and Object-Relational Databases) appears in 100% of years.
- 1.[5 marks]
What are the characteristics of NoSQL systems? Explain.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Advanced Data Management and Emerging Trends) appears in 100% of years.
- 2.[5 marks]
Define fragmentation. Explain horizontal fragmentation with an example.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Parallel and Distributed Databases) appears in 100% of years.
- 3.[5 marks]
Explain aggregation with a suitable example.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Object-Based and Object-Relational Databases) appears in 100% of years.
- 4.[5 marks]
What is the ODMG object model? What is Object Definition Language (ODL)?
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Object-Based and Object-Relational Databases) appears in 100% of years.
- 5.[5 marks]
What is the concept of an active database? What are triggers?
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Advanced Data Management and Emerging Trends) appears in 100% of years.
- 6.[5 marks]
Write short notes on: (a) Big Data (b) Information Retrieval.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Advanced Data Management and Emerging Trends) appears in 100% of years.
- 7.[5 marks]
Explain the different steps in query processing.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Query Processing and Optimization) appears in 100% of years.
- 8.[5 marks]
Why is hashing important to store data in databases? What is primary file organization?
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Query Processing and Optimization) appears in 100% of years.
- 9.[5 marks]
Why is query optimization essential in databases? What is heuristic optimization?
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Query Processing and Optimization) appears in 100% of years.
Behind the numbers
The raw evidence the predictions are computed from: marks per unit per year, syllabus weights, trends, and coverage.
Show the heatmap, topic table and coverage analysis
The receipt: marks per unit, per year
Each row is a syllabus unit, each column an exam year, each cell the marks that unit earned that year. Click any cell to see the actual questions behind it.
| # | Syllabus unit | Probability | Appeared | Avg marks | Syllabus weight | Exam vs syllabus | Trend | Questions |
|---|---|---|---|---|---|---|---|---|
| 1 | U2Parallel and Distributed Databases | Very likely100% | 19.4 | 22%10 lecture hrs | Balancedexam 26% · syllabus 22% | Steady | 7 recurring9 total | |
| 2 | U3Object-Based and Object-Relational Databases | Very likely100% | 18.8 | 18%8 lecture hrs | Over-examinedexam 25% · syllabus 18% | Rising | 5 recurring12 total | |
| 3 | U6Advanced Data Management and Emerging Trends | Very likely100% | 18.8 | 13%6 lecture hrs | Over-examinedexam 25% · syllabus 13% | Steady | 7 recurring7 total | |
| 4 | U1Query Processing and Optimization | Very likely100% | 15 | 20%9 lecture hrs | Balancedexam 20% · syllabus 20% | Steady | 4 recurring6 total | |
| 5 | U4XML and Semi-Structured Data | Possible38% | 5 | 13%6 lecture hrs | Under-examinedexam 2% · syllabus 13% | Steady | 1 recurring1 total | |
| 6 | U5Spatial and Temporal Databases | Occasional12% | 10 | 13%6 lecture hrs | Under-examinedexam 2% · syllabus 13% | Rising | none repeat1 total |
Study smart, not hard
Drag the slider: studying the top 4 units in priority order covers ~96% of all observed marks.
- ~80% line
Lecture time vs exam marks
Where the exam pays more than the curriculum spends: ● lectures vs ● exam marks, as a share of the whole course. A long teal-leading bar = high-yield unit.