AWS Solutions Architect · Design Secure Architectures · hard

A security architect wants delegated product engineers to create IAM roles for their microservices inside an AWS account, but must ensure no engineer can create a role whose effective permissions exceed a predefined ceiling—even if the engineer attaches AdministratorAccess to the new role. What should the architect configure?

Published · Last updated · checked before publication — how we verify questions

Options

  • APlace the microservice IAM roles inside an IAM group that carries an explicit deny policy for administrative actions
  • BEnforce a predefined IAM permissions boundary on every role engineers create using an IAM policy conditionCorrect answer
  • CUse AWS Resource Access Manager (RAM) to share a read-only role template across all VPC subnets in the account
  • DEnable IAM Access Analyzer external-access findings to automatically revoke AdministratorAccess before calls execute

Answer: B. Enforce a predefined IAM permissions boundary on every role engineers create using an IAM policy condition

An IAM permissions boundary sets the maximum effective permissions a role can have (the intersection of identity-based policies and the boundary), and a condition on iam:CreateRole / iam:PutRolePermissionsBoundary in the engineer's IAM policy forces every role they create to carry that boundary. IAM groups cannot be attached to roles, and Resource Access Manager shares resources rather than capping IAM permissions.

Why the other options are wrong

  • A. Place the microservice IAM roles inside an IAM group that carries an explicit deny policy for administrative actions — IAM groups can contain only IAM users; IAM roles cannot be added to IAM groups.
  • C. Use AWS Resource Access Manager (RAM) to share a read-only role template across all VPC subnets in the account — AWS RAM shares infrastructure resources across accounts; it does not cap the effective permissions of newly created IAM roles.
  • D. Enable IAM Access Analyzer external-access findings to automatically revoke AdministratorAccess before calls execute — IAM Access Analyzer identifies unintended resource access after configuration and does not act as a real-time permission ceiling.

All Design Secure Architectures questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.