How Can AgentCore Query Cross-Account DynamoDB While Preserving User Identity?
Short answer
A Use an AgentCore outbound credential provider to AssumeRole into per-account IAM roles with session tags, preserving user identity and audit trails.
Question
The AI assistant must access customer data that is stored in multiple AWS accounts across sever-al business units. The AI assistant needs to perform actions on behalf of specific users by query-ing Amazon DynamoDB tables that contain customer information in each business unit's AWS account. Each business unit maintains its own AWS account that hosts its own DynamoDB ta-bles.
The company must enforce strict data access security boundaries and must collect full audit trails that show which user’s credentials are used to perform each action. The solution must allow the AgentCore application to access resources across multiple accounts while preserving user identity context. The solution must support the company’s plan to expand to more than 40 AWS accounts in the next year.
Which solution will meet these requirements with the LEAST operational overhead?
Key Takeaways
The question tests cross-account access design for AgentCore with per-user auditability; the trap is thinking SCPs grant permissions or that AWS RAM sharing carries end-user identity context.
This scenario asks how an Amazon Bedrock AgentCore assistant should query DynamoDB tables in many AWS accounts while preserving each end user's identity and audit trail. The correct design uses an outbound credential provider with cross-account AssumeRole calls and IAM session tags, which scales to 40+ accounts with minimal operational overhead.
Common mistake: A frequent wrong pick is C, assuming AWS RAM is the right way to centralize DynamoDB access and that shared-resource permissions satisfy the audit requirement; RAM sharing does not preserve the end user's credential context, and it adds share-management overhead across business units.
Expert Analysis
Why the Answer Is Correct
Option A is correct because AgentCore's outbound credential provider can assume an IAM role in each business unit account, so the assistant uses short-lived credentials scoped to that account's DynamoDB tables. Session tags passed during AssumeRole carry the end-user identity into the assumed-role session, and CloudTrail records the role session and tags for audit trails. This centralizes one assistant and scales by adding trust and permissions in new accounts, which is far less overhead than duplicating agents. TNT87's point that "a single assistant can orchestrate cross-account workflows" matches the requirement to expand beyond 40 accounts.
Why the Other Options Are Wrong
B deploys a separate AI assistant in each business unit plus API Gateway routing and Lambda authorizers, creating duplicate agent configurations and fragmented audit trails. C relies on AWS RAM to share DynamoDB tables centrally, but resource sharing does not provide the per-user credential context needed for full auditability and adds share-management overhead across business units. D uses SCPs, which only set the maximum permissions for accounts in AWS Organizations and never grant access or create cross-account trust. Directly referencing cross-account DynamoDB table ARNs in resource definitions also does not establish the required role trust or user identity context.
Community Comment Notes
The community discussion by TNT87 strongly favors option A, noting that AssumeRole lets the central AI assistant access DynamoDB tables in multiple distinct member accounts without separate agent deployments. TNT87 also emphasizes least operational overhead and high scalability, observing that "a single assistant can orchestrate cross-account workflows." That aligns with the requirement to grow from 25 to more than 40 AWS accounts. No comments argue for B, C, or D.
Official Reference
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
- https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
These links open the official vendor documentation in a new tab.
Exam Strategy
For cross-account AgentCore questions, eliminate options that duplicate the agent, rely on SCPs as grants, or share resources without user identity context. Look for AssumeRole plus session tags when the requirement mentions per-user credentials and audit trails.
Frequently Asked Questions
Why does AWS RAM not satisfy the DynamoDB cross-account requirement?
Why can't SCPs grant AgentCore access to DynamoDB in other accounts?
Discussion 2 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 2
-
TNT87 👍 1 Answered ALeast Operational Overhead & High Scalability: Centralizing the AI assistant using Amazon Bedrock AgentCore allows the architecture to easily scale from 25 to more than 40 accounts. Instead of deploying and managing duplicate agent configurations across dozens of business unit accounts (as proposed in Option B), a single assistant can orchestrate cross-account workflows
-
TNT87 👍 1 Answered ACross-Account Access: Implementing AssumeRole allows the central AI assistant to securely access DynamoDB tables residing in multiple distinct member accounts within the AWS Organization without requiring separate agent deployments
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AIP-C01 Questions
Access 110 questions with complete answers and detailed explanations.
View Full AIP-C01 Practice Test →