AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 44

A company has enabled all features for its organization in AWS Organizations. The organization contains 10 AWS accounts. The company has turned on AWS CloudTrail in all the accounts. The company expects the number of AWS accounts in the organization to increase to 500 during the next year. The company plans to use multiple OUs for these accounts.
The company has enabled AWS Config in each existing AWS account in the organization. A DevOps engineer must implement a solution that enables AWS Config automatically for all future AWS accounts that are created in the organization.
Which solution will meet this requirement?

Answer options

Correct answer: B

Explanation

Option B is correct because using an AWS CloudFormation stack set allows you to automate the deployment of AWS Config for any new accounts created in the organization. Options A and D involve using EventBridge and Lambda or Systems Manager, but they do not provide a systematic approach for future accounts like a stack set does. Option C, while allowing API calls, does not directly enable AWS Config for new accounts.