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

A company uses an organization in AWS Organizations to manage its AWS accounts. The company's DevOps team has developed an AWS Lambda function that calls the Organizations API to create new AWS accounts.

The Lambda function runs in the organization's management account. The DevOps team needs to move the Lambda function from the management account to a dedicated AWS account. The DevOps team must ensure that the Lambda function has the ability to create new AWS accounts only in Organizations before the team deploys the Lambda function to the new account.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it allows the Lambda function in the new account to assume a role in the management account that has the required permissions to create accounts in Organizations. The other options either do not provide the necessary permissions correctly or involve incorrect configurations that do not align with the requirement of allowing account creation solely within Organizations.