Minutes later, IAM Access Analyzer flags the role as accessible outside the organization. The administrator must remove unintended access yet still allow only the DevUser IAM user in Account B (123456789012) to assume the role. What should the administrator do to meet these requirements and clear the finding?
Update the role's trust policy to replace the root ARN with "arn:aws:iam::123456789012:user/DevUser", then re-run Access Analyzer and archive the resolved finding.
Attach an IAM permissions boundary to the role that denies sts:AssumeRole actions from the Account B root user.
Disable the analyzer for the Region so that the finding no longer appears in the console.
Add a Condition element to the trust policy that requires aws:PrincipalOrgID to match Account B's organization ID.
IAM Access Analyzer identifies any principal outside the analyzer's AWS organization or account that can access a resource. Granting trust to the root of another account exposes the role to every principal in that account, so Access Analyzer flags the role. To restrict access to a single user, the trust policy's Principal element must specify that exact user ARN. Once the policy is updated, Access Analyzer automatically reevaluates the resource; because only one specific external principal can assume the role, the administrator can archive or resolve the finding. Permissions boundaries do not affect who can assume a role, conditions based on organization ID still permit all principals in that organization, and disabling Access Analyzer only hides the problem without fixing it.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a trust policy in AWS IAM?
Open an interactive chat with Bash
Why does granting access to the root ARN of an AWS account cause a security risk?
Open an interactive chat with Bash
How does IAM Access Analyzer help secure AWS resources?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Security and Compliance
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .