1.2 Flashcards

1
Q

What is meant by large database performance?

A

When many users and applications simultaneously access large databases, query response time degrades rapidly. Database systems must maintain fast response times by structuring data properly on storage media and processing queries efficiently.

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

What is meant by database authorization?

A

Many database users should have limited access to specific tables, columns, or rows of a database. Database systems must authorize individual users to access specific data.

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

What is database security?

A

Database systems must ensure authorized users only access permissible data. Database systems must also protect against hackers by encrypting data and restricting access.

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

What are database rules?

A

Database systems must ensure data is consistent with structural and business rules. Ex: When multiple copies of data are stored in different locations, copies must be synchronized as data is updated. Ex: When a course number appears in a student registration record, the course must exist in the course catalog.

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

Describe database recovery?

A

Computers, database systems, and individual transactions occasionally fail. Database systems must recover from failures and restore the database to a consistent state without loss of data.

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

What is a transaction?

A

A transaction is a group of queries that must be either completed or rejected as a whole. Execution of some, but not all, queries results in inconsistent or incorrect data.

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

What must database systems do when processing transactions?

A
  • Ensure transactions are processed completely or not at all.
  • Prevent conflicts between concurrent transactions.

-Ensure transaction results are never lost.

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

What is database architecture?

A

The architecture of a database system describes the internal components and the relationships between components.

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

What does the query processor do?

A

The query processor interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application.

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

Why does the query processor perform query optimization?

A

The query processor performs query optimization to ensure the most efficient instructions are executed on the data.

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

What does the storage manager do?

A

The storage manager translates the query processor instructions into low-level file-system commands that modify or retrieve data.

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

Why does the storage manager use indexes?

A

Since database sizes range from megabytes to many terabytes, the storage manager uses indexes to quickly locate data.

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

What does the transaction manager do?

A

The transaction manager ensures transactions are properly executed. The transaction manager prevents conflicts between concurrent transactions. The transaction manager also restores the database to a consistent state in the event of a transaction or system failure.

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

What is a log?

A

The log is a file containing a complete record of all inserts, updates, and deletes processed by the database. The transaction manager writes log records before applying changes to the database. In the event of a failure, the transaction manager uses log records to restore the database.

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

What is a catalog (aka data dictionary)?

A

The catalog, also known as a data dictionary, is a directory of tables, columns, indexes, and other database objects. Other components use catalog information to process and execute queries.

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

What are the components of a database system?

A

-query processor
-storage manager
-transaction manager
-log
-catalog

17
Q

Does the query processor have direct access to data on the database?

A

No. All access must go through the storage manager.

18
Q

What allows the storage manager to quickly locate data?

A

Indexes

19
Q

What must be logged by the transaction manager in order for the database to be recoverable in the event of system failure?

A

All inserts, updates, and deletes must be logged in order to correctly restore database changes. Reads are not needed to restore database changes, however, and thus are not logged.

20
Q

What is a relational database?

A

A relational database stores data in tables, columns, and rows, similar to a spreadsheet. All data in a column has the same format. All data in a row represents a single object, such as a person, place, product, or activity.

21
Q

What is SQL?

A

SQL stands for Structured Query Language and includes statements that read and write data, create and delete tables, and administer the database system. All relational database systems support the SQL query language.

22
Q

What is meant by ‘big data’?

A

The growth of the internet in the 1990s generated massive volumes of online data, called big data, often with poorly structured or missing information. Relational systems were not initially designed for big data and, as a result, many non-relational systems have appeared since 2000. The newer non-relational systems are called NoSQL, for ‘not only SQL’, and are optimized for big data.

23
Q

What is ‘NoSQL’?

A

These are newer non-relational systems (NoSQL means ‘not only sql’) that are optimized for big data.

24
Q

What is meant by ‘Open Source’ software?

A

Open source software is software that anyone can inspect, copy, and modify with no licensing fee.