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)
Related DVA-C02 questions
- Which AWS service should a developer use to manage user sign-up, sign-in, and access control for a mobile or web…Security
- A web application stores session tokens and needs to prevent them from being read by client-side JavaScript in the…Security
- A Lambda function's execution role has the AWS managed AmazonS3FullAccess policy attached.Security
- A developer is deploying an application to Amazon EC2 and plans to put an IAM user's access key in the application's…Security
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
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.