How it works
An IAM policy is a JSON document that describes permissions or restrictions. Its statements specify an effect and actions, usually with resources and optional conditions; resource-based policies also specify principals. The exact elements depend on the policy type. AWS evaluates applicable policies together, and an applicable explicit deny overrides an allow.
When to use it
Choose it when the requirement is to grant narrowly scoped permissions to an identity or resource.
Real-world example
A security team attaches a policy to an engineering role that allows PutObject on objects in a development S3 bucket. A separate deny statement blocks the role from making that upload over an insecure transport.
Key facts
- Requests are implicitly denied unless allowed.
Common pitfall
Using wildcards for all actions and resources can grant much more access than intended. Scope actions and resources to the workload and review conditions, resource policies, and other applicable restrictions.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- Allow or Deny
- Action
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.