100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 511 – Midterm Exam Questions With Verified And Updated Answers $11.49   Add to cart

Exam (elaborations)

CSE 511 – Midterm Exam Questions With Verified And Updated Answers

 0 view  0 purchase
  • Course
  • CSE 511
  • Institution
  • CSE 511

©THESTAR EXAM SOLUTIONS 2024/2025 ALL RIGHTS RESERVED. 1 | P a g e CSE 511 – Midterm Exam Questions With Verified And Updated Answers Transaction - answerUser program that can either read or write data from or to the database system ACID - answerAtomicity, Consistency, Isolation and Durab...

[Show more]

Preview 2 out of 8  pages

  • November 24, 2024
  • 8
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 511
  • CSE 511
avatar-seller
TheStar
©THESTAR EXAM SOLUTIONS 2024/2025

ALL RIGHTS RESERVED.



CSE 511 – Midterm Exam Questions With
Verified And Updated Answers



Transaction - answer✔User program that can either read or write data from or to the database
system

ACID - answer✔Atomicity, Consistency, Isolation and Durability

ACID - Atomic - answer✔All or nothing - Transaction must be completed in full or not at all (no
subdividing)

ACID - Consistency - answer✔Transactions will transform the database from one consistent
state to another. There are no violations of integrity constraints.

ACID - Isolated - answer✔Transactions execute independently of one another. Database
changes are not revealed to one another until after a transaction has completed.
Serializable - even if some transactions are executed concurrently the results must be the same
as if they were executed serially in some order.

ACID - Durable - answer✔Database changes are permanent.

How is concurrency achieved in DBMS? - answer✔Interleaving actions of multiple transactions.

Serial Schedule - answer✔Schedule that does not interleave the actions of different
transactions.

Equivalent Schedule - answer✔Effect of executing the first schedule is identical to the effect of
executing the second schedule.

Serializable Schedule - answer✔A schedule that is equivalent to some serial execution of the
transaction.

Two schedules are conflict equivalent if: - answer✔- Schedules involve the same actions of the
same transactions


1|Page

, ©THESTAR EXAM SOLUTIONS 2024/2025

ALL RIGHTS RESERVED.
- Every pair of conflicting actions (read/write conflict) is ordered the same way

Conflict Serializable Schedule - answer✔Schedule S is conflict serializable if S is conflict
equivalent to some serial schedule.

Creating dependency graph to determine if transactions are conflict serializable - answer✔-
Create one node per transaction (e.g. Ti, Tj)
-Create an edge from Ti to Tj if Tj reads/writes an object last written by Ti
-Examine the graph for cycles. If a cycle exists then the set of transactions is NOT conflict
serializable

Strict Two Phase Locking - answer✔A transaction must acquire a shared lock on an item before
reading and an exclusive lock on an item before writing.
-Multiple transactions may hold a shared lock on a single item.
-If a transaction holds an exclusive lock on an item no other transaction may hold a
shared/exclusive lock on that same item.

Define the two phases of Strict 2PL - answer✔Phase One: transaction will acquire locks that it
needs
Phase Two: transaction will release locks at the end of the transaction

What is the lock manager? - answer✔The lock manager handles lock and unlock requests.
These operations are atomic.

What is deadlock and how do we detect it? - answer✔Cycle of transactions waiting for locks to
be released by one another.
We can detect a deadlock by creating a wait-for graph:
-Nodes are transactions
-Create an edge from Ti to Tj if Ti is waiting for Tj to release a lock (Tj holds exclusive lock on
object that Ti needs access to)
-If cycle exists there is a deadlock

Shared vs Exclusive Lock - answer✔Shared lock: required to read from an object
Exclusive lock: required to write to an object

Types of Failures: Transaction, System, Media, Communication - answer✔-Transaction:
transaction is aborted (~3% abort abnormally)


2|Page

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller TheStar. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

62555 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.49
  • (0)
  Add to cart