nerdexam
Amazon

DOP-C02 · Question #189

A company uses AWS Organizations to manage its AWS accounts. The company has a root OU that has a child OU. The root OU has an SCP that allows all actions on all resources. The child OU has an SCP tha

The correct answer is C. Update the SCP in the child OU to allow all actions for Amazon EC2.. Explanation Option C is correct because the child OU's SCP is the actual barrier - it explicitly denies all actions except DynamoDB and Lambda, and SCPs act as guardrails that override even Administrator-level IAM permissions. Adding EC2 to the child OU's allow list removes this

Submitted by anna_se· Mar 6, 2026Security and Compliance

Question

A company uses AWS Organizations to manage its AWS accounts. The company has a root OU that has a child OU. The root OU has an SCP that allows all actions on all resources. The child OU has an SCP that allows all actions for Amazon DynamoDB and AWS Lambda, and denies all other actions. The company has an AWS account that is named vendor-data in the child OU. A DevOps engineer has an IAM user that is attached to the Administrator Access IAM policy in the vendor- data account. The DevOps engineer attempts to launch an Amazon EC2 instance in the vendor- data account but receives an access denied error. Which change should the DevOps engineer make to launch the EC2 instance in the vendor-data account?

Options

  • AAttach the AmazonEC2FullAccess IAM policy to the IAM user.
  • BCreate a new SCP that allows all actions for Amazon EC2. Attach the SCP to the vendor-data
  • CUpdate the SCP in the child OU to allow all actions for Amazon EC2.
  • DCreate a new SCP that allows all actions for Amazon EC2. Attach the SCP to the root OU.

How the community answered

(40 responses)
  • A
    13% (5)
  • B
    8% (3)
  • C
    78% (31)
  • D
    3% (1)

Explanation

Explanation

Option C is correct because the child OU's SCP is the actual barrier - it explicitly denies all actions except DynamoDB and Lambda, and SCPs act as guardrails that override even Administrator-level IAM permissions. Adding EC2 to the child OU's allow list removes this restriction for all accounts within it, including vendor-data.

Why the distractors are wrong:

  • A is wrong because IAM policies cannot override an SCP denial - the AdministratorAccess policy is already the broadest IAM policy possible, and the SCP is still blocking EC2 regardless.
  • B is wrong because SCPs cannot be attached directly to individual AWS accounts in the same way - they attach to OUs or the root, and even if this were possible, the child OU's deny would still take precedence.
  • D is wrong because attaching an EC2-allow SCP to the root OU doesn't help - the child OU's explicit deny of non-DynamoDB/Lambda actions would still block EC2, since the most restrictive SCP wins when multiple SCPs apply.

Memory Tip: Think of SCPs as a ceiling and IAM policies as your reach - no matter how tall you are (AdministratorAccess), you can never touch what's above the ceiling (SCP deny). Always fix the ceiling first!

Topics

#AWS Organizations#Service Control Policies (SCPs)#IAM Permissions#Access Management

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice