Merge 2 Flashcards
(101 cards)
Where is data in DynamoDB stored?
SSD Storage
Where is DynamoDB spread?
across 3 geographically distinct data centers (not AZs)
Default consistency model for DynamoDB
Eventual Consistent Reads. Strongly consistent reads is the other
Eventual Consistent Reads
Consistency across all copies of data is usually reached within 1 second. repeating a read after a short time should return the updated data (best read performance)
Strongly Consistent Reads
returns the result that reflects all writes that received a successful response prior to the read
If low latency is important
pick Eventual consistent reads. Otherwise, pick strongly consistent reads
DynamoDB pricing
Provisioned throughput capacity, storage
How expensive is DynamoDB?
Expensive for writes, cheap for reads
Use case for DynamoDB
If DB is read-heavy, scalabilty and good performance are important, SQL is not necessary
default read and write capacity units when creating a DynamoDB table
5, 5
can you purchase reserved capacity?
Yes, 1 or 3-year terms
Item
Row
Important metrics to know
Read capacity Units, Write capacity units (both provisioned/consumed)
Is RedShift fully managed?
Yes
RedShift configuration
Single node (160 GB), multi-node
Multi node consists of
Leader node, compute node
Leader node
manages client connections and receives queries
Compute node
store data and perform queries and computations. up to 128 compute nodes
Does RedShift organize data by rows or columns?
Columns, so improved performance
Redshift is fast because
Massively Parallel processing, advanced compression
RedShift pricing
compute node hours,backup, data transfer w/in a VPC
RedShift security
encrypted in transit (SSL), encrypted at rest (AES-256), redshift takes care of key management by default
Redshift availability
1 AZ, can restore snapshots to new AZs in case of outage
Elasticache can be used for
improving application performance/latency/throughput for many read-heavy apps by storing critical pieces of data in memory for low-latency access (social networking, gaming, media sharing, Q/A portals)