AWS Certified SysOps Administrator – Associate (legacy) — Question 397
In IAM, can you attach more than one inline policy to a particular entity such a user, role, or group?
Answer options
- A. No
- B. Yes
- C. Yes, you can but only if you attach the policy within a VPC.
- D. Yes, you can but only if you attach the policy within the GovCloud.
Correct answer: B
Explanation
AWS IAM allows you to attach multiple inline policies directly to a user, group, or role to maintain a strict one-to-one relationship between the policy and the identity. There are no regional or network-based restrictions, such as requiring a VPC or AWS GovCloud, to apply multiple inline policies. However, AWS generally recommends using managed policies instead of inline policies for better reusability and management.