DOP-C02 - Security and Compliance - Section 6.3

Apply automated security controls and guardrails with AWS Config, AWS Control Tower, service control policies and CloudFormation hooks and AWS CloudFormation Guard.

Apply preventive guardrails with service control policies and AWS CloudFormation Guard rules that block non-compliant resources before they are deployed. Use AWS Control Tower to set up a landing zone and AWS Config managed rules to continuously evaluate resources against detective controls.

AWS ConfigAWS Control TowerService control policiesAWS CloudFormation Guard

Practice question for this objective

Free sampleSecurity and Compliancemedium

An enterprise governs its multi-account environment with AWS Control Tower and is onboarding a new organisational unit for regulated workloads. Governance requires a hard block so accounts in that organisational unit can never launch resources outside two approved AWS Regions, and a continuous check that reports any account whose Amazon CloudWatch log groups lack a configured retention period without interrupting operations. The team wants to use the governance model Control Tower already provides rather than building separate tooling. Which TWO controls should they enable on the organisational unit? (Select TWO.)

  • AEnable a Control Tower preventive control backed by a service control policy that denies actions in any Region outside the two approved Regions, applied to the organisational unit so disallowed-Region activity is rejected. Correct
  • BWrite an AWS CloudFormation Guard rule set and run it as a pipeline stage so deployments into the organisational unit are rejected when they target a disallowed Region or omit a log retention period.
  • CConfigure an AWS Config conformance pack deployed directly through StackSets to the organisational unit and rely on it alone to both deny disallowed Regions and report any missing log retention.
  • DEnable a Control Tower detective control backed by an AWS Config rule that evaluates whether each account has a CloudWatch Logs retention period set and reports any non-compliant account on the dashboard without blocking work. Correct
Use an AWS Control Tower preventive control for a Region block and a detective control for log-retention drift reporting on the governed organisational unit. Control Tower preventive controls are enforced through service control policies, so a Region-deny control rejects activity outside approved Regions and cannot be evaded locally, while detective controls are implemented as AWS Config rules that continuously evaluate configuration such as CloudWatch Logs retention and surface non-compliant accounts on the dashboard without blocking work. Choosing the matching control type for each requirement is the key judgement.

Why A is correct: A Control Tower preventive control is implemented as a service control policy and denies actions in non-approved Regions across the organisational unit, delivering the hard Region block the regulator requires.

Why B is wrong: CloudFormation Guard only evaluates templates that pass through that pipeline, so it cannot block console or CLI actions in other Regions and is not part of the Control Tower governance model the team wants to reuse.

Why C is wrong: A conformance pack only evaluates and reports compliance, so it cannot deny disallowed-Region activity, and deploying it outside Control Tower bypasses the governance model the requirement asks the team to use.

Why D is correct: A Control Tower detective control uses an AWS Config rule to continuously evaluate log-retention configuration and flag drift on the dashboard, reporting non-compliance without interrupting operations as required.

See more DOP-C02 practice questions, answers explained.

More in this domain

Back to all Security and Compliance objectives, or the DOP-C02 cert hub.

Examworthy is not affiliated with or endorsed by Amazon Web Services. Original, blueprint-aligned practice material only.