A media streaming company is organizing its cloud footprint using AWS Organizations. To enforce compliance, the security team must restrict specific activities within member accounts without affecting the management account. The environment consists of a Production OU and a Sandbox OU. The compliance rules are:
1. Production accounts must not be able to disable AWS Security Hub or modify resource-tagging policies.
2. Sandbox accounts must be prohibited from launching EC2 instances that are not of the 't3' or 'm5' instance families.
Which combination of actions should a Solutions Architect implement to meet these governance requirements? (Select TWO.)
- Attach a Service Control Policy (SCP) to the Production OU that denies Security Hub configuration modifications and tag-policy changes.Answer
- Attach a Service Control Policy (SCP) to the Sandbox OU that denies the ec2:RunInstances action unless the ec2:InstanceType condition key matches t3.* or m5.*.Answer
- CAttach the compliance SCPs directly to the Organization Root to ensure they inherit down to the management account and all member OUs.
- DCreate individual IAM users in each member account for developers and administrators, and configure IAM inline policies to restrict these actions.
- EConfigure the root credentials of the management account to run a daily scheduled script that terminates non-compliant EC2 instances and recreates deleted tag policies in all member accounts.
Answer
Attach a Service Control Policy (SCP) to the Production OU that denies Security Hub configuration modifications and tag-policy changes, and attach a Service Control Policy (SCP) to the Sandbox OU that denies the ec2:RunInstances action unless the ec2:InstanceType condition key matches t3.* or m5.*.
The correct strategy combines target-specific Service Control Policies (SCPs) attached directly to the respective Organizational Units (OUs). Attaching a policy to prevent disabling Security Hub and modifying tag policies directly to the Production OU ensures that compliance is enforced only for production resources. Similarly, attaching an SCP restricting instance types to the Sandbox OU ensures developers have freedom to experiment within cost-effective boundaries. In both cases, the policies do not affect the management account, which satisfies the requirement to exclude it from the restrictions.
Step-by-Step Solution
Key Concept
AWS Organizations Service Control Policies (SCPs) and Organizational Unit (OU) policy inheritance.