Databases Flashcards
RDS runs on VMs
T or F
T
RDS is serverless
T or F
F
it is not serverless
aurora serverless is serverless
T or F
T
read replicas are used for scaling, not DR
T or F
T
must have auto backups turned on in order to deploy a read replica
T or F
T
You can have up to ___ read replica copies of any DB
5
you can have read replicas of read replicas
T or F
T, but watch out for latency
read replica facts:
each read replica will have its own DNS end point
you can have read replicas that have multi AZ
you can create read replicas of multi az source databases
read replicas can be promoted to be their own DB. THis breaks replication
you can have a read replica in a second region
yes
2 types of backups for rds
automated backups
database backups
yes
read replica facts
multi az
used to increase performance
must have backups turned on
can be in different regions
can be mysql, postgres, mariadb, oracle, aurora
can be promoted to master, this will break the read replica
yes
multi az tips
used for DR
you can force a failover from one az to another by rebooting the instance.
yes
This DB service is:
stored on ssd storage
spread across 3 geographically distinct data centers
eventual consistent reads (default)
strongly consistent reads
what is dynamo DB?
consistency across all copies of data is usually reached within a second with this type of read. reoeating a read after a short time should return the updated data. (best read performance)
eventual consistent reads
A ____ consistent read returns a result that reflects all writes that received a successful response prior to the read
strongly
This is a fully managed, highly available, in memory cache for dynamo DB
10x performance improvement
reduces request time from milliseconds to microseconds - even under load
no need for developers to manage cache
compatible with dynamo db api calls
dynamo db accelerator (DAX)
dynamo db transactions notes:
multiple all or nothing operations
financial transactions
fulfilling orders
two underlying reads or writes - prepare/commit
up to 25 items or 4 mb of data
yes
this type of dynamo db capacity provides:
pay per request pricing
balance cost and performance
no minimum capacity
no charge for read/write - only storage and backups
pay more per request than with provisioned capacity
new product launches
on-demand capacity
dynamo db on demand backup and restore notes:
full backups at any time
zero impact on table performance or availability
consistent within seconds and retained until deleted
operates withing same region as source code
yes
dynamo db point in time recovery notes:
protects against accidental ______ or deletes
restore to any point in the last ____ days
_____ backups
not enabled by default
latest restorable: ____ minutes in the past
writes
35
incremental
five
dynamo db ___ are time ordered sequence of item lvel changes in a table
they are stored for 24 hours
inserts, updates, and deletes
combine with lambda functions for functionality like stored procedures
streams
dynamo db global tables notes
managed multi master, multi region replication
globally distributed apps
based on dynamo db streams
multi region redundancy for dr or ha
no app rewrites
replication latency under one second
yes
DMS =
database migration service
dynamo db security
encyption at rest using ___
site to site ___
direct ____
IAM policies and ____
___ grained access
CW and CT
VPC endpoints
KMS
vpn
connect
roles
fine
____ is a fast and powerful, fully managed, petabyte scale data warehouse service in the cloud. Customers can start small for just .25 per hour with no commitments or upfront costs and scale toa. apetabyte or more for 1,000 per TB per year, less than a tenth of most other data warehousing solutions
redshift