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 →
- SCP denying actions outside approved regions using
aws:RequestedRegion, with exceptions for global services (IAM, CloudFront, Route 53). - Separate EU accounts or projects for EU customer data.
- Check replication settings: S3 CRR, DynamoDB global tables, backups and logs must not copy to non-EU regions.
- Review third-party services (logging, APM, support tools) for where they process data.
- 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.
More on Cloud IAM and Compliance
You find an IAM policy with `"Action": "*", "Resource": "*"` attached to an application role. How do you right-size it?BeginnerYour company has 40 AWS accounts with no central controls. How do you set up preventive guardrails?IntermediateGuardDuty reports `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS`. What happened and what do you do?AdvancedYour company must pass SOC 2 Type II in six months. What does DevOps own, and how do you automate evidence?IntermediateA partner needs access to one S3 bucket in your account. How do you set up cross-account access safely?IntermediateSomeone logged in with the AWS root user last night. How do you react, and how should you have known?Beginner