Dev and test environments run 24/7 but are used only during office hours. How do you cut that cost?

BeginnerScenarioCost
Answer

Situation read → Office hours are about 50 of the 168 hours in a week. Non-prod running all the time pays for the other ~70%.

What I'd do →

  1. Schedule scale-down: EKS node groups or Karpenter limits to zero at night, ASGs with scheduled actions, RDS stopped (max 7 days before auto-start, so re-stop it).
aws autoscaling put-scheduled-update-group-action --auto-scaling-group-name dev-app \
  --scheduled-action-name night-off --recurrence "30 14 * * 1-5" \
  --min-size 0 --max-size 0 --desired-capacity 0

(Recurrence is UTC: 14:30 UTC is 20:00 IST.) 2. Kubernetes workloads: tools like kube-downscaler scale Deployments to zero by annotation. 3. Tag everything with env and owner so the scheduler and reports know what to touch. 4. Give a self-service "wake up" button (a pipeline or Slack command) for late work.

Why → It's the easiest saving with almost no engineering risk.

Interview tip → Mention the RDS 7-day auto-start; it shows you've actually run this.

All Real-World Interview questions Roadmap: Interview readiness

More on Cost