An enterprise is establishing a multi-account structure in AWS Organizations. The Security team must enforce two governance requirements across all accounts in a newly created Organizational Unit (OU) named Workloads:
1. Prevent local administrators in member accounts from deleting or modifying a cross-account IAM role named SecurityAuditRole.
2. Allow applications in member accounts to encrypt data in their local Amazon S3 buckets using a centralized, customer-managed AWS KMS key hosted in a dedicated Security account. The key must only be usable for S3 encryption services.
Which combination of actions should a solutions architect take to meet these requirements? (Select TWO.)
- Attach a Service Control Policy (SCP) to the Workloads OU that denies the iam:DeleteRole, iam:PutRolePolicy, and iam:DeleteRolePolicy actions when the resource is the SecurityAuditRole.Answer
- In the Security account, create a KMS customer managed key and configure its key policy to grant the kms:GenerateDataKey and kms:Decrypt permissions to the member account root principals, using a condition that restricts the kms:ViaService to s3.amazonaws.com.Answer
- CAttach a Service Control Policy (SCP) to the Workloads OU that explicitly allows the member accounts to assume the SecurityAuditRole and denies all other roles from modifying it.
- DIn the Security account, modify the key policy of the AWS-managed KMS key for Amazon S3 (aws/s3) to allow cross-account access from the member accounts in the Workloads OU.
- EUse AWS Resource Access Manager (RAM) to share the AWS-managed KMS key for Amazon S3 (aws/s3) from the Security account to the Workloads OU.
Answer
Attach a Service Control Policy (SCP) to the Workloads OU that denies modifying the SecurityAuditRole, and create a KMS customer managed key in the Security account with a key policy granting access to member accounts restricted via the kms:ViaService condition for S3.
Protecting a critical cross-account role is best achieved using a Service Control Policy (SCP) targeting the specific role name/ARN. For S3 cross-account encryption, a KMS customer managed key must be used since AWS-managed keys do not support policy modification or cross-account access. The key policy must allow the member accounts' principals to use the key, scoped down with a condition matching the S3 service principal.
Step-by-Step Solution
Key Concept
Centralized resource access control and policy guardrails using SCPs and KMS key policies in a multi-account AWS Organization.
Estimated Time:1m 30s