Recovery objectives
RPO = maximum acceptable data loss window
RTO = maximum acceptable time to restore service- A 15-minute RPO does not automatically imply a 15-minute RTO.
- Multi-AZ availability does not replace retained backups.
Understand managed relational databases, NoSQL basics, backups, Multi-AZ availability, read replicas and secure database connectivity.
The provider can operate hosts, patch service components and automate backups depending on configuration. Teams still design schemas, access controls, retention, query behavior and application recovery.
A synchronous or managed standby may exist primarily for failover, while read replicas can serve read traffic and may replicate asynchronously. Architecture must match the service’s documented behavior.
Define recovery point objective (RPO) and recovery time objective (RTO), then configure backup frequency/retention and test restores. A backup that has never been restored is unproven.
Relational databases organize data into tables with defined relationships and SQL query semantics. NoSQL services may expose key/value, document, wide-column or other models that optimize different access patterns and scaling characteristics.
Choose from data consistency, query, transaction, scale and operational requirements—not from the label “cloud native.”
Applications should reach databases over explicitly allowed network paths using dedicated identities/credentials. Avoid public database exposure unless a documented requirement and compensating controls justify it.
Backup-and-restore is usually the lowest-cost approach but takes longer because infrastructure/data must be restored after disruption. Pilot light keeps critical data/core components ready while much of application capacity is recreated during recovery. Warm standby keeps a smaller functional environment running. Multi-site active/active serves traffic from multiple sites and can reduce recovery time further at higher cost and operational complexity.
These patterns are not interchangeable with ordinary Multi-AZ high availability. Define the failure scope first: instance, zone, region, data corruption or another event may require different recovery controls.
RPO = maximum acceptable data loss window
RTO = maximum acceptable time to restore serviceBackup & restore → lowest steady-state cost / slower recovery
Pilot light → core data/services ready / scale more during recovery
Warm standby → smaller full stack already running
Multi-site active → multiple sites serve traffic / highest complexityGoal: Calculate whether a hypothetical backup policy meets stated RPO/RTO goals.
cat > /tmp/db-recovery.json <<'EOF'
{"backup_interval_minutes":15,"retention_days":7,"restore_test_minutes":35,"required_rpo_minutes":30,"required_rto_minutes":60}
EOFpython3 - <<'PY'
import json
p=json.load(open('/tmp/db-recovery.json'))
print('RPO met:',p['backup_interval_minutes']<=p['required_rpo_minutes'])
print('RTO met:',p['restore_test_minutes']<=p['required_rto_minutes'])
assert p['backup_interval_minutes']<=p['required_rpo_minutes']
assert p['restore_test_minutes']<=p['required_rto_minutes']
PYChange restore_test_minutes to 90 and rerun; identify which objective fails.python3 - <<'PY'
def strategy(rto_minutes,rpo_minutes):
if rto_minutes<=5 and rpo_minutes<=1: return 'multi-site / hot standby candidate'
if rto_minutes<=30 and rpo_minutes<=5: return 'warm standby candidate'
if rto_minutes<=120 and rpo_minutes<=30: return 'pilot light candidate'
return 'backup-and-restore candidate'
for x in [(240,60),(90,15),(20,5),(5,1)]: print(x,'->',strategy(*x))
PYProduction database resilience requires tested restores, credential rotation, monitoring, capacity planning and carefully managed schema changes.
Inspect existing RDS and DynamoDB metadata without creating database capacity.
aws rds describe-db-instances --query 'DBInstances[].{Id:DBInstanceIdentifier,Engine:Engine,MultiAZ:MultiAZ,Public:PubliclyAccessible}' --output tableaws dynamodb list-tables --output tableOpen each answer only after you have tried to answer the question yourself.
The maximum acceptable amount of data loss measured in time.
The maximum acceptable duration to restore service after disruption.
They serve availability/read-scaling goals and can replicate logical mistakes or corruption; backups provide independent recovery points.
Warm standby is a strong candidate because a scaled-down functional environment is already running; the exact strategy still depends on tested service behavior, cost and failure scope.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.