11 Physical Representation: Storage and File Structure Flashcards

(37 cards)

1
Q

How is physical storage media classified?

A

By speed, costs, reliability, and volatility

Classification criteria for physical storage media

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

What does reliability in storage refer to?

A

Trustworthiness to save data during crashes and failures

Reliability is not the same as volatility

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

What is the difference between volatile and non-volatile storage?

A

Volatile storage loses contents when power is off; non-volatile persists

Examples of volatile storage include cache and RAM; examples of non-volatile include flash memory and magnetic disks

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

What are the components of physical storage media?

A

Cache, main memory, flash memory, magnetic disk

Each component has distinct characteristics and uses

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

What is cache in terms of storage?

A

Smallest and fastest form of storage (< 10ns), volatile, low reliability, expensive

Used to temporarily store data that the CPU needs immediately

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

How does main memory (RAM) compare to cache?

A

Larger, slower, volatile, expensive, and unreliable

RAM stores data and programs currently being used

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

What are the characteristics of flash memory?

A

Non-volatile, faster than magnetic disks, slower than RAM, medium costs, reliable

Used in SSDs, USB drives, and devices like phones and cameras

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

What is a magnetic disk?

A

Non-volatile, slow, cheapest form of storage, reliable

Examples include Hard Disk Drives (HDDs) used in gaming consoles

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

Fill in the blank: Cache is the ________ and ________ form of storage.

A

smallest, fastest

Cache is located inside the CPU or very close to it

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

True or False: Flash memory is slower than RAM when reading.

A

False

Flash memory reads equally fast to RAM but is slower on writes/erases

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

What is the access speed range for main memory (RAM)?

A

10 ns to 100 ns

RAM is faster than magnetic disks but slower than cache

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

What is the primary disadvantage of magnetic disks?

A

More prone to physical damage due to moving parts

Long use or physical shock can disturb magnetic disks

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

What are disc heads?

A

Tiny arms that read and write data on the disk, hovering just above the surface.

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

What is a platter in a magnetic disk?

A

A round flat disk inside the hard drive that spins and stores data, with two surfaces for storage.

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

Define track and cylinder in the context of a magnetic disk.

A

A track is a circular path on the surface of a platter; a cylinder is a group of tracks that line up vertically across all platters.

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

What is a sector in a magnetic disk?

A

The smallest physical storage unit on the disk, each track is divided into sectors.

17
Q

What is a block in the context of data storage?

A

A unit of data that the system reads/writes at once, made up of one or more sectors.

18
Q

True or False: Discs are faster than RAM.

19
Q

What are the components of total time (T_Access) to read N bytes?

A
  • T_Seek
  • T_Rotational
  • T_Transfer
20
Q

How is T_Transfer calculated?

A

T_Transfer = N / DTR

21
Q

What is RAID?

A

A technique that uses multiple disks in parallel to offer higher capacity, speed, and high reliability.

22
Q

What is redundancy in RAID?

A

A backup system used to rebuild data if a disk fails.

23
Q

What is the role of a buffer in data storage?

A

A portion of RAM used to store copies of disk blocks temporarily.

24
Q

What does a buffer manager do?

A

Allocates space in the buffer and decides which blocks to load and how to replace them.

25
Define a record in the context of a database.
An individual entry or row in a table.
26
What is a fixed-length record?
Records with a predefined number of fields and fixed value sizes.
27
What is the fastest method to delete a record in a fixed-length record file?
Move the last record to the spot of the deleted record.
28
What are variable length records?
Records where the length of data can vary based on different factors.
29
What issues do variable length records cause?
Growth and deletion challenges, as they can lead to fragmentation.
30
What is the pointer method for variable length records?
A method that connects reoccurring records using pointers to fixed-length records.
31
What is heap organization in file records?
Records can be placed anywhere in the file where there is available space.
32
What is sequential organization in file records?
Records stored in sorted order based on the value of a search key.
33
How does hashing organization work?
A hash function is applied to an attribute of each record to determine its file location.
34
What is multiple clustering organization?
Stores several relations together in one file based on their relationship.
35
What does a data dictionary store?
* Information about relations * User and accounting information * Statistical data * Physical file information * Information about indices
36
What is the tradeoff in data storage media?
Speed vs size.
37
Where is data generally stored in data storage media?
Magnetic discs.