‹ All DOP-C02 questions

DOP-C02 Practice Question 40: Permissions Boundary Role Delegation

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 4 · question 10 of 10

Security and Compliancemedium

A platform team wants application teams to create their own IAM roles for AWS Lambda functions in a sandbox account so they stop filing tickets for every function. The platform team must guarantee that a role an application team creates can never grant more than an approved set of services, and that an application team cannot escalate its own privileges by creating a role with AdministratorAccess and assuming it. The platform team wants no ongoing manual review.

What should the platform team do?

Select one answer
Show answer and explanation

Answer:

  • C. Give the application teams a policy that allows iam:CreateRole and iam:PutRolePolicy only when the request's iam:PermissionsBoundary condition key equals the approved boundary policy ARN, and explicitly deny them the ability to edit that boundary policy or remove it from a role

This is the delegation pattern the IAM documentation describes: "You can use permissions boundaries to delegate permissions management tasks, such as user creation, to IAM users in your account. This permits others to perform tasks on your behalf within a specific boundary of permissions." The iam:PermissionsBoundary condition key makes attaching the approved boundary a precondition of creating the role, so a role created with AdministratorAccess attached still has effective permissions limited to "the intersection of both policy types", nothing outside the boundary works. The two explicit denies close the loop: without them an application team could edit the boundary policy or call DeleteRolePermissionsBoundary and escape it. There is no review queue because the constraint is enforced at the API call.

Option A gives up the goal. Removing self-service is the status quo the platform team is trying to get away from, and it puts the platform team back in the path of every change.

Option B blocks role creation rather than bounding it. Application teams still cannot create roles, so the tickets continue; an SCP denies, it cannot say "you may create roles, but only constrained ones" the way the boundary condition does.

Option D attaches the boundary to the wrong entity and in the wrong role. A permissions boundary "limits the user's permissions but does not provide permissions on its own", and attaching it as an ordinary permissions policy constrains nothing about the roles those teams go on to create.

Reference: Permissions boundaries for IAM entities

Practice Test 4 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.