Chapters0/41 ▾
- 1.Cloud Concepts: Benefits & Economics0/4
- 2.Cloud Concepts: Well-Architected & Migration0/5
- 3.Security: Shared Responsibility & Compliance0/4
- 4.Security: IAM & Access Management0/4
- 5.Security: Services & Resources0/4
- 6.Technology: Deployment & Global Infrastructure0/4
- 7.Technology: Compute & Networking0/4
- 8.Technology: Databases & Storage0/4
- 9.Technology: AI, Analytics & Other Services0/4
- AI and machine learning services: pre-trained services and SageMaker AI
- Analytics services: Glue, Athena, Redshift, EMR, OpenSearch, Kinesis and Amazon Quick
- Messaging and workflows: SQS, SNS, EventBridge, Step Functions, Amazon Connect and SES
- Developer tools, cloud desktops, AWS Amplify and AWS IoT Core
- 10.Billing, Pricing & Support0/4
- EC2 purchasing options: On-Demand, Spot, Savings Plans, Reserved Instances and dedicated hardware
- Data transfer costs, consolidated billing and cost allocation tags
- Cost management tools: Pricing Calculator, Cost Explorer, Budgets, Cost and Usage Reports and Compute Optimizer
- AWS Support plans, Trusted Advisor, AWS Health and where to get help
Chapter 4 · Lesson 3 of 4
Policies, deny rules and least privilege
1 min read
Permissions are written as policies attached to identities. The exam expects you to tell three kinds apart.
- AWS managed policy: written and maintained by AWS, reusable, but customers cannot edit it.
- Customer managed policy: created and edited by the customer and attachable to many users, groups and roles, the usual way to tailor least privilege.
- Inline policy: embedded in exactly one user, group or role, and deleted together with it.
Evaluation follows a fixed order. Everything is denied by default, a request needs an allow, and an explicit deny in any applicable policy wins over every allow, whatever the attachment order and whether it sits on the user or a group. Least privilege means granting only the specific actions on the specific resources a task needs.
Example: a contractor must read reports in one Amazon S3 bucket. A customer managed policy allowing read actions on that bucket alone fits; the broad ReadOnlyAccess policy would expose every other bucket and service. To audit credentials, the IAM credential report lists every IAM user with the status of its password, access keys and MFA.
Check yourself
1. An IAM user belongs to a group whose policy allows deleting objects in an Amazon S3 bucket. A second policy attached to the user explicitly denies that same action. What happens when the user tries to delete an object?
2. A company wants one reusable policy that it can attach to several IAM roles, that allows only the few actions its reporting job needs, and that its administrators can edit over time. Which policy type fits?
Facts checked 2026-11-15 · Sources: AWS Certified Cloud Practitioner (CLF-C02) Exam Guide, IAM User Guide: Security best practices in IAM, AWS IAM Identity Center User Guide
AWS Cloud Practitioner cheat sheet: every key fact on one page →