Certopolis

AWS Certified Solutions Architect – Professional

AWS Control Tower controls and Account Factory for SAP-C03

The AWS Control Tower guide describes three control behaviors. Preventive controls disallow actions, mainly with SCPs. Detective controls report noncompliant resources with AWS Config rules. Proactive controls check resources in CloudFormation hooks before they are provisioned. Controls apply to whole OUs, and Account Factory provisions accounts only into OUs that have the AWSControlTowerBaseline enabled.

Preventive, detective and proactive controls

A preventive control disallows the action that would break the policy. Control Tower implements preventive controls with service control policies, resource control policies and declarative policies from AWS Organizations. Their status is enforced or not enabled, and they are supported in all AWS Regions.

A detective control finds noncompliant resources and shows them on the dashboard. It is an AWS Config rule, its status is clear, in violation or not enabled, and it works only in the Regions that Control Tower supports. It reports a violation and does not stop it.

A proactive control checks a resource before it is provisioned and stops a noncompliant one from being created. It runs as a CloudFormation hook, in the preCreate and preUpdate handlers, so it sees only resources created or updated through CloudFormation stack operations. AWS says these controls may not affect requests made through the console, the AWS APIs, SDKs or other infrastructure-as-code tools. A rule that must refuse a request from any tool needs a preventive control.

Guidance is a separate label: mandatory, strongly recommended or elective. It is independent of the behavior. Strongly recommended and elective controls apply at the OU level, to all accounts in that OU. From landing zone version 4.0, mandatory controls are no longer applied by default.

OUs, baselines and Account Factory

Because a control covers every account in the OU it is enabled on, accounts that need different sets of controls belong in different OUs.

Registering an OU in Control Tower enables the AWSControlTowerBaseline on it. That baseline sets up the resources and controls member accounts need for compliance monitoring, auditing and security monitoring. Account Factory can provision, update or customize a single account only in an OU that has this baseline enabled. An OU that exists only in AWS Organizations cannot receive an Account Factory account until then.

By default, the IAM Identity Center users who provision accounts must be in the AWSAccountFactory group or the management group. Accounts created through Account Factory can later be updated, moved to another OU, unenrolled or closed.

Customizations for AWS Control Tower (CfCT) adds your own resources on top. Its customizations are CloudFormation templates, SCPs and RCPs, deployed to individual accounts or to OUs. It is integrated with Control Tower lifecycle events, so when Account Factory creates an account, the resources attached to that account are deployed automatically. A target OU in CfCT must also have the AWSControlTowerBaseline enabled.

Drift when accounts or policies change outside Control Tower

Moving an account from a registered OU to another OU creates moved member account drift. For an account from Account Factory you can resolve it by choosing Update account in the Control Tower console, by re-registering the OU that now contains the account, or by updating the provisioned product. Re-registering is the fastest route for several accounts. In an OU with more than 1,000 accounts, each moved account must be updated individually.

A move with auto-enrollment turned off can also leave inheritance drift. Control Tower applies the destination OU's controls but does not remove detective and proactive controls inherited from the previous OU. Updating the account, re-registering the OU and the ResetEnabledControl API do not remove them. Each leftover control has to be disabled with the DisableControl API. Preventive controls are not subject to this drift.

Auto-enrollment is a landing zone setting. When it is on, Control Tower applies the destination OU's baselines and control configurations to an account as it is moved. It does not repair drift left by an earlier move.

Editing or detaching a control's SCP in AWS Organizations is drift too. Re-register the OU, or update the landing zone, to restore it.

Region deny

Control Tower has two Region deny controls. AWS-GR_REGION_DENY applies to the landing zone as a whole, is set on the Landing zone settings page, and cannot be configured for individual OUs. CT.MULTISERVICE.PV.1 is enabled on the OUs you choose.

The landing zone control blocks operations in every Region that is not selected for governance, and in Regions where Control Tower is not available. Actions continue as usual in governed Regions. It applies to all top-level OUs that have the AWSControlTowerBaseline enabled and is inherited by the OUs below them, so an OU that was never registered is not covered. The home Region cannot be denied.

Certain global services, such as IAM and AWS Organizations, are exempt. The control's SCP lists them in a NotAction element. It is an elective, preventive control.

AWS warns that after the control is applied you have no access to resources in the denied Regions. Move or copy anything you need out of those Regions before you enable it.

Where the exam catches people

  • Believing a proactive control blocks console, API or Terraform requests: it is a CloudFormation hook and checks only CloudFormation stack operations.
  • Believing a detective control stops a noncompliant change: it reports the violation through an AWS Config rule.
  • Believing two accounts in one OU can have different sets of controls: a control applies to every account in the OU, so use separate OUs.
  • Believing Account Factory can create an account in any OU made in AWS Organizations: the OU needs the AWSControlTowerBaseline, which registering it enables.
  • Believing data in a Region can be moved out after Region deny is enabled: access to resources in denied Regions is lost once the control applies.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company is onboarding 50 product teams to its AWS Control Tower landing zone. Each team receives one production account and one development account, and every account is created through Account Factory. The security team has chosen a stricter set of controls for production accounts than for development accounts. Every account must be governed by its environment's set from the moment the account is created. Team ownership is already tracked with account tags. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Security, Compliance, and Governance building.

    Not that one: D is right. In the game your Security, Compliance, and Governance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    And a Control Tower control applies to the whole OU, every account in it, so environments that need different control sets need different OUs. Registered Prod and Dev child OUs, each with its own controls, satisfy both: each account is created directly into its environment's OU and is governed by that set from the start.

    Written from docs.aws.amazon.com/controltower/latest/userguide/account-factory.html

  2. A company governs 60 workload accounts with AWS Control Tower. Teams create Amazon RDS for PostgreSQL DB instances with AWS CloudFormation stacks, with Terraform pipelines that call the Amazon RDS API, and occasionally from the Amazon RDS console during incidents. A new standard requires storage encryption on every new DB instance in the workload OUs. The security team requires that any request to create an unencrypted DB instance is refused when it is made, whichever tool sends it. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Operational Excellence and Automation building.

    Not that one: C is right. In the game your Operational Excellence and Automation building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The Control Tower proactive control looks like the right tool because it checks before the resource exists, but it runs as a CloudFormation Hook on stack operations, so it would let the Terraform and console requests through.

    Written from docs.aws.amazon.com/controltower/latest/controlreference/proactive-controls.html

  3. A company uses AWS Control Tower with eu-central-1 as its home Region, and governs eu-central-1, eu-west-1, and us-east-1. A new policy allows workloads only in EU Regions. A finished pilot left Amazon S3 buckets and Amazon RDS snapshots in us-east-1 in 14 accounts, and that data must be kept and moved into eu-central-1. After the change, no account may create resources outside the EU, and AWS global services such as IAM must keep working. Which combination of steps will meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Security, Compliance, and Governance building.

    Not that one: C,E is right. In the game your Security, Compliance, and Governance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Removing us-east-1 from governance and enabling the control with the two EU Regions governed meets the policy. Control Tower warns that once the control is applied there is no access to resources left in the denied Regions, so the pilot data has to be copied into eu-central-1 before the control is enabled, not after.

    Written from docs.aws.amazon.com/controltower/latest/userguide/region-deny.html

Ask for something