You must design a multi-tenant application where each tenant’s data must be isolated at the logical access layer, and you need to enforce row-level permissions dynamically at query time. Which solution is most appropriate?

Answer

Use DynamoDB with a partition key of tenantId and apply IAM conditions that restrict access to items using condition keys

Explanation

DynamoDB partition-key-based access patterns plus IAM conditions can tightly constrain what a caller can read or write, providing strong logical isolation. Application-only enforcement is less robust and more error-prone.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A company processes confidential documents uploaded by users. They must prevent plaintext exposure in logs, ensure least-privilege access to decrypt data, and rotate keys regularly without re-encrypting existing objects. Which AWS-native approach best meets these requirements?

View question →

An application must process tens of thousands of events per second, where downstream availability is variable. You need elasticity, buffering, and at-least-once processing. Which approach is best?

View question →

A backend service running in private subnets needs to reach an AWS managed service that supports public endpoints. You must restrict egress and avoid NAT gateway costs where possible. What is the best option?

View question →

A streaming analytics pipeline reads from Kinesis Data Streams and writes aggregates to DynamoDB. You observe occasional out-of-order arrivals and must ensure that each aggregate reflects the latest event for a given key. What is the most appropriate design change?

View question →

A company uses Amazon S3 for storing user uploads. They require that objects are encrypted at rest, access is restricted by tenant, and each object’s encryption context must be immutable after upload. Which approach is correct?

View question →

A company runs a stateless web API on EC2 behind an ALB and needs blue/green deployments with minimal downtime. Which combination best matches AWS architectural best practices for safe rollback while maintaining low latency?

View question →

QuestionBack to list