Before shipping, a developer checks whether an IAM policy that allows dynamodb:Query only on a table ARN also covers Query calls that target a global secondary index. What should they understand?
Select an answer to reveal the explanation.
Short Explanation
Querying a GSI is a different door than querying the base table—IAM often wants the index ARN on the resource list. A table-only ARN can leave index Query denied. GSIs are not an S3 API.
Full Explanation
IAM policies for DynamoDB Query should list the resources the call actually uses. Operations against secondary indexes typically require including the index ARNs (or a matching resource pattern), because a policy limited to the table ARN alone may not authorize index queries. Indexes are IAM-addressable DynamoDB resources, not S3 objects.