AWS Certified Solutions Architect - Professional free question 10 / 10 · Domain 5: Operational Excellence and Automation
A security officer of a group company runs a patching runbook through Systems Manager Automation on dozens of accounts in several OUs of AWS Organizations. Runs should be started from one place, with minimal use of the management account's permissions, and the run history should be reviewable in one place for audit. The target accounts will keep growing. Which account fits best to run against the OUs?
- Run from any member account inside the target OU, and do not use the management account; every member account can list the accounts in the OU
- Run from a delegated administrator account against the target OUs; it can list the accounts, so the management account is not needed
- An OU cannot be a direct target, so specify the account IDs one by one; running by OU is not supported
- Create AutomationAdministrationRole in each target account; do not create the role in the account that runs the automation
Show the answer and explanation
Answer: B
Why this is correct
To run automations across OUs, the central account must have permissions to list all of the accounts in the OUs. This is only possible from a delegated administrator account or the management account of the organization. AWS recommends following the AWS Organizations best practices and using a delegated administrator account. You create AWS-SystemsManager-AutomationAdministrationRole in the central account, and AWS-SystemsManager-AutomationExecutionRole in the targeted accounts.
Why the other options are wrong
"Run from any member account inside the target OU, and do not use the management account; every member account can list the accounts in the OU" … A member account cannot list the accounts in an OU. You need a delegated administrator or the management account.
"An OU cannot be a direct target, so specify the account IDs one by one; running by OU is not supported" … Running against OUs is supported. You are not limited to specifying accounts individually.
"Create AutomationAdministrationRole in each target account; do not create the role in the account that runs the automation" … The Administration role is created in the central account, and the Execution role is created in the targeted accounts.
Key point
For automations that target OUs, run from a delegated administrator (recommended) or the management account. Put the Administration role in the central account and the Execution role in the targets.