AWS SysOps Admin SOA-C02 · Deployment, Provisioning, and Automation · medium

An enterprise manages 85 AWS accounts organized into 4 Organizational Units (OUs) in AWS Organizations. Whenever a new AWS account is created or moved into the Production-OU, a baseline AWS CloudFormation template (creating an IAM support role, AWS Config recorder, and GuardDuty detector) must be automatically deployed to that account across us-east-1 and eu-west-1, and automatically removed if the account leaves the OU. Which CloudFormation feature accomplishes this?

Published · Last updated · checked before publication — how we verify questions

Options

  • ACloudFormation Change Sets executed manually in each of the 85 accounts
  • BCloudFormation StackSets with Service-Managed Permissions targeting the Organization OUsCorrect answer
  • CCloudFormation Fn::ImportValue intrinsic functions exporting across all 85 member accounts
  • DCloudFormation Custom Resources backed by a local bash script

Answer: B. CloudFormation StackSets with Service-Managed Permissions targeting the Organization OUs

CloudFormation StackSets with service-managed permissions is the feature built for this scenario. When you enable trusted access between CloudFormation StackSets and AWS Organizations, StackSets creates the required IAM roles in target accounts for you. You then deploy the template to an organization or to specific OUs and choose multiple Regions, here us-east-1 and eu-west-1. Turning on automatic deployment makes StackSets create stack instances in any account that is created in or moved into the target OU, and it can remove those instances when the account leaves the OU, provided the retain-stacks setting is off. That matches the requirement for hands-off baseline deployment of an IAM role, Config recorder and GuardDuty detector across 85 accounts. The common trap is picking a feature that sounds like multi-account deployment but is scoped to one stack, or forgetting that self-managed StackSets require manual role setup and do not offer automatic deployment by OU.

Why the other options are wrong

  • A. CloudFormation Change Sets executed manually in each of the 85 accounts — Change sets are a preview of the modifications an update would make to a single stack in one account and Region. Executing them manually in 85 accounts is not automated and gives no OU-membership-driven deployment or removal.
  • C. CloudFormation Fn::ImportValue intrinsic functions exporting across all 85 member accounts — Fn::ImportValue lets one stack consume an output exported by another stack, and only within the same account and Region. It is a cross-stack reference mechanism, not a way to deploy templates to other accounts.
  • D. CloudFormation Custom Resources backed by a local bash script — A custom resource lets a stack run custom provisioning logic, usually through Lambda or SNS, and a local bash script is not a managed option. It has no integration with Organizations OU membership, so it cannot deploy to or remove baselines from accounts automatically.

All Deployment, Provisioning, and Automation questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.