0
0
AWScloud~5 mins

IAM roles concept in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an IAM role in AWS?
An IAM role is like a set of permissions that you can give to AWS services or users to let them do specific tasks without sharing your personal credentials.
Click to reveal answer
beginner
How is an IAM role different from an IAM user?
An IAM user is a person or service with long-term credentials, while an IAM role is a temporary set of permissions that can be assumed by users or services when needed.
Click to reveal answer
beginner
What does it mean to 'assume' an IAM role?
To 'assume' a role means to temporarily take on the permissions defined by that role to perform tasks, like borrowing a key to access a room for a short time.
Click to reveal answer
intermediate
Why use IAM roles instead of sharing access keys?
IAM roles improve security by avoiding sharing permanent keys. They provide temporary permissions that expire, reducing risk if credentials are exposed.
Click to reveal answer
beginner
Give an example of when you would use an IAM role.
You use an IAM role when an EC2 instance needs to access S3 storage. Instead of storing keys on the instance, the EC2 assumes a role with permission to read S3.
Click to reveal answer
What is the main purpose of an IAM role in AWS?
ATo monitor AWS usage
BTo create permanent user accounts
CTo grant temporary permissions to users or services
DTo store data securely
Which of the following can assume an IAM role?
AOnly root account
BOnly AWS services
COnly IAM users
DBoth IAM users and AWS services
What happens when you assume an IAM role?
AYou get permanent access keys
BYou receive temporary security credentials
CYour user account is deleted
DYou create a new IAM user
Why is using IAM roles considered more secure than sharing access keys?
ARoles provide temporary credentials that reduce risk
BRoles allow unlimited access
CRoles never expire
DRoles are easier to remember
Which AWS service commonly uses IAM roles to access other services securely?
AAmazon EC2
BAmazon S3
CAWS Lambda
DAmazon RDS
Explain what an IAM role is and how it helps improve security in AWS.
Think about borrowing permissions instead of sharing keys.
You got /4 concepts.
    Describe a real-life scenario where you would use an IAM role in AWS.
    Consider how an EC2 server accesses S3 without storing keys.
    You got /4 concepts.