A retail company uses AWS Organizations to manage its multi-account environment. The organization structure has a parent `Workloads` Organizational Unit (OU) containing a `Development` child OU and a `Production` child OU.
The security team wants to enforce the following governance controls:
1. Member accounts in the `Development` OU must be prevented from sharing AWS resources externally with accounts outside the AWS Organization using AWS Resource Access Manager (RAM).
2. Users in the `Development` OU must be blocked from deleting or modifying AWS Config rules to prevent disabling compliance checks.
3. These restrictions must be enforced even for the root user of the member accounts and must not be bypassable by administrator users in those accounts.
Which solution should a solutions architect implement to meet these requirements with the least administrative overhead?
- Enable resource sharing with AWS Organizations in AWS RAM from the management account. Attach a Service Control Policy (SCP) to the `Development` OU that denies `ram:CreateResourceShare` and `ram:AssociateResourceShare` actions if the `ram:AllowsExternalPrincipals` condition key is set to true, and denies the `config:PutConfigRule`, `config:DeleteConfigRule`, and `config:StopConfigurationRecorder` actions. Configure local IAM policies in the member accounts to grant standard developer permissions.Cevap
- BAttach a Service Control Policy (SCP) to the `Development` OU that explicitly allows `ram:CreateResourceShare` only when sharing with the `Production` OU, and allows read-only access to AWS Config. Remove all local IAM policies from the member accounts, as the SCP will automatically delegate and restrict the permitted actions to all users.
- CConfigure AWS Resource Access Manager (RAM) by enabling resource sharing with AWS Organizations in the management account. Rely on RAM's default behavior, which automatically blocks all external resource sharing when organizational sharing is enabled. For AWS Config, have local administrators in the member accounts attach an IAM permissions boundary to all developers to deny AWS Config rule modifications.
- DConfigure SAML 2.0 federation for the member accounts. In the trust relationship policy of the federated IAM roles, include `ram:CreateResourceShare` and `config:PutConfigRule` under the action list alongside `sts:AssumeRoleWithSAML` to deny these permissions during federation.