Database · AWS SERVICE CHEATSHEET

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.

Open Interactive DYNAMODB Sandbox → Simulate in Architecture Studio

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 ServiceProtocolPortArchitectural Rationale
LAMBDAHTTPS443Serverless event handlers executing GetItem, PutItem, Query, and TransactWriteItems API operations
ECSHTTPS443Containerized microservices reading/writing document records via AWS SDK
EC2HTTPS443Backend application servers executing queries over IAM-authenticated AWS SDK clients
APIGWHTTPS443Direct API Gateway to DynamoDB AWS Service Proxy integration without intermediate compute
S3-ENDPOINTHTTPS443Private VPC Gateway Endpoint routing internal VPC traffic directly to DynamoDB over the AWS private network

Allowed Egress Targets & Ports

Target ServiceProtocolPortData Flow Rationale
LAMBDAHTTPS (Event)443DynamoDB Streams emitting asynchronous Change Data Capture (CDC) events to trigger downstream serverless pipelines
DYNAMODB-GLOBALHTTPS (Sync/Async)443Automated multi-region active-active replication between DynamoDB Global Tables replicas
S3HTTPS443Export table data to Amazon S3 in Apache Parquet or JSON format without consuming read capacity units

Key Configuration Parameters & AWS Best Practices

ParameterFormat / ExamplePurpose & Rationale
Table Name (tableName) (Required)orders-table-prodThe 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_REQUESTPAY_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)orderIdThe 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)SThe data type of the partition key attribute. Why: DynamoDB enforces strict data typing on primary key attributes at table creation.
Sort Key Name (sortKeyName)createdAtOptional 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)trueCaptures 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)trueEnables 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)100The 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)100The 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

SAA-14

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-CACHE

DynamoDB Read Scaling: Microsecond Caching with DAX

Deploy DynamoDB Accelerator (dax) between EC2 compute and DynamoDB to deliver microsecond read caching.…

SAA-21

Decouple 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-FAILOVER

Global 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-02

Build: 100% Serverless Microservices REST API

Build a serverless architecture containing API Gateway, AWS Lambda, and Amazon DynamoDB, connected sequentiall…

BUILD-04

Build: 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.

More Database Cheatsheets

RDS Database → ElastiCache Redis →