Skip to main content

DVA-C02 practice question · Security

A developer's application runs under an IAM role in a member account of an AWS Organizations organization.

A developer's application runs under an IAM role in a member account of an AWS Organizations organization. The account is subject to service control policies (SCPs), and the role has both a permissions boundary and an identity-based policy. No resource-based policy is involved. Which condition must be met for an API request made by the role to be allowed?

  • AThe SCPs, the permissions boundary, and the identity-based policy must each allow the action, and none of them can contain an explicit deny for it
  • BThe identity-based policy must allow the action; the SCPs and permissions boundary only block it if they contain an explicit Deny statement
  • CAt least one of the three policy types must allow the action, provided that no policy among the three contains an explicit deny for it
  • DThe identity-based policy and permissions boundary must both allow the action; SCPs restrict IAM users in member accounts but not IAM roles
Show the answer and explanation

Correct answer: A) The SCPs, the permissions boundary, and the identity-based policy must each allow the action, and none of them can contain an explicit deny for it

For a principal in a member account, with no resource-based policy involved, the effective permissions are the intersection of the SCPs, the permissions boundary and the identity-based policy. Every layer must allow the action, and an explicit deny anywhere blocks it.

Why each option is right or wrong

  • A) Correct. Without a resource-based policy, the effective permissions are the intersection of the identity-based policy, the permissions boundary and the SCPs. The action must be allowed at every layer, and an explicit deny in any of them overrides any allow.
  • B) Incorrect. SCPs and permissions boundaries set maximum permissions. If an action isn't allowed in them, it is implicitly denied, even when they have no explicit Deny statement.
  • C) Incorrect. That describes a union. A union applies to identity-based and resource-based policies in the same account, not to SCPs and boundaries, whose effective permissions are an intersection.
  • D) Incorrect. SCPs restrict all IAM principals in member accounts, including roles. The management account is the only place SCPs don't apply.
Exam domain
Security · 26% of DVA-C02
Question type
Multiple choice (one answer)

Practise the full DVA-C02 exam

This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.

Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.