To cut storage costs in a data lake that retains years of historical data, engineers combine cloud object lifecycle policies, automated snapshot expiration, and data compaction. Cloud providers offer tiered storage classes, such as AWS S3 Standard to Infrequent Access (IA), Glacier Instant Retrieval, and Glacier Deep Archive (or Google Cloud Standard to Nearline, Coldline, and Archive), which reduce per-gigabyte monthly storage rates by up to 90 percent. However, successful tiering requires navigating retrieval fee penalties and minimum storage duration limits while actively purging redundant raw landing files.
Object lifecycle transitions
Storage cost optimization operates across multiple operational levers:
- Automated lifecycle rules: Configure prefix-based rules on object storage buckets to transition older partitions. For example, transition active analytical tables to S3 Standard-IA after 90 days, move compliance audit partitions to Glacier Instant Retrieval after 365 days, and transition raw immutable landing logs to Glacier Flexible Retrieval.
- Snapshot expiration and compaction: In lakehouse tables, run scheduled maintenance to expire old snapshots and vacuum unreferenced files. Without snapshot expiration, table formats keep multiple superseded versions of every file, multiplying storage bills.
- Compress and compact: Upgrading legacy uncompressed text to ZSTD-compressed Parquet shrinks disk footprints by 70 to 80 percent, while compacting small files eliminates per-object request and metadata overhead.
Minimum durations and retrieval fee traps
Cold storage tiers come with financial traps that can backfire if misunderstood:
- Retrieval fees: Cold classes charge per gigabyte retrieved. If an analyst accidentally runs a full historical scan across five years of data stored in Glacier Instant Retrieval, data retrieval fees can easily dwarf months of storage savings.
- Minimum storage durations: S3 Standard-IA has a 30-day minimum billable duration, Glacier Instant Retrieval has a 90-day minimum, and Glacier Deep Archive requires 180 days. Deleting or modifying an object 10 days after moving it to Glacier still incurs the full 90-day storage fee.
- Small object size penalties: Objects under 128 KB still incur minimum billable capacities on certain cold tiers.
Retention enforcement and file cleanup
Establish a clear retention policy that permanently deletes raw landing data once bronze transformations complete, and restrict cold storage tiering strictly to partition paths that support regulatory or audit requirements rather than daily query workloads.