Skip to content

Chapter 4 of 11

Databases: RDS and DynamoDB

Choose managed relational or NoSQL data services from access patterns and consistency needs.

44 minutes 10 quick checksBy Subha Prasad
Lesson 4 of 11Course navigation

Lesson content

Read, practise, then check your understanding

Databases: RDS and DynamoDB

Amazon RDS manages relational engines, backups, patching workflows, monitoring, and availability options. DynamoDB is a serverless key-value and document database designed around known access patterns and partitioned scale.

Core ideas

  • RDS Multi-AZ improves availability through a standby; it is not primarily a read-scaling feature.
  • Read replicas can offload eligible reads and have asynchronous replication behavior.
  • DynamoDB requires a partition key and optionally a sort key; key design determines efficient queries and distribution.
  • On-demand and provisioned DynamoDB capacity models fit different traffic predictability.

Design and operating model

Begin with data relationships, transactions, query shapes, latency, scale, and operational requirements. Choose RDS when relational integrity and SQL access dominate. Choose DynamoDB for predictable key-based access at high scale. Model hot keys, failure modes, backups, restore, encryption, and cross-region needs before production.

Example

aws rds describe-db-instances \
  --query 'DBInstances[].[DBInstanceIdentifier,Engine,MultiAZ]'

aws dynamodb get-item \
  --table-name Orders \
  --key '{"pk":{"S":"ORDER#1042"},"sk":{"S":"SUMMARY"}}' \
  --consistent-read

Run examples in a disposable training account and replace Regions, identifiers, policies, resource sizes, and names with reviewed values. Verify commands with the current AWS CLI and service documentation before production use.

Production guidance

  • Keep databases private and connect through controlled application identities and network paths.
  • Enable automated backups and rehearse point-in-time recovery into an isolated environment.
  • For DynamoDB, design keys from access patterns and monitor throttling, consumed capacity, and skew.

The chapter quiz follows the lesson and checks both service vocabulary and architecture decisions.

Knowledge check

Answer every question correctly to complete this chapter.

Which statement correctly describes Amazon RDS?
Which term matches this explanation: A managed relational database service supporting several database engines.
Which statement correctly describes Multi-AZ deployment?
Which term matches this explanation: An RDS availability configuration maintaining a synchronous standby in another Availability Zone.
Which statement correctly describes read replica?
Which term matches this explanation: A read-scaled database copy updated asynchronously from its source.
Which statement correctly describes Amazon DynamoDB?
Which term matches this explanation: A serverless key-value and document database with single-digit millisecond performance at scale.
Which statement correctly describes partition key?
Which term matches this explanation: The DynamoDB key attribute used to distribute and locate items.

0 of 10 checks passed

Your progress is saved on this device.