Transactions and DBMS Architecture Flashcards

1
Q

What is a DBMS?

A

Software system for defining, building, manipulating, and sharing databases efficiently

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

What are the main goals of a DBMS

A
  1. Data abstraction
  2. Independence
  3. Fault tolerance
  4. Access control
  5. Concurrency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

4 types of DBMS languages

A
  1. Data Definition Language (DDL)
  2. Data Manipulation Language (DML)
  3. Data Control Language (DCL - access control)
  4. Transaction Control Language (TCL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ACID

A

Atomicity
Consistency
Isolation
Durability

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

Why is isolation important in transactions?

A

To maintain transactions do not interfere with each other, maintaining data integrity

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

What is a dirty read in concurrency?

A

When a transaction reads data that has not been committed yet

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

How does a DBMS prevent loss updates?

A

By using locks and ensuring proper transaction isolation

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

What does the Query Optimizer do?

A

Determines the most efficient way to execute a query

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

Recovery Manager

A

Restrores database to a consistent state after failures

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

NoSQL

A

Databases that handle unstructured data, web-scale applications and horizontal scalability

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

Main advantage of in-memory databases (IMDB)

A

Faster access since data is stored in RAM.

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

Difference between two-tier and three-tier DBMS architectures

A

3-tier separates presentation, logic, and database services to improve scalability and modularity

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

Cloud Database

A

Database hosted in managed in the cloud (DBaaS).

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