A solutions architect is managing a multi-account environment using AWS Organizations. The organizational unit (OU) hierarchy is structured as follows:
* Root
* Workloads (OU)
* Production (OU)
* Account-A (Production member account)
The security team has removed the default FullAWSAccess Service Control Policy (SCP) from both the Workloads and Production OUs to implement a custom allow-list model. The Root OU still has FullAWSAccess attached.
The following custom SCPs are attached:
SCP-1 (attached to Workloads OU):
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCoreServices",
"Effect": "Allow",
"Action": [
"ec2:*",
"s3:*",
"iam:*",
"sts:*"
],
"Resource": "*"
}
]
}
SCP-2 (attached to Production OU):
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowStorageAndCompute",
"Effect": "Allow",
"Action": [
"ec2:*",
"s3:*"
],
"Resource": "*"
},
{
"Sid": "DenyUnsecureStorage",
"Effect": "Deny",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::*",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}
In Account-A, an IAM user named PlatformAdmin has an IAM policy attached that grants administrator access ("Action": "*", "Resource": "*").
PlatformAdmin attempts to perform two actions in Account-A:
1. Create a new IAM role.
2. Upload a log file to an Amazon S3 bucket using HTTPS.
Which of the following describes the outcomes of these actions?
- The IAM role creation fails because IAM actions are not allowed by the SCP at the Production OU level. The S3 bucket upload succeeds because S3 actions are allowed by the SCPs at all levels and the secure transport condition in the Deny statement is not met.Answer
- BBoth actions succeed because the local IAM policy grants full administrator access, and there is no explicit Deny statement for IAM actions in any of the attached SCPs.
- CBoth actions fail because the default FullAWSAccess SCP was removed from the OUs, which implicitly denies all actions at the member account level unless the FullAWSAccess SCP is explicitly re-applied at the account level.
- DThe IAM role creation succeeds because IAM actions are allowed by the SCP at the parent Workloads OU level. The S3 bucket upload fails because the Deny statement in SCP-2 blocks all S3 PutObject actions regardless of the transport protocol.