Databases Flashcards
Can you remote into RDS servers?
They run in Virtual machines and user cant log into those machine
Which RDS is serverless
Aurora is serverless, everything else needs a server
How Disaster recovery is done in RDS
Disaster recovery is achieved through multi AZ replication, that is data is replicated across multiple availability zones and if the data in one AZ is lost , then AWS automatically uses the one store in other AZ
What is the use of Read replicas?
They are used to improve the performance of RDS
What are the two kinds of backups for RDS?
Automated backups and Database Snapshots.
Automated backups and done in a scheduled maintenance window automatically and Database Snapshots are done manually.
How is data Secured in AWS-RDS?
Through Encryption at Rest. Key Management service is used to encrypt the data at the server
What are the different read modes in Dynamo db
Eventual consistency Reads: If data is read 1 sec after a read, then it is guaranteed to be the latest.
Strongly consistent reads: Data read is always the latest.
What is dynamo db?
schemaless, document database stored in SSD, replicated across three regions providing very high performance.
What is Redshift?
Data warehousing in the cloud. Falls under OLAP(Online Analytics processing).
It’s available in only one AZ.
Backups are enabled by default with a one day retention period to a max of 35 days
It manages 3 copies of data, the original, replica and another one in S3, Redshift can asynchronously replicate the data in S3 to another S3 for disaster recovery
What is aurora database?
It s Amazons own proprietary database, which maintains 2 copies of data in each availability zone with minimum 3 AZ. Which means we always have 6 copies of data.
Data from My sql can also be migrated to Aurora.
Use case for Elastic cache
Used to increase database and website performance by caching data in memory.Works for simple types . its simple in that its not available in multi AZ, scales horizontally. Whereas Redis can be put on multi-AZ and backed up
How many Requests can be handled by Dynamodb?
10 trillion request per day and 20 million request per second.
When to use dynamo db?
can handle millions of concurrent requests at single milliosecond delay.
No servers to maintain and it can scale automatically.
Any application which needs to be built in internet scale and has concurrency issues will benefit from Dynamodb.
How is dynamodb charged?
Pay on demand:Pay for reads and writes as it happens, good for apps with unpredictable workloads.The database scales up and down as per demand.
Pay as provisioned: Good for applications where we know how expected load.Billings happens by the hour, whether any read or write happens during that period The number of reads and writes are specified in the begining , auto scaling groups are used to grow the tables if required.
Dynamodb also charges for the stored data and any internet associated chrfes.
How is data secured in dynamodb?
Dynamo db synchronously replicates data across three availability zones in aws