GUIDE #10SAA-C03SAA-C03AWS SECURITY • IAM & ORGANIZATIONS9 min read

Anatomy of AWS IAM Policy Evaluation Logic, SCPs, Permissions Boundaries & Cross-Account Roles

Understand how AWS computes effective permission intersections and why cross-account S3 requests fail with Access Denied.

Minh Quan Nguyen

Principal Cloud Architect • AWS SAP-C02 • AWS Security Specialty

Updated: Sep 25, 2026

A single Explicit Deny in any policy layer overrides every Allow statement. Let’s dissect the 5-step AWS IAM evaluation pipeline with real JSON policies.

● KEY TAKEAWAYS & EXAM BLUEPRINT SUMMARY

  • 01AWS IAM evaluation always begins with an Implicit Deny. A single Explicit Deny in any policy layer overrides every Allow statement.
  • 02Effective Permissions for an IAM Principal equal the logical INTERSECTION (∩) of: Service Control Policies (SCPs) ∩ Permissions Boundary ∩ Identity-based Policy.
  • 03Understand the critical difference between Same-Account access and Cross-Account access when combining Identity-based Policies with Resource-based Policies (such as S3 Bucket Policies or KMS Key Policies).
  • 04Never hardcode long-lived AWS Access Keys in code or EC2 instances: always attach IAM Roles via EC2 Instance Profiles, ECS Task Roles, or Lambda Execution Roles.

1. The 5-Step AWS IAM Policy Evaluation Order

On both the AWS SAA-C03 and SAP-C02 exams, complex IAM permission evaluation questions separate top scorers from the rest. Whenever a principal sends an authenticated API request to AWS, the IAM enforcement engine evaluates 5 guardrails in strict sequence:

  • •Step 1 — Check for an Explicit Deny: If any applicable SCP, Permissions Boundary, Identity Policy, or Resource Policy contains an "Effect": "Deny" matching the request → Final Deny immediately.
  • •Step 2 — Evaluate AWS Organizations SCPs (Service Control Policies): If the account belongs to an AWS Organization with SCPs enabled, every parent OU and account SCP must explicitly allow the action. Without an Allow in the SCP → Implicit Deny.
  • •Step 3 — Evaluate Resource-Based Policies (S3 Bucket Policy, KMS Key Policy...): Within the same AWS account, if a Resource-based Policy grants an explicit Allow directly to the IAM Principal (and no SCP or Explicit Deny blocks it), the request succeeds even if the Identity Policy lacks an Allow (unless a Permissions Boundary is attached).
  • •Step 4 — Evaluate IAM Permissions Boundaries: If a Permissions Boundary is attached to the IAM User or Role, the action must be allowed by both the Permissions Boundary and the Identity-based Policy.
  • •Step 5 — Evaluate Identity-Based Policies & Session Policies: Finally, AWS inspects policies attached to the IAM User, Group, or Role. If no matching Allow statement exists → Default Implicit Deny.

2. Comparing SCPs, Permissions Boundaries, and Identity Policies

Role Matrix of the 3 Core AWS IAM Policy Types on Exam Day
Policy TypeAttachment TargetGrants Permissions by Itself?Classic AWS Exam Use Case
Service Control Policy (SCP)AWS Organization Root, OU, or Member AccountNO (Sets the maximum permission ceiling for the entire Member Account, including its Root user)Prevent any account in the company from launching resources outside ap-southeast-1 or disabling CloudTrail.
IAM Permissions BoundarySpecific IAM User or IAM RoleNO (Sets the maximum permission ceiling for that individual IAM Principal)Allow developers to create new IAM Roles for Lambda while preventing privilege escalation to AdministratorAccess.
Identity-based PolicyIAM User, IAM Group, or IAM RoleYES (Directly grants actionable permissions)Grant read/write access to S3 buckets, launch EC2 instances, or query DynamoDB tables.

3. The Classic Cross-Account Access Trap

AWS SCENARIO WALKTHROUGH • CROSS-ACCOUNT S3 ACCESS

Scenario Prompt:

Account A contains an IAM Role named AnalyticsRole. Account B owns an Amazon S3 bucket named finance-data-bucket. The administrator in Account B attaches an S3 Bucket Policy granting arn:aws:iam::AccountA:role/AnalyticsRole permission to perform s3:GetObject. However, when the application in Account A runs, it still receives an Access Denied error. Why?

✕ Common Distractor Trap

Because the two AWS accounts reside in different VPCs and require a VPC Peering connection before calling the S3 API.

✓ Recommended Architecture

For Cross-Account access, BOTH sides (the Identity-based Policy on AnalyticsRole in Account A AND the S3 Bucket Policy in Account B) must explicitly include an Allow statement.

Core Architectural Rationale: Unlike same-account access (where an Allow on either the Identity Policy or the S3 Bucket Policy suffices), crossing an AWS account boundary requires dual-side authorization from administrators of both accounts.
Sample AWS Organizations SCP blocking non-approved EC2 instance types and protecting CloudTrail
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyStopCloudTrail",
      "Effect": "Deny",
      "Action": [
        "cloudtrail:StopLogging",
        "cloudtrail:DeleteTrail"
      ],
      "Resource": "*"
    },
    {
      "Sid": "RequireMicroOrLargeInstanceType",
      "Effect": "Deny",
      "Action": "ec2:RunInstances",
      "Resource": "arn:aws:ec2:*:*:instance/*",
      "Condition": {
        "StringNotEquals": {
          "ec2:InstanceType": ["t3.micro", "m6i.large"]
        }
      }
    }
  ]
}

✓ AWS EXAM TIP: WHEN TO USE STS ASSUMEROLE INSTEAD OF A RESOURCE POLICY

If the target AWS service does NOT support resource-based policies (for example, Amazon RDS, EC2 APIs, or ElastiCache), you must create an IAM Role in the target account and allow the source account principal to call sts:AssumeRole to obtain temporary security credentials.
LearnAWS by CertWorm

COMPANION MOBILE APP

LearnAWS by CertWorm

Turn these architecture blueprints into daily muscle memory with AI Study Coach roadmaps, timed 65-question mock exams, and choice-level rationales on iOS & Android.

CONTINUE READING (9 MORE TECHNICAL GUIDES)

More Certification Study Guides

#01SAA-C03SAA-C03
10 min read

How to Pass AWS Solutions Architect Associate (SAA-C03) on Your First Attempt in 6 Weeks

The SAA-C03 exam packs 65 scenario-based questions into 130 minutes. Rather than skimming thousands of pages of docs, mastering service trade-offs accounts for 80% of your score.

Read guide
#02CKACKA
9 min read

Mastering All 17 Hands-On CLI Tasks in the 120-Minute Kubernetes CKA Exam

Unlike multiple-choice exams, the CKA drops you into a live Linux terminal across 6 clusters to fix broken kubelets, restore ETCD, and author NetworkPolicies.

Read guide
#03AZ-104AZ-104
8 min read

Azure (AZ-104) vs. AWS (SAA-C03) Service Mapping Guide for Multi-Cloud Engineers

If you already know AWS and are preparing for Azure Administrator (AZ-104), mapping equivalent architectural primitives cuts your study time in half.

Read guide
#04SM-2SM-2
7 min read

Using the SuperMemo-2 (SM-2) Algorithm to Retain 800+ Cloud Architecture Concepts

The Ebbinghaus Forgetting Curve proves that engineers lose over 60% of newly read technical limits within 24 hours without active spaced retrieval.

Read guide
#05SY0-701SY0-701
8 min read

5 Classic Networking & Security Exam Traps in CompTIA Security+ (SY0-701) & CCNA

Both CompTIA Security+ (SY0-701) and Cisco CCNA (200-301) heavily test scenario-based architecture and performance-based troubleshooting.

Read guide
#06GCP-PCAGCP-PCA
9 min read

Decoding All 4 Official Case Studies in the Google Cloud Architect (GCP-PCA) Exam

Nearly 30% of questions on the GCP-PCA exam directly reference 4 pre-published enterprise case studies. Mapping their service stacks beforehand is your biggest advantage.

Read guide
#07PMP®PMP®
8 min read

Solving All 180 Agile & Hybrid Situational Questions in the PMI PMP® Exam

On the PMP exam, all four options often sound reasonable, but only one follows the strict PMI Mindset sequence: Assess first, collaborate second, act third.

Read guide
#08CLF-C02CLF-C02
7 min read

AWS Cloud Practitioner (CLF-C02) Guide: Shared Responsibility, CAF & Support Plans

CLF-C02 is the ideal launchpad into cloud engineering. Mastering Security OF the Cloud vs. Security IN the Cloud locks in 30% of your total exam score.

Read guide
#09200-301200-301
9 min read

Mastering Longest Prefix Match Routing, Spanning Tree & VLAN Trunking for CCNA 200-301

Never let Administrative Distance trick you when two routes have different subnet mask lengths (/27 always beats /24 regardless of routing protocol).

Read guide