Mobile App Quiz 4 Flashcards

1
Q

two main approaches to database

A
  1. RDBMS or SQL

2. noSQL

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

what does RDBMS stand for

A

relational database management system

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

give 3 examples of RDBMS/SQL

A

Oracle, MySQL, Microsoft SQL Server

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

SQL originated in the

A

1970s

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

SQL stores data according to

A

a schema

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

a schema allows data to be

A

displayed as tables with rows and columns

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

SQL stands for

A

Structured Query Language

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

SQL is

A

a collection of tables each with a schema that represent fixed attributes and data types that the items in the table will have

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

general functionality of SQL

A

CRUD (create, read, update, delete) which is all done by writing a query

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

what is a query

A

a statement saying what you want to do

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

tables in a relational database have keys used to

A

identify specific columns or rows of a table to facilitate a particular table, row, or column of interest

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

pros of SQL

A

well-documented, standards are well-defined and commonly accepted (know how to use one, can use all), work really well with structured data, ACID-compliant, limitless indexing

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

ACID stands for

A

Atomicity, Consistency, Isolation, Durability

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

what does atomicity refer to

A

no partial updates, all or nothing

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

cons of SQL

A

doesn’t work well with unstructured data, to migrate from one database to another, both schemas/structures must match, data is normalized (remove repetitive fields and put in new table), does not scale horizontally very well

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

noSQL stands for

A

not only SQL

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

noSQL is

A

nonrelational

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

key-value stores

A

simple database that only stores key-value pairs; has basic functionality for retrieving the value associated with a known key

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

examples of key-value stores

A

REDDIS, Amazon Dinamo DB

20
Q

problem with key-value stores

A

collisions

21
Q

wide column stores examples

A

Cassandra, Scylla, HBase

22
Q

wide column stores are

A

schema agnostic; store data in column families or tables with a single row thought of as a record; multi-dimensional key-value store

23
Q

wide column stores scales well enough to

A

manage pedabytes of data across as many as 1000 servers (good for big data)

24
Q

wide column stores are based on

A

CQL, an SQL variant, for data definition and manipulation

25
examples of document stores
MongoDB, couch-based
26
documents stores
schema-free, save data in form of JSON documents, can contain many different value types
27
document stores are similar to key-value or wide-column except
the document name is the key and the content is the value
28
documents stores: individual records (do/do not) require uniform structure
do not
29
document stores are well-suited to manage
semi-structured data across distributed systems
30
graph DBs example
NEO4J
31
graph DBs are good for
data visualization, graph analytics
32
graph DBs are
a network of system nodes or objects
33
search engine DB examples
Splunk, Solr
34
search engine DBs are
schema-free JSON documents similar to document stores, but with greater emphasis on making data easily accessible via text-base searches with Strings of varying complexity
35
pros of noSQL
schema free, more flexible, easier to administer; more horizontally scalable and fault tolerant; data can be easily distributed across different nodes; less strict JSON docs
36
cons of noSQL
newer, less widely adopted, specific expertise often required, range of formats and constraints specific to each type
37
Firebase is specifically geared for
apps
38
Firebase is an example of
noSQL
39
Firebase provides
authentication, cloud storage
40
ways to store data
native (on phone), local and session browser storage, SQLite
41
PWA stores data using
local and session browser storage (up to 5 MB)
42
local and session browser storage
not highly regarded, only use if app still knows user is logged in between pages, Ionic doesn't usually utilize (session storage good though)
43
Ionic uses ? for storage
SQLite
44
SQLite is
an embedded SQL database that can run on a mobile device also used by native apps
45
SQLite does not
need to run on the server and does not require configuration
46
one drawback of SQLite
may use too much storage on a phone
47
pros of SQLite
persistent data storage, no size limitation on data stored, provides SQL syntax