A pooled DynamoDB table and its global secondary index use tenant IDs as partition keys, and clients access DynamoDB through tenant-scoped temporary credentials. Which design enforces tenant isolation for both table and index queries without relying on application filters?
Show the answer
Correct answerB. Validate tenant identity, issue trusted tenant session tags, and constrain permitted resources with dynamodb:LeadingKeys conditions.
AWhy not this: A caller can omit an application-required filter; a shared role does not enforce tenant-specific partition access.
BWhy this is right: Trusted session tags can bind permitted leading partition keys to the authenticated tenant for table and index access.
CWhy not this: A request header is not an IAM partition-key restriction and can contain a different tenant's identifier.
DWhy not this: The shared table's resource tag is the same for every tenant and does not constrain access to individual tenant partitions.
Trusted tenant session tags can drive IAM conditions that restrict DynamoDB partition-key access on permitted table and index resources. Filter expressions only filter query results; they are not an IAM tenant-isolation boundary.