Course menuDOP-C02

Exams / DOP-C02 / StackSets across accounts and Regions / Question 1

DOP-C02 practice question: StackSets across accounts and Regions

Configuration Management and IaC A free question from our original DOP-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A regional bank has 180 AWS accounts in an AWS Organization, arranged in organizational units for retail, commercial and shared services. The security team needs a baseline IAM role and an audit logging stack in every account in three Regions.

New accounts are created every month by the bank's account vending process and must receive the baseline without anyone running a deployment by hand. The security team also needs each rollout to stop if too many accounts fail, so that a bad template does not reach the whole organization at once.

The bank wants the StackSets administrator to be a shared-services account, and it does not want to create roles in each member account by hand.

Which TWO actions meet these requirements? (Choose two.)

Choose two answers.

  1. A. Create the StackSet with service-managed permissions from the shared-services account as a delegated administrator, and enable automatic deployment to the organizational units so that new accounts receive the stacks.
  2. B. Create a self-managed StackSet and manually create the administrator and execution roles in each of the 180 accounts through a Lambda function that the account vending process runs.
  3. C. Deploy the baseline template through a CloudFormation stack in each account, and use a CodePipeline pipeline in the shared-services account to run the same stack in every account in sequence.
  4. D. Create one StackSet for each account and Region pair, so that a failure in one account cannot affect the others, and deploy each StackSet from the management account.
  5. E. Set the StackSet operation preferences to limit the maximum concurrent accounts and to set a failure tolerance, so that the operation stops in a Region once the failed accounts exceed the tolerance.
Show the answer and explanation

Answers: A, E

Explanation

StackSets with service-managed permissions, run from a delegated administrator account, create the required roles in member accounts and can deploy automatically to accounts placed in target OUs. Operation preferences limit concurrency and failure tolerance so that a bad template stops early. Self-managed roles, separate stacks and per-pair StackSets each add work or miss an automation requirement.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on StackSets across accounts and Regions? The 5 full-length practice sets have 7 more StackSets across accounts and Regions questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets