Amazon DynamoDB (DYNAMODB)
Provides ultra-fast primary datastore for high-throughput transactional applications, user profiles, session state, gaming leaderboards, and event histories with automatic scaling, Multi-AZ durability, and optional Global Tables active-active replication.
AWS Container Placement
Regional / Global Managed Scope (Outside VPC Subnets)
Summary
Serverless, fully managed NoSQL key-value and document database delivering single-digit millisecond latency at any scale.
When to Use (SAA-C03)
Use for high-scale, low-latency key-value lookups, session stores, and serverless Lambda backends.
Allowed Ingress Connections & Ports
| Source Service | Protocol | Port | Architectural Rationale |
|---|---|---|---|
| LAMBDA | HTTPS | 443 | Serverless event handlers executing GetItem, PutItem, Query, and TransactWriteItems API operations |
| ECS | HTTPS | 443 | Containerized microservices reading/writing document records via AWS SDK |
| EC2 | HTTPS | 443 | Backend application servers executing queries over IAM-authenticated AWS SDK clients |
| APIGW | HTTPS | 443 | Direct API Gateway to DynamoDB AWS Service Proxy integration without intermediate compute |
| S3-ENDPOINT | HTTPS | 443 | Private VPC Gateway Endpoint routing internal VPC traffic directly to DynamoDB over the AWS private network |
Allowed Egress Targets & Ports
| Target Service | Protocol | Port | Data Flow Rationale |
|---|---|---|---|
| LAMBDA | HTTPS (Event) | 443 | DynamoDB Streams emitting asynchronous Change Data Capture (CDC) events to trigger downstream serverless pipelines |
| DYNAMODB-GLOBAL | HTTPS (Sync/Async) | 443 | Automated multi-region active-active replication between DynamoDB Global Tables replicas |
| S3 | HTTPS | 443 | Export table data to Amazon S3 in Apache Parquet or JSON format without consuming read capacity units |
Key Configuration Parameters & AWS Best Practices
| Parameter | Format / Example | Purpose & Rationale |
|---|---|---|
| Table Name (tableName) (Required) | orders-table-prod | The unique identifier for the DynamoDB table within the AWS account and region. Why: All AWS SDK API calls (GetItem, PutItem, Query, TransactWriteItems) target the table by this canonical name. |
| Billing Mode (billingMode) (Required) | PAY_PER_REQUEST | PAY_PER_REQUEST (On-Demand) auto-scales instantly to any traffic volume with zero capacity planning. PROVISIONED reserves explicit Read/Write Capacity Units (RCU/WCU). Why: Fundamental architectural decision determining cost structure, scalability response, and throttling behaviors. |
| Partition Key Name (partitionKeyName) (Required) | orderId | The primary key attribute name used by DynamoDB internal hash function to partition items across physical storage nodes. Why: Every DynamoDB item must have a partition key; it determines physical partition placement and query indexing. |
| Partition Key Type (partitionKeyType) (Required) | S | The data type of the partition key attribute. Why: DynamoDB enforces strict data typing on primary key attributes at table creation. |
| Sort Key Name (sortKeyName) | createdAt | Optional secondary attribute that, combined with the partition key, forms a composite primary key. Why: Enables 1:N data relationships, sorting items within a partition, and executing range queries (begins_with, between, >, <). |
| DynamoDB Streams (streamEnabled) | true | Captures time-ordered sequence of item-level modifications (insert, update, delete) and stores them in a 24-hour log. Why: Essential for event-driven architectures: triggers AWS Lambda functions for real-time notifications, materialized views, or cross-service sync. |
| Point-in-Time Recovery (pointInTimeRecovery) | true | Enables continuous automated backups allowing recovery of table data to any second within the past 35 days. Why: Crucial for production compliance, safeguarding against accidental table deletions, code bugs, or malicious data corruption. |
| Read Capacity Units (dynamoReadCapacity) | 100 | The number of strongly consistent reads of up to 4 KB per second (or two eventually consistent reads). Why: Required only when billingMode is PROVISIONED to allocate provisioned read throughput. |
| Write Capacity Units (dynamoWriteCapacity) | 100 | The number of writes of up to 1 KB per second. Why: Required only when billingMode is PROVISIONED to allocate provisioned write throughput. |
Practice Labs Using Amazon DynamoDB
E-Commerce Flash Sale: EventBridge Dead-Letter Queue (DLQ) Delivery Blackhole
Configure the EventBridge rule to route failed execution events to sqs-order-dlq.…
SAA-DAX-MICROSECOND-CACHEDynamoDB Read Scaling: Microsecond Caching with DAX
Deploy DynamoDB Accelerator (dax) between EC2 compute and DynamoDB to deliver microsecond read caching.…
SAA-21Decouple Synchronous Order Spike with SQS + DLQ
Buffer incoming orders asynchronously using an Amazon SQS queue with a Dead-Letter Queue (DLQ) before the work…
SAA-C03-MULTIREGION-DR-FAILOVERGlobal E-Commerce: Multi-Region Active-Active DR & Automated Route 53 Failover
Configure Route 53 failover routing policy, connect DR ALB, and link DynamoDB Global Table replication.…
BUILD-02Build: 100% Serverless Microservices REST API
Build a serverless architecture containing API Gateway, AWS Lambda, and Amazon DynamoDB, connected sequentiall…
BUILD-04Build: Decoupled Asynchronous Flash Sale Order Queue
Build an architecture with an EC2 producer, Amazon SQS queue, Lambda consumer, and DynamoDB storage, wired seq…
Frequently Asked Questions
Where does Amazon DynamoDB live inside an AWS VPC architecture?
Valid container placement: Regional / Global Managed Scope (Outside VPC Subnets). Provides ultra-fast primary datastore for high-throughput transactional applications, user profiles, session state, gaming leaderboards, and event histories with automatic scaling, Multi-AZ durability, and optional Global Tables active-active replication.
When should I use Amazon DynamoDB on the AWS SAA-C03 exam?
Use for high-scale, low-latency key-value lookups, session stores, and serverless Lambda backends.
Can I simulate Amazon DynamoDB packet routing without an AWS account?
Yes. CloudTracer simulates Amazon DynamoDB along with 53 AWS services directly in your browser and exports production Terraform HCL.