Interview Prep/CI/CD/Metrics, Performance and Cost

How do you control artifact storage growth?

BeginnerProductionMetrics, Performance and Cost
Answer

Set retention by artifact type: short for CI build outputs and PR images (7–14 days), longer for release artifacts (kept per compliance), cleanup of untagged and snapshot artifacts (Nexus cleanup policies, Artifactory retention, ECR lifecycle rules, GitHub retention-days), deduplicate through content-addressed storage, and monitor repository sizes per team.

aws ecr put-lifecycle-policy --repository-name shop/api --lifecycle-policy-text file://lifecycle.json
All CI/CD questions

More on Metrics, Performance and Cost