781 - 818: Probabilistic Databases Flashcards

1
Q

Explain the difference between physical and logical logging.

A

Physical Logging: Logs the exact before and after images of data.
Logical Logging: Logs operations (e.g., x += 10) rather than the exact changes, requiring a consistent database state for application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the function of a buffer in database management?

A

The buffer temporarily stores data pages in memory, reducing disk I/O by enabling operations to occur in memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a schedule in database systems?
A. A sequence of unrelated transactions
B. A sequence of operations from a set of transactions
C. A list of aborted transactions
D. A history of failed executions

A

B. A sequence of operations from a set of transactions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which anomaly occurs when two transactions write conflicting values without proper synchronization?
A. Dirty Read
B. Lost Update
C. Inconsistent Read
D. Phantom Read

A

B. Lost Update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does FSR (Final State Serializability) guarantee?
A. Transactions will commit in a specific order
B. The final state matches that of a serial execution
C. No cascading aborts will occur
D. Conflicts are resolved using locking

A

B. The final state matches that of a serial execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which class of schedules is guaranteed to avoid anomalies like dirty reads and cascading aborts?
A. CSR
B. VSR
C. Strict Histories
D. OCSR

A

C. Strict Histories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a strict history?
A. A history where all transactions follow VSR
B. A history where locks are held until commit or abort
C. A history that prohibits multiple transactions on the same data
D. A history that matches its prefix to a serializable one

A

B. A history where locks are held until commit or abort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define Lost Update Anomaly.

A

Two transactions read the same value and update it independently, resulting in the loss of one update.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Inconsistent Read Anomaly?

A

A transaction reads values that are being modified by another transaction, leading to inconsistent or partial results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Dirty Read Anomaly?

A

A transaction reads a value written by another transaction that has not yet committed, leading to potential inconsistency if the writing transaction is rolled back.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define Final State Serializability (FSR).

A

FSR ensures that the final state of the database matches that of a serial execution, starting from the same initial state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is View Serializability (VSR)?

A

VSR ensures that every transaction reads values as if it were executed in a serial order, avoiding inconsistent reads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Conflict Serializability (CSR)?

A

CSR ensures serializability by resolving conflicts using a conflict graph, which must remain acyclic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly