Database Flashcards
RDS Features
- Hardware, OS, and database software deployment and maintenance
- Built-in monitoring
- Data encryption at rest and in transit
4.Industry compliance Automatic Multi-AZ data replication - Compute and storage scaling
- Minimal application downtime
RDS DB Engines?
Amazon Aurora
*
PostgreSQL
*
MySQL
*
MariaDB
*
Oracle Database
*
SQL Server
Amazon RDS Multi-AZ deployments
Amazon RDS synchronously replicates the data to a standby instance in a different Availability Zone.
Not used for read only
Read replicas
create read replicas of your database kept in sync with the primary DB instance.
Read replica DB engines
Read replicas are available in Amazon RDS for Aurora, MySQL, MariaDB,
PostgreSQL, Oracle, and Microsoft SQL Server.
Read replica use cases
*
Relieve pressure on your primary node with additional read capacity.
*
Bring data close to your applications in different AWS Regions.
*
Promote a read replica to a standalone instance as a disaster recovery (DR) solution if the primary DB instance fails.
With Amazon RDS for MySQL and MariaDB, you can also set the read replica as Multi-AZ, and as
a DR target.
RDS Data Encryption at Rest
RDS provides encryption of data at rest by using the AWS Key Management Service (AWS KMS)
Amazon Aurora
Amazon Aurora is an enterprise
-class relational database. It is compatible with MySQL and PostgreSQL . It is faster than standard MySQL databases and PostgreSQL databases.
Aurora helps to reduce your database costs by reducing unnecessary I/O
operations,
Consider Aurora if your
workloads require high availability. It replicates six copies of your data across three Availability Zones and
continuously backs up your data to Amazon Simple Storage Service (Amazon S3).
Amazon Aurora DB cluster
Amazon Aurora DB cluster consists of one or more DB instances and a cluster volume that manages the data for those DB instances.
Aurora cluster volume is a virtual database storage volume that spans multiple Availability Zones. Each
Availability Zone has a copy of the DB cluster data.
Aurora offers two instance types?
*Primary instance
–
Supports read and write operations and performs all the data modifications to the cluster
volume. Each Aurora DB cluster has one primary instance.
*Aurora replica
–
Supports read operations only. Each Aurora DB cluster can have up to 15 Aurora replicas in
addition to the primary instance. Multiple Aurora replicas distribute the read workload. You can increase
availability by locating Aurora replicas in separate Availability Zones. You can have a read replica in the same
Region as the primary instance.
Aurora Serverless v2
Aurora Serverless v2 is an on-
demand, auto scaling configuration for Amazon Aurora. Aurora Serverless v2 helps
to automate the processes of monitoring the workload and adjusting the capacity for your databases based on demand
DynamoDB
What do you pay for?
a fully managed NoSQL database service. The service manages the complexity of running
a scalable, distributed NoSQL database
pay for the storage that you are consuming and the I/O throughput that you have provisioned
DynamoDB Structure
Structured in key value pairs
Partitions data by key
Table has partition key and name
Each table consist of items (row - uniquely id by primary key), attributes (columns or key/value)
DynamoDB Features
DynamoDB supports end-to-end encryption and fine-grained access control.
Concurrent read-writes
DynamoDB replicates table data across three Availability Zones in a Region
Eventually consistent across all storage locations (~1 sec) by default but you can request strong consistent read
DynamoDB capacity configuration
provision capacity based the storage and throughput requirements
If you choose auto scaling, additional capacity is provisioned when the required I/O throughput increases,
within limits that you set.
The on-demand choice permits an application to seamlessly grow to support users concurrent requests to the database