Interview Prep/DevSecOps/Cloud IAM and Compliance

Developers in a sandbox account accidentally ran a $9,000 GPU instance for two weeks. How do you add guardrails without blocking experimentation?

BeginnerScenarioCloud IAM and Compliance
Answer

Situation read → Cost is a security concern too (cryptojacking looks the same). Sandboxes need limits, not locks.

What I'd do →

  1. AWS Budgets with alerts at 50/80/100% and a budget action that applies a deny policy at the limit.
  2. SCP on the Sandbox OU denying large or GPU instance types except via approval.
  3. Auto-cleanup: nightly job (aws-nuke or Lambda) deleting resources older than N days without a keep tag.
  4. Cost anomaly detection alerts to the account owner.

Why → People can still experiment, but nothing expensive keeps running without anyone noticing.

Interview tip → Link cost anomalies to compromised-account detection.

All DevSecOps questions Roadmap: Policy as code

More on Cloud IAM and Compliance