What is the cost impact of image size and how do you control it?
IntermediateProductionArchitecture & Design Decisions
Answer
Large images mean slower scale-out (pull time), higher registry storage and cross-AZ/NAT egress charges, and larger blast radius. Control with minimal bases, multi-stage builds, ECR lifecycle policies, same-region registries with VPC endpoints (avoid NAT gateway data fees), and pull-through caches. In autoscaling clusters, pull time directly adds to scale-up latency.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?Intermediate