Chapter 1: Databases and Database Design Flashcards

1
Q

What is a DBMS?

A

Database Management System.

A software that defines, creates, uses, and maintains a database. Examples include MySQL, Oracle, Microsoft Access

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

What is the File-Based Approach?

A

The File-Based Approach was a data management approach in the early days of computing, in which every application stored its data in its own dedicated files, which resulted in multiple instances of duplicate data or data with errors

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

What is a Database?

A

A database is a collection of related data items within a specific business process or problem setting

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

What is Concurrency Control?

A

Concurrency control is the procedure in DBMS for managing simultaneous operations without conflicting with each another

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

What is the Database Approach?

A

The Database Approach an approach to managing data where all data are stored and managed centrally by a DBMS. Applications interface directly with the DBMS, not their own files

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

What are the two types of data a DBMS stores?

A

Raw Data and Metadata

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

What is Metadata?

A

Metadata is data about data. Its everything that isn’t raw data that you imported. It is typically data definitions that are stored in the DBMS catalog.

It refers to information on schemas and all the other information regarding access, storage, built in programs or any other information about database elements

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

What makes the Database Approach superior to the File-Based Approach?

A

Advantages of DBMS over File system:

  • Eliminates data redundancy and inconsistency
  • Data is easily shared
  • Locking system enables data concurrency
  • Provides easy data searching
  • Ensures data integrity
  • Makes for easier data security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a Database State?

A

Database State represents the data in the database at a particular moment. The state changes frequently

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

What is a Database Model?

A

Database Model refers to the logical structure, representation or layout of a database and how the data will be stored, managed and processed within it

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

What is the Three-Layer Architecture?

A

Three-Layer Architecture is a description of how the underlying data models of a database are related. The three layers are external, conceptual/logical, and internal

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

What are the three layers of a Three-Layer Architecture?

A
  • External
  • Conceptual/logical
  • Internal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an External Data Model?

A

Comprised of “views”. The customer facing data model, containing various subsets of the data items in a logical model, tailored towards the needs of specific applications or groups of users

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

What is a View and what is it used for?

A

A View is the part of a database that a particular application or user group is interested in, hiding the rest of the database. It is used to control data access and enforce security

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

What is a Conceptual Data Model?

A

The model that lays out a description of data items with their characteristics and relationships. Used as a bridge between business users and the database designer/manager

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

What is a Logical Data Model?

A

A translation of the conceptual data model towards a specific implementation environment. It can be further translated to an internal data model that represents the data’s physical storage details

17
Q

What is an Internal Data Model?

A

A specification of how data is actually stored or organized physically. A model of how data is actually stored on a hard drive or can be found

18
Q

What is a Catalog?

A

A repository for data definitions generated by the DDL compiler, integrity rules, metadata, and other information such as users, user groups, and statistics about data and storage

19
Q

What is a DDL?

A

Data Definition Language

It expresses the database’s external, logical, and internal data models

20
Q

What is a DML?

A

Data Manipulation Language

It is used to retrieve, insert, delete, and modify data

21
Q

What is SQL?

A

Structured Query Language

It can be used as both the DDL and DML

22
Q

What is Data Independence?

A

Data Independence means that changes in data definitions have minimal to no impact on the application using the data. There can be physical or logical data independence

23
Q

What is Physical Data Independence and how is it guaranteed?

A

Physical Data Independence implies that neither the applications, views, or logical data model must be changed when changes are made to the data storage specifications in the internal data model.

It is guaranteed by using a DBMS to interface between logical and internal data models

24
Q

What is Logical Data Independence and how is it guaranteed?

A

Logical Data Independence implies that the software applications are minimally affected by changes in the conceptual or logical data model. It is saying that if you add a new entity or something in the logical model, the view of an application will still be unchanged.

It is guaranteed by using a DBMS to interface between conceptual/logical and external data models

25
Q

What is Structured, Unstructured, and Semi-Structured Data?

A

Structured Data: data that adheres to a pre-defined data model and is straightforward to analyze. Structured data conforms to a tabular format with relationship between the different rows and columns. Excel and SQL databases.

Unstructured Data: data that either does not have a pre-defined data model or is not organized in a pre-defined manner. Can be images, long text, video, etc.

Semi-Structured Data: data that does not reside in a relational database but that have some organizational properties that make it easier to analyze. XML data.

26
Q

What are Syntactical Rules and Semantic Rules?

A

Syntactical Rules: specify how the data should be represented and stored. (Ex. CustomerID should be an integer)

Semantic Rules: focus on the correctness or meaning of the data. (Ex. CustomerID must be unique)

27
Q

What are the three KPIs of a DBMS?

A
  • Response Time (Low)
  • Throughput Rate (High)
  • Space Utilization (Low)
28
Q

What are ACID properties?

A

Used to ensure concurrency control.

Atomicity: transactions are either executed in their entirety or not at all.

Consistency: assures that a transaction brings the database from one consistent state to another.

Isolation: Ensures that the effects of concurrent transactions are the same as if they were executed in isolation.

Durability: Ensures that the database changes declared successful can be made permanent under all circumstances.