📖 What is IAM Role?

An IAM role is an AWS identity granting temporary access to services and resources. Roles are designed for applications or services, not individual users, and define permissions through policies. They are assumed by entities needing access, eliminating the need for long-term credentials.

🥋 Sensei Says:

"Exam questions frequently test understanding of trust policies. A trust policy defines *who* can assume the role, while a permissions policy defines *what* the role can do. Distinguish roles from users; roles lack permanent credentials."

📚 Certification: AWS Certified Solutions Architect - Associate (SAA-C03)

🔑 What are the Key Concepts of IAM Role?

  • IAM roles enable applications to access AWS resources without embedding long-term credentials, enhancing security and simplifying credential management.
  • A trust policy defines which principals (AWS accounts, services, or users) are allowed to assume the role, controlling access at the identity level.
  • Permissions policies attached to a role define the actions the role can perform on AWS resources, granting specific levels of access.
  • Roles are crucial for cross-account access, allowing resources in one account to securely access resources in another account.
  • The `sts:AssumeRole` API call is used by an entity to assume a role and obtain temporary security credentials.

🎯 How does IAM Role appear on the SAA-C03 Exam?

You may be asked to identify the best way for an EC2 instance to access S3 buckets in another AWS account, focusing on the use of IAM roles and trust relationships.

A scenario might describe an application running on ECS needing access to DynamoDB; expect questions about configuring an IAM role with the necessary permissions and trust policy.

Expect questions about troubleshooting access denied errors, where you must determine if the issue stems from incorrect permissions policies or a misconfigured trust policy.

❓ Frequently Asked Questions

What's the difference between a trust policy and a permissions policy?

The trust policy defines *who* can assume the role, specifying the principal. The permissions policy defines *what* actions the role can perform once assumed, granting access to resources.


Can an IAM user assume a role? If so, how?

Yes, an IAM user can assume a role using the AWS Management Console, CLI, or SDK, provided the user's IAM policy allows `sts:AssumeRole` and the role's trust policy allows the user's ARN.


When should I use an IAM role versus IAM user credentials?

Always prefer IAM roles for applications and services. Roles avoid storing long-term credentials on instances or in code, improving security. Use IAM users for individual human access.

Related Terms from AWS Certified Solutions Architect - Associate

📝 Related Study Guides

Study Guide 10 min read

AWS Solutions Architect Associate (SAA-C03) Study Guide

The AWS Solutions Architect Associate (SAA-C03) exam validates your ability to design cost-effective, resilient, and secure cloud architectures. To pass, you must master four domains—Security, Resilience, Performance, and Cost Optimization—and score at least 720/1000 on 65 questions within 130 minutes using the AWS Well-Architected Framework.

Study Guide 10 min read

AWS Solutions Architect Associate (SAA-C03) Study Guide

To pass the AWS SAA-C03 exam, you must master four domains: secure, resilient, high-performing, and cost-optimized architectures. Success requires deep knowledge of core services like VPC, EC2, and S3, combined with hands-on experience and rigorous practice using high-quality question banks to simulate the 65-question, 130-minute exam environment.

Deep Dive 8 min read

AWS SQS vs SNS: Core Differences for the SAA-C03 Exam

AWS SQS is a pull-based message queuing service used for one-to-one decoupling, ensuring messages are processed once. AWS SNS is a push-based pub/sub service for one-to-many notifications. For the SAA-C03 exam, remember SQS provides persistence and polling, while SNS delivers real-time messages to multiple subscribers instantly.

🧠

Test Your Knowledge

Think you understand IAM Role? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium