Share CloudFormation StackSets from an admin account and use SCPs to block non-compliant provisioning
Short answer
AD Share CloudFormation StackSets from an admin account to the app account and use SCPs to block non-compliant provisioning.
Question
Key Takeaways
StackSets (A) centrally deploy approved, versioned templates to the app account, satisfying the 'all infra via CloudFormation from approved accounts' mandate proactively. SCPs (D) act as preventive guardrails that block resources not meeting conditions (e.g., wrong account or missing naming). Config managed rules (E) only detect after the fact, so they do not enforce the 'must comply' mandate on their own. A+D is the preventive, proactive pairing.
Three deployment mandates: EC2 only from approved accounts, DynamoDB with standardized naming, and all infrastructure via CloudFormation. Use AWS CloudFormation StackSets created in an administrator account and shared/restricted to the application account (enforces 'deployed by CloudFormation from an approved account'), and apply SCPs that deny provisioning of specific resources unless compliance conditions (e.g., approved account, naming) are met—preventing non-compliant resources org-wide.
Common mistake: Relying on AWS Config managed rules alone (E)—they are detective, not preventive, so non-compliant resources can still be created before a finding fires. Building templates in the app account and sharing output back to admin (B) inverts the approved-account control. Permissions boundaries (C) limit a principal but do not enforce organization-wide provisioning rules like SCPs.
Expert Analysis
Why the Answer Is Correct
CloudFormation StackSets (A) let an administrator account define compliant templates and deploy them to the application account, restricting use to that account—this enforces 'infrastructure deployed by CloudFormation from approved accounts.' SCPs (D) provide preventive guardrails that deny provisioning of specific resources unless the internal compliance conditions (approved account, naming convention) are satisfied. Together they proactively enforce all three mandates.
Why the Other Options Are Wrong
E (AWS Config managed rules) detects non-compliance but does not prevent it, so it cannot satisfy a 'deployments must comply' requirement alone. B creates templates in the app account, weakening the approved-account control. C (permissions boundaries) constrain a principal's max permissions but are not the organization-wide preventive mechanism SCPs are. A and D are the correct combination (note: community was split A+D vs D+E; A+D is the proactive enforcement pair).
Community Comment Notes
Community was split 50/50 between A,D and D,E. The stronger interpretation favors A,D: StackSets centrally deploy compliant CloudFormation from an approved admin account, and SCPs prevent non-compliant provisioning. D,E substitutes detective Config for the proactive StackSets deployment control.
Official Reference
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-overview.html
- https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples_general.html
These links open the official vendor documentation in a new tab.
Community Votes
50% of anonymous learners picked answer AD. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
IPLogic 👍 1To meet the company’s compliance requirements for deploying workloads, the application team should take the following steps: A. Create CloudFormation templates in an administrator AWS account. Share the stack sets with an application AWS account. Restrict the template to be used specifically by the application AWS account. This ensures that all infrastructure is deployed using approved CloudFormation templates, maintaining consistency and compliance across the organization. D. Use SCPs to prevent the application AWS account from provisioning specific resources unless conditions for the internal compliance requirements are met.
-
AWSLoverLoverLoverLoverLover 👍 1The correct answers are: D. Use SCPs to prevent the application AWS account from provisioning specific resources unless conditions for the internal compliance requirements are met. E. Activate AWS Config managed rules for each service in the application AWS account. D. Use SCPs (Service Control Policies) to enforce compliance on resource provisioning. Why the other options are incorrect: A. Create CloudFormation templates in an administrator AWS account and share them. ❌ While CloudFormation helps with standardization, it does not enforce compliance. A user could still create resources manually without CloudFormation.
-
mikelord 👍 1Agree, AD seems to be right answer
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.