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
Related questions
A company wants to reduce the blast radius of compromised credentials used by a Lambda function that reads from DynamoDB and writes to an SQS queue. What is the best practice to apply?
View question →
You need a way to protect an S3 bucket that allows only specific AWS accounts to read objects while still using bucket policies. Which approach is most appropriate?
View question →
A team stores sensitive application logs in CloudWatch Logs. They require encryption at rest, and they also need tighter access control for who can view logs. Which configuration best meets these requirements?
View question →
An organization wants to centralize vulnerability management for internet-facing and internal workloads using an AWS-native approach. Which solution best fits?
View question →
A customer uses AWS Organizations and wants to ensure new member accounts are configured to meet security baselines without manual review. The team needs guardrails that can automatically prevent noncompliant resource changes. Which mechanism best fits this need?
View question →
You are designing a strategy for detecting suspicious API activity. You must monitor for unusual AWS API calls across multiple accounts in near real time. What is the most suitable service combination?
View question →