Interview Prep/Monitoring & Observability/Long-Term Storage, Scale and Cost

Cross-AZ data transfer from metrics and logs agents is a top line in your AWS bill. How do you reduce it?

AdvancedScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → Agents in every AZ send uncompressed data to collectors or ingesters in other AZs; replication factor 3 multiplies it.

What I'd do →

  1. Measure with VPC Flow Logs or Cost Explorer (DataTransfer-Regional-Bytes).
  2. Enable compression everywhere: OTLP gRPC compression: gzip or zstd, Loki and remote write already use snappy.
  3. Use topology-aware routing so agents send to collectors in the same zone (service.kubernetes.io/topology-mode: Auto / trafficDistribution: PreferClose).
  4. Batch more data per request to improve compression.
  5. Drop and aggregate at the edge before sending.
  6. For Mimir/Loki, consider zone-aware replication settings and whether replication factor 3 is required for every tenant.

Why → Cross-AZ traffic costs money per GB in both directions, and observability traffic is high-volume.

Interview tip → Show you know where the bytes flow, not just how much storage costs.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost