Question 185:
You have found that a team member uses AWS Resource Access Manager (RAM) in his AWS account to share resources with IAM users outside of the AWS Organization. You want to apply an SCP policy in the AWS Organization to prevent users from creating such resource shares in RAM. Which of the following SCP policies would you use?
Answer options:
A.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ram:CreateResourceShare",
"ram:UpdateResourceShare"
],
"Resource": "*",
"Condition": {
"Bool": {"ram:RequestedAllowsInternalPrincipals": "true"
}
}
}
]
}
B.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ram:*"
],
"Resource": "*",
"Condition": {
"Bool": {
"ram:AllowsInternalPrincipalsOnly": "true"
}
}
}
]
}
C.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"ram:CreateResourceShare",
"ram:UpdateResourceShare"
],
"Resource": "*",
"Condition": {
"Bool": {"ram:RequestedAllowsExternalPrincipals": "true"
}
}
}
]
}
D.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"ram:*"
],
"Resource": "AWS:Organization",
"Condition": {
"Bool": {
"ram:RequestedAllowsExternalPrincipals": "false"
}
}
}
]
}