Designing Secure Access: IAM Best Practices, Roles, and AWS Organizations
Designing secure access to AWS resources means deciding who or what can call which AWS APIs, with which credentials, under which guardrails — and it is SAA-C03 Task 1.1. The task covers hardening root and IAM users, building an authorization model from users, groups, roles and policies, choosing roles and temporary STS credentials over long-lived keys, granting cross-account access with IAM roles or resource-based policies, federating a workforce through IAM Identity Center, and governing many accounts with AWS Organizations, SCPs, RCPs and AWS Control Tower. The questions are rarely about what IAM is — they hand you a working setup and ask which access design is most secure, needs the least operational overhead, or follows least privilege. By the end of this lesson you will be able to pick the right identity mechanism for any actor — a human, an application on or off AWS, another account, or a third-party SaaS — and the right guardrail layer for any organizational restriction, and explain why the alternatives lose.
What you’ll learn
- Choose between IAM roles, IAM users, IAM Roles Anywhere and IAM Identity Center for any actor that needs AWS access
- Design an authorization model from groups, roles and the right policy type (AWS managed, customer managed, inline)
- Design cross-account access and decide when an assumed role beats a resource-based policy
- Distinguish SCPs, RCPs, identity-based policies and permissions boundaries by what each can and cannot do
- Design a multi-account structure with AWS Organizations OUs, SCP and RCP guardrails, and AWS Control Tower controls
- Apply IAM policy evaluation logic and condition keys (MFA, Region, external ID, permissions boundary) to predict and enforce outcomes
- Harden root users, enforce MFA and tighten permissions toward least privilege with IAM Access Analyzer
The 12 parts · about 27 min of reading
- The hardening baselineStart hereHarden the root user first, require MFA for people through policy conditions, and grant each identity only what it needs.3 min
- Designing a flexible authorization modelAttach permissions to groups and roles through customer managed policies, which are reusable and versioned, not user by user.1 min
- How IAM policy evaluation decidesEverything is denied by default, an explicit deny beats every allow, and SCPs, boundaries and session policies intersect.2 min
- Least privilege in practiceStart broad and tighten with evidence: policy generation and last accessed data look back, custom policy checks block bad policies early.1 min
- Roles and STSAnything that can use an IAM role should: STS temporary credentials beat access keys for EC2, Lambda, ECS, on-premises and humans.2 min
- Role sessionsA role's permissions replace yours, chained sessions cap at one hour, source identity is the fixed audit key, and revoking takes two steps.2 min
- Cross-account accessAssuming a role swaps your permissions; a resource-based policy keeps them, and third-party vendors need a role with an external ID.3 min
- Federation and IAM Identity CenterFederate the existing workforce directory through IAM Identity Center permission sets; app customers belong in Amazon Cognito instead.3 min
- Multi-account designSCPs never grant, only cap what member-account principals can do; RCPs cap what anyone can do to your resources.4 min
- AWS Control TowerPick Control Tower for a governed landing zone and Account Factory at scale; its controls are preventive, detective or proactive.2 min
- Decision tablesMatch who needs access to its mechanism, then ask whether a control must grant (IAM policy) or bind admins (SCP or RCP).2 min
- Worked scenariosEach scenario turns a phrase like 'including administrators' or 'no long-lived credentials' into the SCP, resource policy or role that fits.2 min
Mind map
How the exam tests this
SAA-C03 tests this task with constraint-driven scenarios: a working architecture plus a requirement such as most secure, least operational overhead, or least privilege, where several options technically function and one best fits. Classic shapes include the organization-wide restriction that must bind administrators (SCP, including Region restriction on aws:RequestedRegion with global services exempted), keeping outsiders away from your resources (RCP), the application holding access keys (replace with a role, or IAM Roles Anywhere off AWS), the cross-account choice (role vs resource policy), the third-party vendor (role plus external ID), the workforce-at-scale question (IAM Identity Center with the right identity source), MFA enforcement with condition keys, delegated role creation with enforced permissions boundaries, and least-privilege tooling (IAM Access Analyzer). Recurring misconceptions to watch for: treating an SCP as a grant, assuming SCPs reach the management account or service-linked roles, rotating long-term keys instead of eliminating them, forgetting how a missing MFA key evaluates in a deny, overlooking the one-hour role-chaining cap, and trusting an external ID the vendor does not control. When two options both work, the one that removes long-lived credentials or centralizes the control above the affected accounts usually wins.
Key takeaways
- SCPs and RCPs never grant permissions — they cap the maximum; effective access is the intersection of SCPs, RCPs, boundaries, and IAM policies, and an explicit deny always wins.
- SCPs bind your principals (including member root users) wherever the resource lives, but never the management account or service-linked roles; RCPs bind your resources against any caller, including outsiders.
- Harden root (MFA, no keys), remove member root credentials centrally and use AssumeRoot for root-only tasks; enforce MFA with aws:MultiFactorAuthPresent (BoolIfExists for deny-unless-MFA) or aws:MultiFactorAuthAge.
- Anything running on AWS compute gets an IAM role (ECS application code uses the task role); workloads outside AWS use IAM Roles Anywhere — never stored access keys.
- Role switching replaces your permissions for the session; role chaining is capped at one hour; source identity is the immutable audit key; revoke active sessions to cut off issued credentials.
- Cross-account: assume a role for broad access or services without resource policies (EC2, RDS); use a resource-based policy when the caller must keep its own permissions.
- Third-party vendor access = cross-account role + a vendor-generated, per-customer external ID checked with sts:ExternalId — never shared access keys.
- Workforce across many accounts = IAM Identity Center (permission sets + account assignments) using the existing directory as identity source (AD Connector for on-premises AD); app customers = Cognito.
- Permissions boundaries cap delegated roles only when enforced: require iam:PermissionsBoundary on role creation and deny editing or removing the boundary.
- Control Tower = managed landing zone on Organizations: preventive controls block API actions (mainly SCPs), detective controls are Config rules, proactive controls are CloudFormation hooks; Account Factory vends governed accounts.
Part 1: The hardening baseline
Harden the root user first, require MFA for people through policy conditions, and grant each identity only what it needs.
Frequently asked questions
What is the difference between an SCP and an IAM policy?
An IAM policy grants permissions to a specific user, group, or role — it is the only layer that can actually allow an action. A service control policy (SCP) is an AWS Organizations guardrail attached to an OU or account that sets the maximum permissions available inside; it can never grant anything. A principal's effective permissions are the intersection: an action must be allowed by an IAM policy and permitted by every applicable SCP. SCPs also constrain member-account root users, which IAM policies cannot, but SCPs have no effect on the organization's management account.
When should I use a cross-account IAM role vs a resource-based policy?
Use a resource-based policy (bucket policy, queue policy, key policy) when the caller needs access to one specific resource while keeping its own identity and permissions — for example, a Lambda function that reads a bucket in another account and writes to tables in its own account in the same invocation. Use a cross-account IAM role when the caller needs broader access across many resources or services in the target account, or when the target service does not support resource-based policies. Remember: assuming a role temporarily replaces your permissions; a resource policy adds access on top of them.
What is an external ID in AWS and when do I need one?
An external ID is a value that a role's trust policy requires, through the sts:ExternalId condition key, in every AssumeRole call. You need one whenever you grant a third party — typically a SaaS vendor that serves many customers from one AWS account — access to your account through a cross-account role. It prevents the confused-deputy problem, where a different customer of that vendor gives the vendor your role ARN and tricks it into acting on your account. The value only protects you if the vendor creates it and keeps it distinct per customer relationship; a value the customer picks, or a guessable one like an account ID, can be reused by another customer and defeats the defence. IP-address or MFA conditions cannot replace it, because all of the vendor's requests come from the same infrastructure and are automated.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.