All exams← All AWS Solutions Architect Associate (SAA-C03) notes

Design secure applications & access (IAM, KMS): AWS Solutions Architect Associate (SAA-C03) revision notes

Revision notes

IAM basics

IAM is global, not regional. It controls who (authentication) can do what (authorisation) on AWS resources.

  • Root user should never be used day-to-day — lock it down with MFA and avoid its access keys.
  • Users, groups and roles are IAM identities. Groups cannot be nested and cannot be logged into.
  • Roles are the secure way to grant temporary access — used by EC2 instances, Lambda, cross-account access, and federated users (via STS, Security Token Service).
  • Policies are JSON documents attached to identities or resources. Evaluation logic: explicit Deny always wins, then explicit Allow, then implicit Deny (default with no Allow).
  • Use the principle of least privilege — grant only the permissions needed.
  • IAM Policy Simulator and Access Analyzer help test and audit permissions before deploying.

Policy types

  • Identity-based policies attach to users/groups/roles.
  • Resource-based policies attach to resources (e.g. S3 bucket policies, KMS key policies) and can grant cross-account access without a role.
  • Permissions boundaries set the maximum permissions an identity can ever have — a guardrail, not a grant.
  • Service Control Policies (SCPs) live in AWS Organizations and cap permissions across whole accounts — even the root user in a member account cannot exceed an SCP.

Common exam mistake

Don't confuse permissions boundaries (per-identity ceiling) with SCPs (per-account/OU ceiling) — both are 'maximum' controls, neither grants access on its own; you still need an Allow.

KMS (Key Management Service)

KMS manages encryption keys for data at rest across AWS services (S3, EBS, RDS, etc).

  • Customer Master Keys (CMKs), now called KMS keys, never leave the KMS service unencrypted.
  • AWS-managed keys (aws/service-name) are free and rotate automatically every year; you cannot control their policy.
  • Customer-managed keys give full control over the key policy and rotation, and can be rotated automatically every year or on demand.
  • Envelope encryption is how KMS handles large data: a data key encrypts the actual data, and the KMS key encrypts the data key.
  • Symmetric KMS keys are used for most encrypt/decrypt use cases; asymmetric keys support signing or encryption where the public key must be shared.
  • KMS API calls (Encrypt, Decrypt, GenerateDataKey) are logged to CloudTrail, giving an audit trail of key use.
  • Key policies are the primary access-control mechanism for KMS keys — even with an IAM Allow, the key policy must also permit the action (or delegate to IAM via 'enable IAM policies').

Common exam mistake

Remember KMS keys are regional, unlike IAM. A key created in eu-west-2 cannot be used to decrypt data in us-east-1 directly — you'd need cross-region key replication (multi-Region keys) or re-encryption.

Key facts

Flashcards

Is IAM a global or regional service?
Global — IAM identities and policies apply across all AWS Regions.
tap to reveal
In IAM policy evaluation, what always wins?
An explicit Deny always overrides any Allow.
tap to reveal
What is the default access decision when no policy explicitly allows an action?
Implicit Deny.
tap to reveal
How do EC2 instances and Lambda functions securely get AWS permissions without hard-coded keys?
By assuming an IAM role, which provides temporary credentials via STS.
tap to reveal
What does a permissions boundary do?
Sets the maximum permissions an IAM identity can have — it does not grant permissions itself.
tap to reveal
What is a Service Control Policy (SCP) and where does it apply?
A policy in AWS Organizations that caps the maximum permissions for an entire account or OU, including the root user.
tap to reveal
Can IAM groups be nested inside other groups?
No — IAM groups cannot be nested, and you cannot log in directly as a group.
tap to reveal
How often do AWS-managed KMS keys rotate, and can you control this?
Automatically every year; you cannot change or disable this for AWS-managed keys.
tap to reveal
What rotation options exist for customer-managed KMS keys?
Automatic annual rotation (can be enabled) or manual rotation on demand.
tap to reveal
What is envelope encryption in KMS?
A data key encrypts the actual data; the KMS key then encrypts that data key, avoiding sending large data to KMS directly.
tap to reveal
Are KMS keys global or regional?
Regional — a key in one Region cannot decrypt data tied to another Region unless you use a multi-Region key.
tap to reveal
Where are KMS API calls like Encrypt and Decrypt logged?
Automatically in CloudTrail, giving a full audit trail of key usage.
tap to reveal
What type of policy can grant cross-account access without using a role?
A resource-based policy, such as an S3 bucket policy or a KMS key policy.
tap to reveal
What is the difference between an identity-based and a resource-based policy?
Identity-based policies attach to users, groups or roles; resource-based policies attach directly to a resource, such as an S3 bucket or KMS key.
tap to reveal
Why should the AWS root user be avoided for daily tasks?
It has unrestricted access to the whole account, so best practice is to secure it with MFA, avoid access keys, and use IAM roles/users instead.
tap to reveal
Practice questions

Design secure applications & access (IAM, KMS): 5 practice questions

Q1. A company wants developers to be able to assume a role in a production AWS account only when they are signed in with MFA. Which IAM policy element should be used in the role's trust policy to enforce this?
  • A.  A service control policy attached to the production organizational unit
  • B.  A permissions boundary attached to the developer IAM group
  • C.  A condition using aws:MultiFactorAuthPresent set to true
  • D.  A resource-based policy on the S3 bucket the developers access
Show answer & explanation
✓ Answer: C. A condition using aws:MultiFactorAuthPresent set to true
The trust policy of a role can include a Condition block checking the aws:MultiFactorAuthPresent global condition key, which is true only when the caller authenticated with MFA before calling sts:AssumeRole. Permissions boundaries and SCPs limit maximum permissions but do not check MFA status at assume-role time, and a bucket resource policy is unrelated to how the role itself is assumed.
Q2. Which statement best describes an IAM permissions boundary?
  • A.  An organization-wide guardrail applied to all accounts in an AWS Organizations OU
  • B.  A managed policy that sets the maximum permissions an identity-based policy can grant to a user or role
  • C.  A resource-based policy attached to an S3 bucket to restrict cross-account access
  • D.  A network-level control that restricts which VPCs can call the AWS API
Show answer & explanation
✓ Answer: B. A managed policy that sets the maximum permissions an identity-based policy can grant to a user or role
A permissions boundary is a managed policy that sets the ceiling of permissions an IAM user or role can have, regardless of what its identity-based policies allow; effective permissions are the intersection of the identity policy and the boundary. It is scoped to a single user or role, unlike a service control policy which applies at the organization/OU level.
Q3. A solutions architect needs to grant an EC2 instance the ability to read objects from a specific S3 bucket without storing long-term credentials on the instance. What is the recommended approach?
  • A.  Create a bucket policy that allows access from the instance's public IP address
  • B.  Embed the AWS account root user credentials in an environment variable on the instance
  • C.  Create an IAM user, generate access keys, and store them in the instance's user data script
  • D.  Attach an IAM role with an instance profile that has a policy granting s3:GetObject on the bucket
Show answer & explanation
✓ Answer: D. Attach an IAM role with an instance profile that has a policy granting s3:GetObject on the bucket
IAM roles attached via an instance profile provide temporary, automatically rotated credentials to EC2 instances, which is the AWS-recommended way to grant permissions without hardcoding secrets. Storing access keys on the instance or using the root user creates long-lived credentials that are a security risk if leaked.
Q4. An application running in Account A needs to access an S3 bucket owned by Account B. The bucket owner wants to grant access without creating an IAM user in Account B for Account A to use. Which combination of steps achieves this most securely?
  • A.  Make the S3 bucket public and rely on Account A restricting who can reach the endpoint
  • B.  Copy the bucket's objects into Account A's own S3 bucket on a schedule
  • C.  Create a role in Account B that trusts Account A, and have the application assume that role via STS
  • D.  Share the root user credentials of Account B with Account A's administrators
Show answer & explanation
✓ Answer: C. Create a role in Account B that trusts Account A, and have the application assume that role via STS
Cross-account access is typically granted by creating an IAM role in the resource-owning account with a trust policy naming the other account, which the calling account's principal then assumes via sts:AssumeRole to receive temporary credentials. Making the bucket public exposes it to everyone, not just the intended account, and sharing root credentials violates least privilege.
Q5. What is the primary purpose of AWS Key Management Service (KMS) grants?
  • A.  To delegate a subset of permissions on a KMS key to another principal, often used by AWS services acting on a user's behalf
  • B.  To rotate a customer managed key automatically every 90 days
  • C.  To replicate a KMS key from one AWS Region to another
  • D.  To convert a symmetric key into an asymmetric key pair
Show answer & explanation
✓ Answer: A. To delegate a subset of permissions on a KMS key to another principal, often used by AWS services acting on a user's behalf
A KMS grant is a mechanism to delegate specific, limited permissions on a key to a principal, commonly used by AWS services like EBS or RDS to use a customer's key for encryption operations on their behalf without modifying the key policy. Grants are unrelated to rotation, which is a separate key setting, and they do not replicate or change key type.
Test yourself
See the AWS Solutions Architect Associate (SAA-C03) page

More AWS Solutions Architect Associate (SAA-C03) topics