Databases Flashcards
What are the relational database aws rds offers?
Sql server Oracle dB Maria dB MySQL server PostgreSQL Aurora
What are the two key features of rds?
MultiAZ - for disaster recovery
Read Replicas - for performance
no sql databases consist of three main concepts, these are..
Collection - the table
Document - the row
Key value pairs - the fields
What does OLTP and OLAP mean?
OLTP - Online transaction processing, which is data like a customers address, an order or a delivery address being queried for use.
OLAP - Online analytics processing, running complex reports across multiple data sources to produce reports etc.
As well as read replicas, what other service can you use to increase the performance of your rds instance?
Introducing elasticache as a layer to stop the database being queried for data that rarely changes.
What two engines does elasticache support?
Memcached
Redis
When we talk about OLTP and OLAP, what services in aws would we use to serve these scenarios?
Rds for OLTP
Red shift for OLAP
What are the key points when considering rds as a choice of service for a solution?
- Rds runs on virtual machines.
- You cannot log in to these operating systems.
- Patching of the rds operating system and dB is amazons responsibility.
- Rds is not serverless with exception to ‘aurora serverless’.
Out of the six relational database options, which ones are available for traditional multi az?
Sql server Oracle MySQL server Postgre sql MariaDB
Out of the db options you have for rds, which ones are available for read replicas?
MsSql server MySQL server Postgre sql MariaDB Oracle Aurora
What are the restrictions or requirements for read replicas to be available for your rds instance?
You must have automatic backups turned on.
You can only have up to 5 read replicas copies of any database.
You can have read replicas of read replicas, however this can cause some latency.
What are the two types of back ups in rds?
Automated backups
Database snapshots
Read replicas can be promoted to master dbs but this will?
Break the replication
Encryption for rds is supported for…..and it is achieved using the aws ……service.
All six engines
Key management service or kms
Once your rds instance is encrypted the data stored at rest in the underlying storage is…
Encrypted, as are its automated backups , read replicas and snapshots.
What is the name of the aws no sql service?
DynamoDB
When talking about dynamoDB, what are the basics?
- Stored on ssd sotrage.
- Spread across 3 geographically distinct data centres.
- Supports eventual consistent reads by default, this is good when you know a read will not occur for the same write within a second.
- Support strongly consistent reads, this is good for when you know a read for the same write will occur within under a second.
Advanced dynamo dB
DynamoDB accelerator or DAX, what are the facts about this?
- fully managed, highly available in memory cache.
- 10x performance improvement
- reduces request times from milliseconds to microseconds.
- no need for developers to manage caching logic.
- compatible with DynamoDB API calls.
Advanced DynamoDB
Transactions, what are the facts about these?
- they are multiple “all or nothing” operations.
- useful for financial transactions or fulfilling orders.
- they cost two underlying reads or writes - prepare/commit.
Advanced DynamoDB
Pricing- on demand capacity, what are the facts?
- pay per request pricing.
- balance of cost and performance.
- no minimum capacity.
- no charge read/write, only storage and backups.
- pay more request - than with provisioned capacity.
- useful for new product launches,when you have no prediction of usage.
Advanced DynamoDB- Backup and restored
Point in time recovery (Pitr)
What are the facts?
- protects against accidental writes or deletes.
- restore to any point in the last 35 days.
- incremental backups.
- not encrypted by default.
- latest restorable: five minutes in the past.
Advanced DynamoDB
Streams, what are the facts?
- they are a time ordered sequence of time level changes in a table.
- stored for 24 hours.
- supports inserts, updates and deletes.
- combined with lambda functions for functionality like stored procedures.
Advanced DynamoDB
Global tables, what are the facts?
- good for globally distributed applications.
- based on DynamoDB streams.
- multi region redundancy for DR or HA.
- no application rewrites.
- replication latency under one second.
When talking about redshift, what are two key points to remember?
- it is used for business intelligence
- available in 1 Availability zone
Redshift backups, what are the four main facts?
- enabled by default with a 1 retention period.
- maximum retention period is 35 days.
- redshift always attempts to maintain at least three copies of your data, the original and replica on the compute nodes and a backup in Amazon s3.
- redshift can also asynchronously replicate your snapshots to s3 in another region for disaster recovery.
When talking about elasticache what are three important facts about its purpose and redis?
- used to increase database and web application performance.
- redis is multi az.
- you can do back ups and restores of redis.