概念 · 基于 CLF-C02
DynamoDB cost design
Pick the capacity mode and table class that fit the traffic, then cut reads, writes and stored data.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- DynamoDB is serverless, so there are no servers to size.
- It has on-demand and provisioned capacity modes.
- You pay for storage and for reads and writes.
On-demand
- Best for
- Spiky or unknown
- Billing
- Per request
Provisioned
- Best for
- Steady traffic
- Billing
- Capacity per hour
Reserved capacity
- Best for
- Steady base load
- Billing
- 1 or 3 year commitment
Standard-IA class
- Best for
- Storage-heavy tables
- Billing
- Cheap storage, dear requests
| Mode | Best for | Billing |
|---|---|---|
| On-demand | Spiky or unknown | Per request |
| Provisioned | Steady traffic | Capacity per hour |
| Reserved capacity | Steady base load | 1 or 3 year commitment |
| Standard-IA class | Storage-heavy tables | Cheap storage, dear requests |
1 / 2
On-demand
- Best for
- Spiky or unknown
- Billing
- Per request
Provisioned
- Best for
- Steady traffic
- Billing
- Capacity per hour
Reserved capacity
- Best for
- Steady base load
- Billing
- 1 or 3 year commitment
| Mode | Best for | Billing |
|---|---|---|
| On-demand | Spiky or unknown | Per request |
| Provisioned | Steady traffic | Capacity per hour |
| Reserved capacity | Steady base load | 1 or 3 year commitment |
2 / 2
Standard-IA class
- Best for
- Storage-heavy tables
- Billing
- Cheap storage, dear requests
| Mode | Best for | Billing |
|---|---|---|
| Standard-IA class | Storage-heavy tables | Cheap storage, dear requests |
- 1A hot read goes to DAX first. A cache hit never reaches the table.
- 2A miss goes on to DynamoDB, and DAX keeps the answer.
是什么
On-demand mode bills per request and needs no planning. It suits new, spiky or unknown traffic. Provisioned mode bills the read and write capacity you set, and auto scaling moves it with traffic. It costs less when traffic is steady and predictable. Reserved capacity, for 1 or 3 years in blocks of 100 units, cuts provisioned cost further, by up to 54% or 77%. If you cannot forecast, on-demand is safer than throttling.
是什么
Item size drives cost. One read capacity unit covers one strongly consistent read of up to 4 KB, and an eventually consistent read costs half. One write capacity unit covers a write of up to 1 KB. Short attribute names, compressed values and large objects kept in S3 (with a pointer in the item) lower the units used.
是什么
The Standard-IA table class cuts the storage price by about 60% and raises the read and write price by about 25%. Use it when storage is most of the bill, such as history and logs. Time to Live (TTL) deletes expired items at no write cost, so old data stops billing for storage. Stream or export it to S3 first if you need it. DAX is an in-memory cache. It answers repeated eventually consistent reads in microseconds and cuts read units for hot items.
要记住
- On-demand: unknown or spiky. Provisioned with auto scaling: steady and predictable.
- Reserved capacity: 1 or 3 years on provisioned capacity, up to 54% or 77% off.
- Read unit: one 4 KB strongly consistent read. Eventually consistent costs half.
- Write unit: one 1 KB write. Large items use more units.
要记住
- Standard-IA table class: cheaper storage, dearer requests. For storage-heavy tables.
- TTL removes old items for free. DAX cuts reads for hot items.
考试中
- “Unpredictable traffic, no capacity planning” points to on-demand mode.
- “Steady traffic with known peaks, lowest cost” points to provisioned capacity with auto scaling, plus reserved capacity.
- “Old items should disappear automatically at no write cost” points to TTL.
- “Table mostly holds rarely read history” points to the Standard-IA table class.
- “Heavy repeated reads of the same items” points to DAX.
别和这些弄混
Amazon DynamoDBServerless key-value and document database. Design the key well and choose the capacity mode.
- RDS and Aurora cost designRight-size instances, buy commitments, use Multi-AZ only where needed, and pick the Aurora mode that fits the I/O.
- Cost-effective database typesMatch the data shape and access pattern to the engine that costs least, and move cold data out of the database.
本任务内容 · 4.3
- DynamoDB cost design
- RDS and Aurora cost design
- Reserved capacity for databases
- Backup and retention policies
- Cost-effective database types
Organizations
Backup
- Caching strategies
- Choosing a database by access pattern
RDS
- Read replicas
RDS Proxy
Aurora
Aurora Serverless
DynamoDB
ElastiCache
DMS
- SCT
Redshift
- Cost allocation tags
Cost Explorer
Budgets
Cost and Usage Reports
- Multi-account billing