IS 420 Final

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

51 Terms

1
New cards

storage hierarchy

  1. primary

  2. secondary

  3. tertiary

2
New cards

primary storage

fastest media but volatile

cache, main memory

3
New cards

secondary storage (on-line storage)

nonvolatile, moderately fast access time

flash memory, magnetic disks

4
New cards

tertiary storage (off-line storage)

nonvolatile, slow access time

magnetic tape, optical storage

5
New cards

structure of a magnetic hard disk mechanism

  1. track

  2. sector

  3. cylinder

  4. spindle

  5. platter

  6. arm

  7. read-write head

6
New cards

track

circular path on the surface of the platter where data is stored magnetically

16k per platter

7
New cards

sector

smallest unit of data that can be read or written

512 bytes

8
New cards

cylinder

a cylindrical intersection through the stack of platters in a disk, centered around the disk's spindle

9
New cards

access time

the time it takes from start of a read or write request to when data transfer begins.

10
New cards

what does the access time consist of

  1. seek time

  2. rotational latency

11
New cards

seek time

time to position the arm over the correct track

12
New cards

rotational latency

time it takes for the sector to be accessed to appear under the head

13
New cards

solid state drives (SSD)

based on flash memory

contains a controller as a bridge between the OS and the NAND block storage

14
New cards

SSD architecture

  1. interface

  2. controller

  3. buffer/cache

  4. flash memory components

15
New cards

SSD interface

Electrical IF between processor and SSD (commonly SATA, IDE)

16
New cards

SSD controller

used for error correction, wear leveling, bad block mapping, and encryption

17
New cards

SSD buffer/cache

high speed RAM

18
New cards

SSD flash memory components

NAND or NOR technology (2GB-64GB)

19
New cards

SSD vs magnetic disk

  • SSD has no moving parts (arm of magnetic disk)

  • SSD has a faster boot and access time (flash memory vs rotation)

  • SSD has faster data transfer rate

  • SSD is more costly

  • SSD not as reliable when faced with power failure

20
New cards

how many primary indexes can a table have

1

21
New cards

how many secondary indexes can a table have

many

22
New cards

when is it suggested to create an index

after adding data

23
New cards

is an index a table

no, it references data in a table

24
New cards

database index

brings relevant records

  1. first query brings all records from disk

  2. second query doesn’t need to bring all

25
New cards

composite index

multiple sorted columns for queries containing multiple search conditions

26
New cards

triggers

specification of database event associated with a database table

27
New cards

what can triggers NOT accept

input parameters, commit or rollback statements

28
New cards

trigger timing

before/after event

29
New cards

trigger levels

scope affected by the trigger

for each row/statement

30
New cards

trigger event

statement that causes trigger to execute (fire)

UPDATE, INSERT, DELETE

31
New cards

BEFORE trigger

action first, event second

32
New cards

AFTER trigger

event first, action second

33
New cards

NEW trigger

rowtype variable that stores values after the modification

34
New cards

OLD trigger

rowtype variable that stores values before the modification

35
New cards

motivation for NoSQL

  • scalability

  • flexibility

  • availability

  • cost control

36
New cards

how to maintain data availability in NoSQL environments

use primary and backup servers

2-phase commit for updates

37
New cards

eventual consistency

2 DB servers temporarily do not have the same value (inconsistent) but eventually become consistent

38
New cards

what does CAP in CAP theorem stand for

  • consistency

  • availability

  • partition tolerance

39
New cards

CAP theorem

distributed databases can’t have CAP all at the same time

no more than 2 at a time

40
New cards

consistency

consistent copies of data on different servers

41
New cards

availability

response to any query

42
New cards

partition tolerance

system can still operate correctly even if there is an inability to send messages between servers

43
New cards

4 types of NoSQL DBs

  1. key value

  2. document

  3. column

  4. graph

44
New cards

relational vs column DBs

  • column DB don’t have tables; object info in one long row

  • column DB rows have no fixed structure

  • there are no joins in column DB

45
New cards

which was the first column family DB

Google BigTable (2006)

46
New cards

gossip protocol

allows for quick exchange of information

47
New cards

information entropy

the actual amount of information stored in this variable

sum of information of all particular states

48
New cards

anti entropy

process to determine differences in replicas

detect and resolve inconsistencies w a min amount of data exhange

49
New cards

what is indexing used for

allow for a rapid lookup of data in
table

50
New cards

namespace

they help avoid naming conflicts and make it easier to manage objects

51
New cards

quorum

the number of servers that must respond to a read or write operation, for the operation to be considered complete