Database connections, replicas, retention, engines, and migration economics
Explain and apply how to price retention, proxies, replicas, engines, conversion, movement, and dual-run. Compare proxy/cache/replica and homogeneous/heterogeneous migration under explicit security, resilience, performance, operations, and cost constraints.
LESSON GOALS
By the end, you can
- Explain and apply how to price retention, proxies, replicas, engines, conversion, movement, and dual-run.
- Compare proxy/cache/replica and homogeneous/heterogeneous migration under explicit security, resilience, performance, operations, and cost constraints.
01
Identify Real Database Pressure
Connection count, read work, cached reads, resilience, and retention are separate problems. RDS Proxy pools supported database connections and can protect a database from client churn; it does not cache query results or add writer CPU. A read replica supplies separate read compute for queries that tolerate replication lag; it does not scale writes and should not be confused with a traditional Multi-AZ standby used for availability. A data cache stores selected results or objects and needs a correctness policy. Backups and snapshots satisfy recovery and retention rather than serving traffic. Diagnose CPU, I/O, connections, query latency, replica lag, hit ratio, and recovery objectives before buying one of these mechanisms. A Lambda connection storm with idle database CPU points toward pooling, while a reporting workload saturating read CPU may justify replicas. Repeated catalog lookups may justify caching later, but one service should not be stretched across all three symptoms. Price each recurring resource and the transfer or operational side effects it creates.
02
Separate Conversion From Movement
A homogeneous migration may preserve engine compatibility and use native tools or AWS DMS for movement. A heterogeneous migration changes engine semantics and therefore requires schema and code assessment, conversion, and remediation in addition to data transfer. AWS DMS task modes support full load and ongoing change processing for low-downtime patterns, while DMS Schema Conversion is the direct AWS capability for assessing and converting schema objects. Unsupported or imperfectly converted procedures, functions, data types, and application SQL require manual work and testing. DMS data movement alone cannot make incompatible code correct. Size the migration from source read capacity, target write capacity, network, total bytes, change rate, large objects, and CDC lag. Validate row counts and business invariants, not only task completion. Keep a rollback point and define the final write-freeze or reconciliation process. The direct task-mode and schema-conversion sources belong in the claim-bearing section because this boundary determines the answer.
03
Calculate Payback And Retention
Migration payback includes assessment, conversion labor, application changes, licenses, test environments, DMS resources, transfer, dual-run, performance tuning, cutover support, rollback capacity, and the target run rate. A lower target hourly rate can lose if six months of dual operation and remediation exceed the expected savings horizon. Retention is another cost stream: set automated backup frequency from RPO, manual snapshot retention from policy, copies from failure scope, and restore testing from RTO. Do not retain an unowned replica as a substitute for a recovery plan, and do not delete old snapshots before legal ownership is confirmed. During cutover, monitor source and target transaction rates, CDC latency, validation exceptions, connection errors, and application correctness. After stabilization, retire migration resources and old licenses only after rollback expiry. If schemas become fully compatible and downtime becomes acceptable, a simpler native or homogeneous path may reverse the decision. If connection churn disappears, RDS Proxy may no longer justify its recurring cost. These explicit exit conditions prevent temporary migration controls from becoming permanent waste.
DECISION TABLE
Compare the architecture constraints
GUIDED WORKED SCENARIO
Reason from the stated constraints
This is a guided example, not a question to memorise. The knowledge check uses new situations to test the same reasoning.
Move a 6-TB Oracle database to PostgreSQL with 20-minute cutover, seven-year monthly snapshots and bursty Lambda connections.
Requirements
- Heterogeneous conversion
- Full load while writes continue
- Rollback required
- Connection protection required
Reasoning path
- For Database connections, replicas, retention, engines, and migration economics, eliminate any candidate that violates the explicit security or failure/performance dimension.
- Quantify the scale, operating burden, and complete cost horizon specific to Database connections, replicas, retention, engines, and migration economics before ranking valid choices.
- Select the lowest-total-cost valid design for Database connections, replicas, retention, engines, and migration economics, then change one decisive constraint and re-evaluate the loser.
Why it wins
- Separates conversion from movement
- Includes dual-run/rollback cost
- Proxy solves measured connection churn
Why the alternatives lose
Does not convert incompatible code/schema
Becomes correct when: Homogeneous schemas are compatibleDoes not change engine or pool bursts
Becomes correct when: Only read scaling requiredDoes not pool SQL connections or migrate data
Becomes correct when: Repeated cacheable reads dominateARCHITECTURE VISUAL · TEXT MODE
Inspect the model
For Database connections, replicas, retention, engines, and migration economics, read a keyboard-ordered table of requirements, quantities, candidate path or service, first failed constraint, repair, winner, and changed-constraint result; animation and color are unnecessary.
saa-viz-service-choice-labKNOWLEDGE CHECK
Answer one question at a time
Pass every question to complete this lesson. Each answer includes reasoning before you continue.
Assessment proves a homogeneous, schema-compatible move. Which migration step can now be removed?
Reveal reasoning
DMS migration without schema conversion becomes sufficient because the heterogeneous conversion requirement has disappeared.
Lambda timeouts rise during connection bursts, and a learner proposes adding a read replica. Which metric points to the real control?
Reveal reasoning
High connection creation and database connection exhaustion point to RDS Proxy pooling; a read replica addresses lag-tolerant read throughput instead.
Before reveal, predict the first migration failure if CDC begins before incompatible procedures are remediated and application tests pass.
Reveal reasoning
The schema/application compatibility gate fails even if row replication is healthy; complete conversion remediation and testing before cutover.
PRIMARY SOURCES
Verify the claims
- primaryAmazon RDS Proxyaws-rds-proxy · retrieved 2026-07-30
- primaryWorking with DB instance read replicasaws-rds-db-instance-read-replicas · retrieved 2026-07-30
- primaryReserved DB instances for Amazon RDSaws-rds-reserved-db-instances · retrieved 2026-07-30
- primaryAWS Database Migration Service User Guideaws-mig-dms · retrieved 2026-07-29
- primaryWhat is Amazon RDS?aws-db-rds · retrieved 2026-07-29
- primaryWhat is AWS Backup?aws-dr-backup · retrieved 2026-07-29
- primaryDms Task Modesaws-dms-task-modes · retrieved 2026-07-30
- primaryDms Schema Conversionaws-dms-schema-conversion · retrieved 2026-07-30