You need to implement a multi-account AWS landing zone where shared services are consumed cross-account. A service team must be able to create and manage specific resources in the shared account, but only within a constrained path (for example, a particular prefix/tag set). Which IAM approach best enforces least privilege at both account boundaries and resource scope?
Answer
Create IAM roles in the shared account with a trust policy for the service account and permission policies scoped by resource ARNs and enforced tag conditions
Explanation
Cross-account roles with scoped permission policies and conditions (ARN and tags) enforce least privilege across both trust and authorization boundaries. Direct admin or wildcard credentials violate resource scope and escalation controls.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A customer uses EKS and needs to run stateful workloads on EC2-backed node groups. They require pod anti-affinity across failure domains and stable volumes even when nodes are replaced. Which combination best satisfies this?
View question →
A company stores sensitive customer data in S3 and needs the ability to revoke access quickly while ensuring that data remains cryptographically protected even if bucket policies are modified. Additionally, some access is via presigned URLs that may be outstanding. What is the strongest design?
View question →
You must design a system using S3 and Lambda where events trigger processing of newly created objects. Sometimes objects are updated after creation. The system must process only the latest version of each object and avoid reprocessing older versions. What is the best approach?
View question →
A platform uses DynamoDB with a global read-heavy pattern. The application requires eventual consistency across regions but must guarantee that users never observe their own latest write as missing. Which DynamoDB configuration best meets this?
View question →
A VPC design uses private subnets for application tasks and requires connectivity to on-premises services over a primary/secondary VPN. During failover, existing TCP sessions must be preserved as much as possible, but routing changes are acceptable. Which architecture most directly supports this goal?
View question →
You are migrating a legacy monolith to microservices. Each service writes to its own set of DynamoDB tables and publishes domain events to an event bus. Ordering is required per aggregate ID, but global ordering across all aggregates is not. Which event delivery strategy is most suitable?
View question →