Specialised Databases, SCT and Database Migration
Overview
Beyond RDS, Aurora and DynamoDB, AWS offers purpose-built databases designed for specific shapes of data, plus tools to move databases into AWS. The exam (Task 3.4) expects you to match a data scenario to the right engine and know the two migration helpers: DMS and SCT.
Think of kitchen tools. A general-purpose knife (RDS) handles most jobs, but a bread knife, a peeler and a mandoline each do one job brilliantly. Likewise, a graph database is best for relationships, an in-memory database for speed and a time-series database for sensor readings. Migration tools are the moving crew (DMS) and the translator who rewrites your recipes into a new language (SCT).
Key Concepts
- Amazon MemoryDB for Redis is a durable, in-memory, Redis-compatible database for microsecond reads and single-digit-millisecond writes.
- Amazon ElastiCache is an in-memory cache (Redis or Memcached) placed in front of a database; MemoryDB is itself a primary database.
- Amazon Neptune is a managed graph database for highly connected data such as social networks and fraud detection.
- Amazon DocumentDB is MongoDB-compatible; Amazon Keyspaces is Cassandra-compatible; Amazon Timestream stores time-series data.
- AWS DMS (Database Migration Service) migrates databases with minimal downtime and supports ongoing replication.
- AWS Schema Conversion Tool (SCT) converts a database schema and code to a different engine (heterogeneous migration), for example Oracle to PostgreSQL.
- Homogeneous migrations keep the same engine (MySQL to RDS MySQL); heterogeneous change engines.
- Managed databases remove patching and backup effort compared with databases hosted on EC2.
Detailed Notes
Choosing a purpose-built database
| Data shape | Service | Why |
|---|---|---|
| Relational, transactions | RDS, Aurora | SQL, joins, ACID |
| Key-value at massive scale | DynamoDB | Single-digit ms, serverless |
| In-memory primary database | MemoryDB for Redis | Microsecond reads with Multi-AZ durability |
| Cache in front of a database | ElastiCache | Offload reads, reduce latency |
| Highly connected relationships | Neptune | Graph queries (Gremlin, openCypher, SPARQL) |
| JSON documents, MongoDB apps | DocumentDB | MongoDB compatibility |
| Wide-column, Cassandra apps | Keyspaces | Serverless Cassandra |
| Time-series (IoT, metrics) | Timestream | Built-in time functions and retention tiers |
| Data warehouse analytics | Redshift | Columnar, petabyte-scale SQL |
MemoryDB versus ElastiCache
| Feature | ElastiCache | MemoryDB |
|---|---|---|
| Role | Cache | Primary database |
| Durability | Optional, not designed as system of record | Multi-AZ transaction log, durable |
| Engines | Redis OSS, Valkey, Memcached | Redis-compatible |
| Typical use | Session cache, leaderboards | Ultra-fast primary store for microservices |
Neptune use cases
Graph databases store nodes and edges, so queries such as "friends of friends who bought this product" run efficiently without many table joins. Typical uses: recommendation engines, fraud rings, knowledge graphs and network security.
Database migration
| Tool | Purpose |
|---|---|
| AWS DMS | Moves data from source to target; supports one-time full load plus change data capture (CDC) |
| AWS SCT | Converts schema, stored procedures and application SQL when engines differ |
| Snow Family | For very large offline data transfers |
| Native tools | pg_dump, mysqldump for simple cases |
aws dms create-replication-instance \
--replication-instance-identifier migrate-01 \
--replication-instance-class dms.t3.medium \
--allocated-storage 50
Migration flow
| Step | Action |
|---|---|
| 1 | Assess with SCT: how much of the schema converts automatically |
| 2 | Convert schema and code with SCT; fix manual items |
| 3 | Create the target database (for example Aurora PostgreSQL) |
| 4 | Run DMS for full load, then CDC to keep systems in sync |
| 5 | Cut over by pointing the application to the new database |
DMS works for homogeneous moves without SCT. It also supports migrating to S3, Redshift and DynamoDB.
Self-managed on EC2 versus managed
| Consideration | EC2-hosted | Managed service |
|---|---|---|
| Control | Full | Limited |
| Effort | High (patching, backups, HA) | Low |
| Typical choice | Unsupported engines, special plugins | Default recommendation |
Quick matching
| Scenario | Answer |
|---|---|
| Move Oracle to PostgreSQL on Aurora | SCT then DMS |
| Keep MySQL on-premises in sync with RDS during migration | DMS with CDC |
| Social network with friend recommendations | Neptune |
| Redis-compatible durable database | MemoryDB |
| Existing MongoDB application | DocumentDB |
Real World Example
A bank modernises an Oracle database. SCT reports that 92% of the schema converts automatically to Aurora PostgreSQL, and engineers fix the rest by hand. DMS runs a full load plus continuous replication, so the cut-over takes minutes.
A fraud team stores account relationships in Neptune to spot rings of linked accounts, while the mobile app's session and rate-limit data live in MemoryDB for microsecond response.
Architecture Diagram
- 1Assess the source database with SCT.
- 2Convert the schema and code to the target engine.
- 3Create the target database in AWS.
- 4DMS performs a full load and ongoing replication.
- 5Cut over the application to the new database.
Best Practices
- ✓Pick the purpose-built database that fits the data shape.
- ✓Use DMS with CDC for near-zero-downtime migrations.
- ✓Run SCT assessment reports early to estimate effort.
- ✓Do not use ElastiCache as a system of record; use MemoryDB if you need durability.
- ✓Prefer managed databases to reduce operations effort.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Graph database" = Neptune; "MongoDB compatible" = DocumentDB.
- "Durable in-memory Redis database" = MemoryDB.
- "Convert schema to a different engine" = SCT; "migrate data" = DMS.
- Managed databases reduce operational effort versus EC2-hosted databases.
Finished this lesson?
0 of 43 lessons done · 0% of the course

