An enterprise is designing a multi-account architecture on AWS using AWS Organizations with all features enabled. The networking team has created a centralized VPC in a dedicated Network account and wants to share specific subnets with application development teams operating in separate accounts under an Application Organizational Unit (OU). The application workloads run on a combination of Amazon EC2 instances and AWS Fargate tasks. All EBS volumes and S3 buckets must be encrypted at rest using keys managed in a centralized Security account. The finance team requires that cost optimization benefits are maximized across all compute workloads, and billing is consolidated. Which TWO strategies should the solutions architect implement to meet these requirements securely and cost-effectively?
- Enable resource sharing within AWS Organizations from the management account. In the Network account, use AWS Resource Access Manager (RAM) to create a resource share for the subnets and associate it with the Application OU. Purchase Compute Savings Plans in the Organizations management account to automatically apply discounts to both EC2 instances and Fargate tasks across the consolidated billing family.Answer
- In the Security account, create a Customer Managed Key (CMK) and configure its key policy to allow the IAM principals in the Application accounts to perform KMS cryptographic operations and create grants. In the Application accounts, configure IAM policies allowing users to create grants on the Security account's CMK, and specify this key when launching EC2 instances and creating S3 buckets.Answer
- CIn the Security account, configure the AWS-managed KMS key for EBS (aws/ebs) with a cross-account key policy that lists the Application account root users as principals. In the Application accounts, configure the EC2 instances to use this AWS-managed key for encrypting all EBS volumes.
- DAttach a Service Control Policy (SCP) to the Application OU that explicitly grants ram:AssociateResourceShare permissions. In the Application accounts, configure the local IAM policies to automatically accept the subnet resource share invitations from the Network account.
- EPurchase EC2 Instance Savings Plans in the Organizations management account to cover the compute usage of both EC2 and Fargate across all member accounts. In the Network account, use AWS RAM to create a resource share for the EC2 Instance Savings Plans and associate it with the Application OU.