A logistics corporation is migrating its legacy workloads to a multi-account environment managed by AWS Organizations. The new structure consists of three organizational units (OUs): Core-Services, Workloads-Dev, and Workloads-Prod. The security team mandates the following governance controls:
* Developers in Workloads-Dev must be prohibited from deploying internet-facing Application Load Balancers (ALBs) or provisioning internet gateways, while retaining permissions to deploy private workloads.
* No entity, including the administrative role within member accounts, in Workloads-Prod may delete or modify Amazon GuardDuty configurations, AWS Security Hub settings, or AWS CloudTrail trails.
* AWS CloudTrail logs from all accounts must be aggregated into a central Amazon S3 bucket within a dedicated Log-Archive account, encrypted using a KMS key.
Which two actions should the solutions architect take to implement these controls?
- Attach a Service Control Policy (SCP) to the Workloads-Dev OU that denies ec2:CreateInternetGateway and ec2:AttachInternetGateway, and denies elasticloadbalancing:CreateLoadBalancer if the elasticloadbalancing:Scheme condition key is not equal to internal. Attach a separate SCP to the Workloads-Prod OU that denies guardduty:DeleteDetector, securityhub:DisableSecurityHub, and cloudtrail:DeleteTrail actions.Answer
- In the Log-Archive account, create a customer managed KMS key. Configure the key policy to grant the AWS CloudTrail service principal permission to use the key for encrypting logs, and allow cross-account access. Configure the central S3 bucket policy to allow the CloudTrail service principal from the organization to write objects, and reference this KMS key in the CloudTrail configuration for all member accounts.Answer
- CCreate an IAM permissions boundary and apply it to all developer roles in the Workloads-Dev accounts to prevent the creation of public load balancers and internet gateways. For the Workloads-Prod accounts, create an IAM policy that denies security service deletion and attach it directly to the local administrator roles in each member account.
- DIn the Log-Archive account, configure the central S3 bucket to use default encryption with the AWS-managed S3 key (aws/s3). Update the bucket policy to allow the AWS Organizations ID as a principal, ensuring that CloudTrail in all member accounts can write to the bucket and use the default managed key for encryption.
- EUse AWS Resource Access Manager (RAM) to share the central S3 bucket in the Log-Archive account with all accounts in the organization. Configure CloudTrail in each member account to write to the local RAM resource share, ensuring secure transit and automated compliance reporting.