Cloud providers expose age-based and access-frequency-based rules that move objects between storage classes without custom scripts. At the database layer, engines like ClickHouse use disk policy configurations to migrate partitions across storage volumes based on fill thresholds. The key principle is encoding the retention policy in infrastructure configuration rather than in application code, which keeps the logic auditable and version-controlled.