AWS Developer DVA-C02 · Security · hard

A central platform security team allows application developers to create their own IAM execution roles for AWS Lambda functions, but must guarantee that no developer-created IAM role can ever exceed a maximum privilege ceiling (for example, developers may grant s3:* and dynamodb:*, but even if a developer attaches AdministratorAccess to a new Lambda role, the role must never be able to call iam:* or organizations:*). Which IAM feature enforces this maximum permission ceiling on delegated role creation?

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

Options

  • AAttach an IAM Permissions Boundary policy to each developer-created Lambda roleCorrect answer
  • BStore the Lambda function deployment zip in an unencrypted public S3 bucket
  • CUse an Amazon S3 Bucket ACL instead of IAM execution roles on the function
  • DReplace IAM roles with hardcoded AWS root account access keys in env variables

Answer: A. Attach an IAM Permissions Boundary policy to each developer-created Lambda role

An IAM Permissions Boundary is a managed policy attached to an IAM user or role that defines the maximum permissions that entity can ever have. The effective permissions are the intersection of the identity-based policy and the permissions boundary — preventing privilege escalation when developers create new Lambda execution roles.

Why the other options are wrong

  • B. Store the Lambda function deployment zip in an unencrypted public S3 bucket — Public S3 buckets decrease security and have no effect on IAM role privilege escalation.
  • C. Use an Amazon S3 Bucket ACL instead of IAM execution roles on the function — S3 Bucket ACLs are legacy object-storage controls and cannot restrict iam:* or organizations:* API calls.
  • D. Replace IAM roles with hardcoded AWS root account access keys in env variables — Using root access keys violates every AWS security best practice and bypasses IAM boundaries.

All Security 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.