An organization uses AWS Organizations with separate accounts for finance and marketing. The finance team’s data processing app (in the finance account) uses Lambda and stores confidential data in a DynamoDB table. The marketing team (in a different account) must have access to only specific attributes of that DynamoDB table. How should a solutions architect provide the marketing team the required limited access?
Choose an answer
Tap an option to check your answer.
Correct answer: In the finance account, create an IAM role that includes IAM policy conditions to grant fine-grained access to specific DynamoDB attributes. Establish trust so the marketing account can assume that role. In the marketing account, create an IAM role that can assume the finance account role..
Why this is the answer
The correct approach involves cross-account role assumption. The finance account, which owns the DynamoDB table, creates an IAM role with an inline policy that specifies fine-grained access to particular DynamoDB attributes using conditions. This role's trust policy is configured to allow the marketing account to assume it. The marketing account then creates an IAM role that has permission to assume the finance account's role. This establishes a secure, least-privilege access path. Incorrect options: SCPs are guardrails for maximum permissions within an OU; they do not grant access. Resource-based policies on DynamoDB tables can grant cross-account access, but the marketing account would still need an IAM role with permissions to access the table, not just a role to assume. This option is less explicit about the assumption mechanism. IAM permissions boundaries limit the maximum permissions an IAM entity can have; they do not grant access themselves. The primary mechanism for granting access remains the IAM policy attached to the role.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed