Midterm Flashcards

1
Q

Disk Capacity

A

Hard Drive Size

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

Access Time

A

Time from request to start of data transfer

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

Seek Time

A

Time for arm to reach track

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

Rotational Latency

A

Time for sector to appear under head

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

Transfer Time

A

Time to transfer data to memory

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

Disk arm scheduling algorithm purpose

A

Minimizes arm movement

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

Buffering purpose

A

Temporary storage for satisfying future requests

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

Mean Time to Data Loss dependencies

A

MTTF and MTTR (repair)

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

Cylinder

A

Track for all the platters in a disk. 10 tracks, 10 cylinders. Cylinder i contains ith track of all platters

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

Disk Controller

A

Interfaces between software and hardware

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

Block

A

Contiguous sequence of sectors from a single track. Smaller blocks result in more transfers, larger blocks result in wasted space.

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

RAID 0

A

Block striping, non-redundant. Good for high performance where data loss is acceptable.

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

RAID 1

A

Block striping with mirroring. Good for write-heavy applications, ex. logging.

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

RAID 3

A

Bit interleaved parity. Using a parity bit disk. Data can be recovered using XOR. Good for data transfer, not ideal for I/O. Not used often since single block reads need to access all disks.

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

RAID 4

A

Block interleaved parity. Block level striping. Keeps parity on a separate disk. Better I/O than RAID 3, but typically 5 is used over 4.

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

RAID 5

A

Block interleaved distributed parity. Partitions data and parity among all N+1 disks. Good for low update rates with large amounts of data.

17
Q

RAID 6

A

P + Q Redundancy. Similar to 5 but with redundant information to protect against multiple disk failures. Growing in popularity.

18
Q

Default SQL Deletion Strategy if referenced elsewhere

A

Rejection

19
Q

Cascade Delete

A

Delete from tables where appears

20
Q

5 + Null =

A

Null

21
Q

Null or True

A

True

22
Q

Null or False

A

Null

23
Q

Null or Null

A

Null

24
Q

True and Null

A

Null

25
Q

False and Null

A

False

26
Q

Null and Null

A

Null

27
Q

Not Null

A

Null

28
Q

Aggregate functions

A

sum, average, min, max, count

29
Q

DDL

A

Data Definition Language. Schema and ICs

30
Q

DML

A

Data Manipulation Language. Query, insert, delete, updateas

31
Q

What is a good tradeoff between dense and sparse indexes?

A

Sparse index with an entry at each block. Searching the block is trivial.

32
Q

Primary index

A

Specified sequential order of file. Usually the primary key.

33
Q

Secondary Index

A

Search key is different from sequential order. Must be dense

34
Q

Multilevel index

A

Treat primary index as a sequential file and construct a sparse index on it

35
Q

Index Deletion

A

Dense - Similar to record deletion. Sparse - If search key is in index, replace with next in order if not already associated with a search key. Else delete the index entry.