Your team must implement fine-grained access control for a multi-tenant SaaS. Tenants are isolated by data prefix in a shared S3 bucket and by a DynamoDB partition key. You must prevent a tenant from querying other tenants using the AWS console or API. Which approach is strongest?

Answer

Create one IAM role per tenant with scoped policies for the tenant’s S3 prefix and DynamoDB partition key condition; optionally use attribute-based access with policy variables

Explanation

Scoping resource access with both S3 prefix constraints and DynamoDB partition-key conditions enforces isolation at the authorization layer. This prevents cross-tenant access even if clients try to query via console or API.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A multi-account organization uses SCPs to prevent direct attachment of AdministratorAccess. A workload needs cross-account access to an encrypted S3 bucket using KMS keys. Which combination best satisfies least privilege while still enabling decryption?

View question →

A system behind an ALB must support HTTP/2, and responses must be compressed selectively based on content type and size. Additionally, you need consistent client IP visibility and strict WAF protection with rate limiting. Which design best matches these requirements?

View question →

A company must ensure that images uploaded to S3 are virus-scanned before becoming publicly accessible. Uploads can occur at high volume. Which pattern best enforces this with minimal manual operations?

View question →

You need a streaming data pipeline that ingests from Kinesis Data Streams, transforms records with event-time semantics, and writes to S3 in an optimized layout for Athena. There is a requirement to reprocess data deterministically for a specific time window if an error occurs. Which approach best achieves deterministic replay?

View question →

You must design a disaster recovery plan for an active-active architecture across two Regions using Route 53. Constraints: RPO ≤ 15 minutes, RTO ≤ 30 minutes, and workloads are stateful (relational DB). Which architecture is the most aligned while minimizing cutover risk?

View question →

A VPC contains private subnets for an application and an isolated data tier. The application tier needs to access only one service endpoint (e.g., a specific AWS service) without traversing the public internet. It must also be reachable from on-prem via VPN. What is the most secure network design choice?

View question →

QuestionBack to list