Question 269:
You have an ADFS identity provider, and you need to configure the SAML 2.0-compliant IdP and AWS to permit federated users to access the AWS Management Console. You create an IAM role for federated users to assume. Its trust policy is as follows:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": {"Federated": "arn:aws:iam::ACCOUNT:saml-provider/ExampleSSOProvider"},
"Action": "sts:AssumeRoleWithSAML",
"Condition": {"StringEquals": {
"saml:edupersonorgdn": "Example",
"saml:aud": "https://signin.aws.amazon.com/saml"
}}
}]
}
Which part of the IAM trust policy ensures that the IAM role is assumed only for sign-in to the AWS Management Console?
Answer options:
A."saml:aud": "https://signin.aws.amazon.com/saml"
B."Principal": {"Federated": "arn:aws:iam::ACCOUNT:saml-provider/ExampleSSOProvider"}
C."saml:edupersonorgdn": "Example"
D."Action": "sts:AssumeRoleWithSAML"