AWS Certified Developer Associate DVA-C01 – Question226

A developer is writing an IAM policy document that grants administrator access to AWS Key Management Service (AWS KMS) for a federated user. The federated IAM role name is FederatedIAMRole. The user name is KeyAdmin.
How should the developer set the principal in the KMS key policy to meet these requirements?

A.
"Principal": { "AWS": "arn:aws:sts::123456789012:role/FederatedIAMRole/KeyAdmin" }
B. "Principal": { "AWS": "arn:aws:sts::123456789012:user/FederatedIAMRole/KeyAdmin" }
C. "Principal": { "AWS": "arn:aws:sts::123456789012:user/KeyAdmin" }
D. "Principal": { "AWS": "arn:aws:sts::123456789012:assumed-role/FederatedIAMRole/KeyAdmin" }

Correct Answer: D