Interview Prep/DevSecOps/Cloud IAM and Compliance

The company enters the EU market and must keep customer data in the EU. How do you enforce data residency in the cloud?

IntermediateScenarioCloud IAM and Compliance
Answer

Situation read → Residency needs prevention (cannot create resources elsewhere) and evidence (where data actually lives).

What I'd do →

  1. SCP denying actions outside approved regions using aws:RequestedRegion, with exceptions for global services (IAM, CloudFront, Route 53).
  2. Separate EU accounts or projects for EU customer data.
  3. Check replication settings: S3 CRR, DynamoDB global tables, backups and logs must not copy to non-EU regions.
  4. Review third-party services (logging, APM, support tools) for where they process data.
  5. Keep a data map for the DPO showing systems and regions.

Why → Residency breaks most often through backups and SaaS tools, not primary databases.

Interview tip → Mention global services exceptions in region-deny SCPs; forgetting them breaks IAM.

All DevSecOps questions Roadmap: Policy as code

More on Cloud IAM and Compliance