Hard1 markMultiple Choice
Domain 1.4: Multi-Account EnvironmentControl TowerAWS ConfigCompliance

AWS SAP-C02 · Question 14 · Domain 1.4: Multi-Account Environment

An enterprise is using AWS Control Tower to manage its multi-account environment. They need to implement a custom security control: all new Amazon S3 buckets must have S3 Object Lock enabled for compliance reasons. This control is not available as a standard Control Tower guardrail. How should the Solutions Architect implement this automatically across all existing and future accounts?

Answer options:

A.

Create an SCP that denies s3:CreateBucket if the ObjectLockEnabled flag is false, and attach it to the root OU.

B.

Use AWS CloudFormation StackSets to deploy a custom AWS Config rule and an AWS Systems Manager Automation document for remediation to all accounts.

C.

Modify the Control Tower landing zone blueprint to include the custom rule.

D.

Create an Amazon EventBridge rule in the management account to monitor CloudTrail for CreateBucket events and trigger a Lambda function.

How to approach this question

Look for the standard AWS pattern for custom automated remediation across accounts.

Full Answer

B.Use AWS CloudFormation StackSets to deploy a custom AWS Config rule and an AWS Systems Manager Automation document for remediation to all accounts.✓ Correct
Deploy an AWS Config rule using CloudFormation StackSets to detect non-compliant buckets, and use Systems Manager Automation to remediate.
AWS Config rules combined with AWS Systems Manager Automation documents provide a robust framework for detecting and remediating non-compliant resources. CloudFormation StackSets allow deploying this framework across all accounts in an Organization.

Common mistakes

Trying to use SCPs for complex conditional logic that isn't supported by IAM condition keys.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 4

75 questions · hints · full answers · grading

More questions from this exam