A central role must trust any role under /automation/ in one specified member account, including roles recreated with the same names, but only while that account belongs to the company's organization. Assuming callers have sts:AssumeRole permission, which trust-policy design meets these requirements?
Show the answer
Correct answerD. Trust the member account principal; match aws:PrincipalArn to its automation path and require aws:PrincipalOrgID
AWhy not this: This restricts the account and organization but permits roles outside the required path.
BWhy not this: This admits matching roles from other organization accounts instead of only the specified member account.
CWhy not this: Direct role principals are bound to principal IDs, so deleting and recreating a role breaks that trust.
DWhy this is right: The account principal limits the account; ARN and organization conditions enforce the path and continuing organization membership.
Trusting the specified account with conditions on aws:PrincipalArn and aws:PrincipalOrgID enforces the account, path, and organization constraints. ARN conditions survive role recreation; directly named role principals are bound to principal IDs and do not.