AAWWSS Flashcards
With a managed service database, you use the AWS Management Console or AWS Command Line Interface (ACI) to provision a database. What are the 3 different managed database services provided by AWS. What are the two models a database
- Relational database service (RDS) - Relational
- DynamoDB
- Redshift
Part #2
Relational database
Nonrelational database
Designed for structured data that contains a defined number of attributes per record. Allows you to perform complex queries against a variety of dimensions, making them ideal for reporting and analytics.
columns are called attributes
row are called records
Relational Database
Designed for data that doesn’t follow a predictable structure. Each item must have a primary key and you can query based on that key.
NonRelational Database
Structured Query Language (SQL)
- Used in Relational Databases
- Used to create databases & tables & read and write data. Perform tuning & maintenance tasks.
- 2 SQL Statements to know:
- SELECT Statement: Read & Control data. An application that uses a relational database will execute at least 1 SELECT statement every time data is retrieved.
- INSERT Statement: Writes data to a table. When an application writes data to a database, it uses the INSERT statement.
Provide a fast alternative for applications that need to perform tens of thousand of reads and writes per sec. Can handle high transactions and store data that is not well defined. Because of unstructured nature, these databases are said to be schemaless. The only thing you have to define in advance is a primary key to uniquely identify each item. Types of queries you can run however are limited. Query items based on primary key. This type of database is best suited for applications that need to perform just a few well defined queries.
Tables are called Collections
Rows or Records are called an Item
Nonrelational (No-SQL) Databases
Managed relational database service. Let’s you provision a number of RDBMSs including Microsoft SQL Server, Oracle, MySQL and PostgreSQL. Their compute instances are connected to a virtual private cloud (VPC).
Relational Database Services (RDS)
Like EC2 instances, RDS instances use this for storage
Elastic Block Services (EBS) Volumes
To create an RDS instance, you must choose a database engine that will be installed on your instance. You can only have 1 database engine per instance. RDS supports the following 6 database engines
- MySQL
- MariaDB
- Oracle
- PostgreSQL
- Microsoft SQL Server
- Amazon Aurora
—All these database engines are open source or commercially available. However, Amazon Aurora is a proprietary database designed for RDS
Depending on the database engine that you choose, you must choose one of two licensing options
- License Included: Included in the pricing for each RDS instance.
- Bring Your Own License (BYOL): You must provide your own license to operate. This model is only currently available for Oracle.
When you deploy a RDS instance, you must choose a database instance class that defines what
the number of virtual CPUs (vCPU), the amount of memory, and the maximum network & storage throughput the instance can support.
The 3 RDS Instance Classes are
- Standard
- EBS Optimized, 2-96 vCPU and 8-384 GB memory & will need most application requirements. - Memory Optimized
- EBS Optimized, B/T 122-3,904 GB memory)- For applications with the most demanding database requirements. Offers the most disk thoroughput and network bandwidth. Last generation instance class. - Burstable Performance
- 2-8 vCPU and 1-32 GB memory.
- Used for non-production databases that have minimal performance requirements (for testing or development purposes). Have the lowest network bandwidth and disk throughput.
These RDS Instance Type classes are EBS optimized, they provide dedicated bandwidth for transfers to and from the EBS Storage
Standard and Memory Optimized
Refers to changing the way resources are allocated to a specific instance. Choose a more powerful instance type and high IOPS storage
Scaling Vertically - choose a more powerful instance type or selecting high IOPS storage.
Measures how fast you can read and write to a volume
Input/Output Operations Per Second (IOPS)
RDS Offers 3 Types of Storage
- General -Purpose SSD
- Provisioned IOPS SSD
- Magnetic
The number of IOPS per volume depends on how much storage you allocate. 20 GB to 32 TB. Can achieve a higher number of IOPS through a process called Bursting. During spikes of heavy read or write activity, bursting will kick in automatically and give your volume an added performance boost. Uses EBS
General-Purpose SSD (RDS Storage Type)
Allows you to specify the exact number of IOPS that you want to allocate per volume. Call allocate up to 32 TB. Does not offer Bursting. Uses EBS
Provisioned IOPS SSD (RDS Storage Type)
Available for backward compatibility with legacy RDS instances. Doesn’t use EBS…You can’t change the size of a magnetic volume after you create it. Limited to 4 TB n size.
Magnetic (RDS Storage Type)