Price the full storage lifecycle
Estimate storage, requests, retrievals and migration costs while preserving access and recovery guarantees.
Task 4.1 · Price the full storage lifecycle
Inventory the data
Measure growth, object count and size, read frequency, overwrite rate, retention, minimum retrieval speed, AZ resilience and protocol. S3 Standard fits frequent reads. Standard-IA trades cheaper storage for retrieval fees and minimum billable size and duration. Glacier Instant Retrieval is for rare reads that still need immediate access. Flexible Retrieval and Deep Archive require restores and longer retrieval windows. Intelligent-Tiering can help when access is unpredictable; factor in eligibility, monitoring costs and optional archive settings.
Compare total bills
Add GB-months, requests, transitions, retrieval bytes, early deletion, replication, transfer and temporary restore copies. Large numbers of small objects can make per-object fees dominate. Compact them only if the application can still retrieve the required unit. Include old versions and incomplete multipart uploads in lifecycle reviews. For files compare EFS and FSx storage classes; for block storage consider EBS gp3 versus throughput-optimized HDD for supported large sequential workloads. Size to observed peaks and validate throughput.
Include migration and backup
A recurring on-premises copy can use DataSync. Storage Gateway fits continuing local file access, and Transfer Family can retain a partner's SFTP interface. Time a network transfer before choosing a service. Define snapshot retention and practice restoring the oldest needed version. Use activated cost allocation tags, Cost Explorer for trends, AWS Budgets for alerts and detailed Cost and Usage Reports for line items. Requester Pays shifts eligible request and download costs to authenticated requesters while the bucket owner still pays for storage.
Choose how storage grows
S3 and EFS can expand as objects or files arrive. A provisioned EBS volume requires a deliberate resize and often a filesystem extension. Some database services offer storage auto scaling with a maximum threshold. Estimate time-to-full from sustained growth and set an alarm early enough to act if the limit is reached. A maximum budget alone cannot prevent an outage. Where users need individual file restores, compare the extra bytes read from a bundled archive with savings from fewer upload operations.
A cheaper tier costs more this month
A team holds 10,000 GB. An illustrative class saves $0.008 per stored GB-month but costs $0.01 per GB retrieved. The team reads 9,000 GB each month. Ignore fees equal in both choices.
How much does switching save, and which additional costs should be checked before applying a rule?
Compare your design with the worked answer
Storage falls by $80 and retrieval adds $90. The new class costs $10 more for this workload. Break-even is 8,000 GB retrieved per month with these inputs. Inspect object sizes, transition request count, minimum duration and retention rules before using an estimate for a real bucket.
If only 500 GB is read each month, the modeled saving is $75 before other charges. Use current prices for the actual Region and class.
Apply the video example
The S3 comparison brings minimum storage duration into the decision. Give a 20-day object and a 200-day object their own cost lines. For each, include the destination class's minimum billable duration, request fee and expected retrieval. An average age over the entire bucket hides early-deletion charges.
freeCodeCamp at 1:05:07 · S3 storage class characteristics
Find the retrieval break-even point
Save this as tiers.py and run python3 tiers.py. Prices are illustrative monthly inputs for this exercise. Storage quantities use decimal GB. Predict which class costs less at 500, 8,000 and 9,000 GB retrieved.
from decimal import Decimal
def monthly(stored_gb, retrieved_gb, storage_rate, retrieval_rate):
return stored_gb * Decimal(storage_rate) + retrieved_gb * Decimal(retrieval_rate)
for retrieved in (500, 8000, 9000):
standard = monthly(10000, retrieved, "0.023", "0")
infrequent = monthly(10000, retrieved, "0.015", "0.010")
print(f"{retrieved} GB retrieved: saving {standard - infrequent:.2f} USD")
Check the output and change one assumption
500 GB retrieved: saving 75.00 USD
8000 GB retrieved: saving 0.00 USD
9000 GB retrieved: saving -10.00 USDThe saving changes sign where retrieval charges exhaust the $80 storage saving. Add a $12 monthly transition charge to the second class. Its break-even retrieval falls to 6,800 GB. Replace these assumptions with Region-specific rates, billable sizes, duration and retrieval requirements for a real decision.
AWS exam guide for this domain · Return to the objective map
Price the full storage lifecycle quiz
Answer 5 questions. Check each answer for an explanation.