A company uses DynamoDB with fine-grained access control requirements. They want authorization decisions based on attributes (such as tenantId) rather than only on item keys. Which approach should they use?

Answer

Use IAM policies with DynamoDB condition keys and enforce allowed tenantId values (where supported)

Explanation

DynamoDB supports conditional access via IAM policy elements in supported contexts, enabling attribute-level authorization. This helps enforce tenant separation beyond item-key controls.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list