CS FundamentalsHardProduct placement · DBMS interview
Which statement about the basic timestamp-ordering protocol is correct?
- A. It allows non-conflict-serializable schedules
- B. It can deadlock because transactions wait for locks
- C. It guarantees recoverable schedules without any extra rule
- D. It is deadlock-free but may produce cascading rollbacks unless reads of uncommitted data are delayed
Correct answer: D. It is deadlock-free but may produce cascading rollbacks unless reads of uncommitted data are delayed
No transaction ever waits, so deadlock is impossible; conflicting operations are ordered by timestamps, so schedules are conflict serializable. But a transaction may read uncommitted data and then cascade if the writer aborts.
More DBMS and SQL questions
- A file has 20,000 records of 80 bytes stored unspanned in 512-byte blocks, NOT ordered on attribute X. A dense secondary index on X (a…
- R(A, B) has 250 tuples and S(B, C) has 60 tuples, where B is the primary key of R and also the primary key of S. What are the minimum and…
- R(A, B, C, D, E, F) has functional dependencies C → F, D → AC, A → B, F → D. Which of these attribute sets is NOT a superkey of R?
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). In this query's output, what are (r, dr)…
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {A → D, E → C, AE → CD, F → B, B → F}. Which of the following FDs is NOT in…
- R(A, B, C, D) has functional dependencies D → AB, A → BC. What is the highest normal form R satisfies?