SkillSprout
Chapter 5 · Lesson 5
Beginner
5 min read

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 shapeServiceWhy
Relational, transactionsRDS, AuroraSQL, joins, ACID
Key-value at massive scaleDynamoDBSingle-digit ms, serverless
In-memory primary databaseMemoryDB for RedisMicrosecond reads with Multi-AZ durability
Cache in front of a databaseElastiCacheOffload reads, reduce latency
Highly connected relationshipsNeptuneGraph queries (Gremlin, openCypher, SPARQL)
JSON documents, MongoDB appsDocumentDBMongoDB compatibility
Wide-column, Cassandra appsKeyspacesServerless Cassandra
Time-series (IoT, metrics)TimestreamBuilt-in time functions and retention tiers
Data warehouse analyticsRedshiftColumnar, petabyte-scale SQL

MemoryDB versus ElastiCache

FeatureElastiCacheMemoryDB
RoleCachePrimary database
DurabilityOptional, not designed as system of recordMulti-AZ transaction log, durable
EnginesRedis OSS, Valkey, MemcachedRedis-compatible
Typical useSession cache, leaderboardsUltra-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

ToolPurpose
AWS DMSMoves data from source to target; supports one-time full load plus change data capture (CDC)
AWS SCTConverts schema, stored procedures and application SQL when engines differ
Snow FamilyFor very large offline data transfers
Native toolspg_dump, mysqldump for simple cases
bash
aws dms create-replication-instance \
  --replication-instance-identifier migrate-01 \
  --replication-instance-class dms.t3.medium \
  --allocated-storage 50

Migration flow

StepAction
1Assess with SCT: how much of the schema converts automatically
2Convert schema and code with SCT; fix manual items
3Create the target database (for example Aurora PostgreSQL)
4Run DMS for full load, then CDC to keep systems in sync
5Cut 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

ConsiderationEC2-hostedManaged service
ControlFullLimited
EffortHigh (patching, backups, HA)Low
Typical choiceUnsupported engines, special pluginsDefault recommendation

Quick matching

ScenarioAnswer
Move Oracle to PostgreSQL on AuroraSCT then DMS
Keep MySQL on-premises in sync with RDS during migrationDMS with CDC
Social network with friend recommendationsNeptune
Redis-compatible durable databaseMemoryDB
Existing MongoDB applicationDocumentDB

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

Heterogeneous database migration
Architecture
Source databaseOracle
AWS SCTschema
AWS DMS
Aurora PostgreSQL
  1. 1Assess the source database with SCT.
  2. 2Convert the schema and code to the target engine.
  3. 3Create the target database in AWS.
  4. 4DMS performs a full load and ongoing replication.
  5. 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