ladderlore
  • Type a service name, like S3 or IAM.

Concept

Database types on AWS

Match the shape of your data to a relational, NoSQL or in-memory database.

  • Relational

    Your data looks like
    Tables with fixed columns, linked by keys
    Good for
    Orders, payments, accounts and business software
    On AWS
    RDSAurora
  • Key-value

    Your data looks like
    Items you fetch by a unique key
    Good for
    Shopping carts, game data and device data at huge scale
    On AWS
    DynamoDB
  • Document

    Your data looks like
    JSON-like documents with flexible fields
    Good for
    Product catalogs, user profiles and content
  • Graph

    Your data looks like
    Things and the relationships between them
    Good for
    Fraud detection, recommendations and social networks
    On AWS
    Neptune
  • In-memory

    Your data looks like
    Data held in memory instead of on disk
    Good for
    Caching, sessions and leaderboards
  • Data warehouse

    Your data looks like
    Large amounts of history from many sources
    Good for
    Reports and analytics, not day-to-day transactions
    On AWS
    Redshift
Each type of database, what its data looks like, and the AWS service for it.

1 / 3

  • Relational

    Your data looks like
    Tables with fixed columns, linked by keys
    Good for
    Orders, payments, accounts and business software
    On AWS
    RDSAurora
  • Key-value

    Your data looks like
    Items you fetch by a unique key
    Good for
    Shopping carts, game data and device data at huge scale
    On AWS
    DynamoDB

2 / 3

  • Document

    Your data looks like
    JSON-like documents with flexible fields
    Good for
    Product catalogs, user profiles and content
  • Graph

    Your data looks like
    Things and the relationships between them
    Good for
    Fraud detection, recommendations and social networks
    On AWS
    Neptune

3 / 3

  • In-memory

    Your data looks like
    Data held in memory instead of on disk
    Good for
    Caching, sessions and leaderboards
  • Data warehouse

    Your data looks like
    Large amounts of history from many sources
    Good for
    Reports and analytics, not day-to-day transactions
    On AWS
    Redshift
Each type of database, what its data looks like, and the AWS service for it.
Current database
SCT
New database on AWS
DMS
  1. 1If the engine changes, AWS SCT reads the schema and database code and converts them for the new engine. DMS Schema Conversion, part of AWS DMS, can do this job instead.
  2. 2The converted structure is created in the new database. With the same engine on both sides, you skip steps 1 and 2.
  3. 3AWS DMS reads the data, then keeps reading new changes while the current database is still in use.
  4. 4DMS writes the data into the new database. When the copy has caught up, applications switch to it.
Moving an existing database: the structure is converted only when the engine changes, and AWS DMS moves the data.

Step by step

  1. 1If the engine changes, AWS SCT reads the schema and database code and converts them for the new engine. DMS Schema Conversion, part of AWS DMS, can do this job instead.
  2. 2The converted structure is created in the new database. With the same engine on both sides, you skip steps 1 and 2.
  3. 3AWS DMS reads the data, then keeps reading new changes while the current database is still in use.
  4. 4DMS writes the data into the new database. When the copy has caught up, applications switch to it.

What it is

AWS offers purpose-built databases. Instead of one database for every job, you choose the type that fits how your data looks and how your application uses it. One application can use several types at once.

What it is

Relational databases keep data in tables with fixed columns. You read and change the data with SQL, a standard query language. Amazon Relational Database Service (Amazon RDS) and Amazon Aurora are relational. NoSQL databases, also called non-relational databases, store data in other shapes: key-value items in Amazon DynamoDB, JSON-like documents in Amazon DocumentDB, and relationships in Amazon Neptune. In-memory databases, such as Amazon ElastiCache, keep data in memory for the fastest reads.

What it is

To move an existing database to AWS, AWS Database Migration Service (AWS DMS) copies the data while the source stays in use. If the new database uses a different engine, its schema (the table structure and the code stored in the database) must be converted first. You can do this with DMS Schema Conversion, a feature of AWS DMS, or with the AWS Schema Conversion Tool (AWS SCT), an application you download.

Remember

  • Relational: tables, SQL and joins. Amazon RDS and Amazon Aurora.
  • NoSQL: key-value (DynamoDB), document (DocumentDB) and graph (Neptune).
  • In-memory: ElastiCache, for microsecond reads such as caching and leaderboards.
  • Relational databases usually scale up to a bigger server and add read replicas. NoSQL databases are designed to scale out across many servers.

Remember

  • For reports on years of data, use a data warehouse: Amazon Redshift.
  • AWS DMS moves the data. When the engine changes, AWS SCT or DMS Schema Conversion converts the schema first.

On the exam

  • “Structured data, SQL queries and joins between tables” points to a relational database: Amazon RDS or Amazon Aurora.
  • “A NoSQL key-value database” is DynamoDB. “MongoDB compatibility” is DocumentDB. “An in-memory cache” is ElastiCache. “Highly connected data” is Neptune.
  • “Migrate a database with minimal downtime” is AWS DMS. If the engine changes, the schema is converted first, with AWS SCT or DMS Schema Conversion.