ACID, Catching, CDN, DS Flashcards

1
Q

What does ACID stands for and what does it mean?

A

A: Atomicity. Either the entire transaccion success or fails.
C: Consistency. All db rules are enforced or rollback.
I: Isolation: No transaction is affected by other in progress.
D: Durability. Once commited, it stays, even if the system crashes after.

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

Cap Theorem

A

A db can only enforce two of:
Consistency
Availability
Partition-Tolerance

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

What is a Data Lake, how do you scheme and query it?

A

Approach for big ammount of unstructured data. Thrown as text files (csv, json) into ex. Amazon S3.
Schemed by Amazon Glue, queried by Amazon Athena

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

How does catching work?

A

Horizontally Scalled Servers
In memory (fast)
Apps with more reads than writes
Writes invalidate catching
Expiration policy
Hotspots and Cold-start is a problem

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

Eviction policies for cache

A

LRU: Least Recently Used (Double Linked List)
LFU: Least Frequently used
FIFO: First in first out

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

Catching Technologies

A

Memcached: In memory key/value store. Open source.
Redis: More features, snapshots, replication, transactions, pb/sub, advanced data structures.
ElasticCache AWS.

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

How does CDN Work?

A

Geographically distributed edge locations.
Distributed Static Content
AWS CloudFront, Akamai

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

Mention Resilency strategies

A

Replicate data as a backup
Load Balancers with Geolocation
Distributed content across AZ and regions
Over provide

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

What are Distributed Storage Solutions?

A

Services for scalable, available and secure fast object storage. S3.

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

How does HDFS (Haddop distributed file system) work?

A

Files are broken up into “blocks” replicated across your server. Replication is rack-aware.
A “name node” or master coordinate operations, it has backups.
Clients read from nearest replica.

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