chapter 5 Flashcards

(15 cards)

1
Q

Q: What is physical database design?

A

A: Physical database design translates a logical database design into a technical specification for how data will be stored and accessed on a specific database management system (DBMS).

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

Q: What are the inputs to the physical database design process?

A

Tables from logical design (normalized tables).
Business requirements (response time, throughput).
Data characteristics (volume, volatility).
Application characteristics (data usage, priorities).
Operational requirements (security, backup, recovery).

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

Q: What are the three types of data storage in databases?

A

Primary Storage: RAM and cache (fast, limited, volatile).
Secondary Storage: HDDs and SSDs (large capacity, slower).
Tertiary Storage: CDs, DVDs, magnetic tapes (archival use).

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

What is the difference between persistent data and temporary data?
A:

A

Persistent Data: Stored for long-term use, like employee records.
Temporary Data: Used temporarily during operations, like intermediate results.

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

Q: What are the types of file organization in databases?

A

Heap File (Unordered): Records stored in no specific order.
Sorted File (Sequential): Records stored in a specific order based on a key.
Hashed File: Records placed based on a hash function for quick searches.

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

Q: What is a dense index, and how is it different from a sparse index?

A

Dense Index: Every record has an entry in the index (faster but larger).
Sparse Index: Only some records have an index entry (smaller but slower).

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

Q: What is the purpose of indexing in databases?

A

A: To speed up data retrieval by creating pointers to records in a table.

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

Q: What are the common types of indexes?

A

Single-Level Indexes: Primary, Secondary, and Clustering indexes.
Multi-Level Indexes: B-Trees and B+ Trees for large datasets.

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

Q: What is the difference between clustered and non-clustered indexes?

A

Clustered Index: The table’s physical order matches the index order (one per table).
Non-Clustered Index: The table’s physical order is independent of the index (multiple possible).

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

Q: What is the purpose of query optimization?

A

A: To improve the efficiency of database queries by determining the best way to access data.

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

Q: What is a hash function in file organization?

A

A: A mathematical function that determines the location of records on a disk.

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

Q: What is the difference between primary storage and secondary storage?

A

Primary Storage: Faster, more expensive, volatile (e.g., RAM).
Secondary Storage: Slower, cheaper, non-volatile (e.g., HDDs, SSDs).

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

Q: What is a blocking factor?

A

A: The number of physical records stored per block of data.

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

Q: What are the three types of file operations?

A

Retrieval: Locate and read specific records.
Insertion: Add new records.
Deletion/Modification: Remove or update records.

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

Q: What is the difference between file organization and access method?

A

File Organization: How data is physically arranged on the disk.
Access Method: Operations used to retrieve or manipulate files.

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