- IAM Access Analyzer — purpose and value in multi-account environments
- Policy management at scale and diagnostics
- Attribute‑based access control (ABAC) versus role‑based access control (RBAC)
- Common IAM challenges and practical troubleshooting steps
IAM Access Analyzer — what it does and why it matters
IAM Access Analyzer automates access validation across accounts and at scale. Key capabilities include:- Identifying resources that are accessible externally or across accounts
- Validating policy changes before deployment (pre‑flight checks)
- Generating least‑privilege policy suggestions based on CloudTrail activity
- Highlighting potentially over‑permissive principals and shared resources

Implementation, integrations, and best practices
You can enable Access Analyzer at the account level or across an AWS Organization. It supports custom archive rules and integrates with Amazon EventBridge so you can trigger automated responses and remediation workflows. Common DevOps integrations:- Run Access Analyzer checks in CI/CD pipelines to validate policies before they reach production
- Schedule continuous monitoring jobs that surface new findings
- Use generated least‑privilege recommendations to automate policy refinement and compliance gates

Dashboard, CI/CD, and validation workflows
The Access Analyzer dashboard surfaces findings such as public access and cross‑account access and supports both policy validation and policy generation workflows. Integrate these checks so that permissions requested by deployments are validated and refined before being applied to production resources. For last‑accessed and unused‑permission reporting, consult IAM Access Advisor / last‑access data and correlate with CloudTrail logs for full visibility.
Policy management at scale — diagnosis and remediation workflow
When a permissions issue is detected (for example, an unexpected access attempt), follow a structured diagnostic workflow:- Determine whether the denial is implicit (default deny) or explicit (deny statement).
- Inspect the policy configuration and policy evaluation order (SCPs, identity policies, resource policies, permission boundaries, session policies).
- Look for excessive permissions, misconfigured trust relationships, or incorrect resource ARNs.
- Consider IAM resource limits (too many policies, roles, or entities).
- Use automation tools (Access Analyzer, Policy Simulator) to generate least‑privilege suggestions and standardize policy templates.

Service-specific considerations — S3 and least privilege
Service behavior affects policy shape. For example, S3 uses both bucket and object ARNs; a read or list policy usually requires permissions that cover both the bucket and its objects. CloudFormation (YAML) read-only S3 managed policy example:RBAC vs ABAC — when to choose which
RBAC (role‑based access control)- Permissions are granted to roles or groups (e.g., “developer”, “ops”).
- Simple and static: change a principal’s roles to change access.
- Can lead to many roles and higher maintenance as environments scale.
- Uses tags/attributes on principals and resources to enforce access dynamically.
- Example attributes: project ID, environment, IP range, MFA status.
- Scales well: new principals with appropriate tags inherit permissions automatically.

ABAC policy pattern (condition uses principal and resource tags):
Common IAM challenges and practical troubleshooting steps
When troubleshooting, combine tools and a methodical approach:- Is the denial implicit (no allow found) or explicit (explicit Deny)? Explicit Deny always wins.
- Use the IAM Policy Simulator to test and reproduce policy decisions.
- Inspect CloudTrail logs to trace the actual calls, callers, and outcomes.
- Use IAM Access Analyzer to surface unintended cross‑account or public access and to generate least‑privilege suggestions.
- For cross‑account problems, verify trust policies, role assumption flow, and resource-based policies.
- Reduce policy proliferation by standardizing templates, consolidating roles, and using ABAC where appropriate.
- Permission boundaries and how they cap an IAM principal’s effective permissions
- Service control policies (SCPs) and their organization-wide effects
- Policy evaluation order when multiple policy types apply (SCPs, identity policies, resource policies, permission boundaries, session policies)
- Practical ABAC and RBAC use cases and trade-offs
Key evaluation points to remember: service control policies (SCPs) at the Organization level can prevent actions across accounts, permission boundaries limit the maximum permissions a principal can get, and explicit denies in any applicable policy always take precedence over allows. Use the IAM Policy Simulator, CloudTrail, and Access Analyzer together to diagnose permission issues.
Summary and next steps
This lesson covered higher‑level IAM topics you should be able to reason about on the exam:- Detect and remediate over‑permissioned identities
- Manage policies at scale with automation and templates
- Understand ABAC vs RBAC trade‑offs and when to apply each
- Use IAM Access Analyzer, CloudTrail, and the Policy Simulator together to validate and refine permissions