IAM + EC2 Flashcards
What are the types of elements in IAM?
Users
Groups
Roles
Policies
What are IAM Roles?
Roles are a group of one or more policies that define the permissions of the role.
Roles are used for give aws servicess access to other services. Roles are attached directly to an AWS Resource.
What is an IAM Policy and what does it consist of?
It’s a JSON document. With one ore more statements.
Version
ID
Statement
Statement structure:
sid: statement id
Effect: Allow/Deny.
Principal: Which account, user, or role the statement with the permissions will apply to.
Action: The list of actions that will be allowed or denied.
Resource: The service resource the policy will be applied to.
Condition: parameters to decide if the policy is applied or not.
What can you do in IAM?
Set a password policy and expiration policy
Create users, groups, roles, policies.
Set up MFA
Generate Access Keys
In which ways can you access aws?
Management Console: Through web interface
AWS CLI: Through command line
AWS SDKs: Through code
How do users and groups behave in IAM?
A group cant be a member of another group.
A user inherits policies and permissions from every group he is in.
What is least privilege principle?
You dont give a user or group more privileges than they need.
What monitoring can you do with IAM?
You can make reports of all iam users and status of their credentials.
You can monitor individual users to see when did they last access each service. This is useful to set correct permissions to users. And remove permissions they dont use.
What does EC2 Service consist of?
EC2 instances
EBS Volumes
Instance Store
ELB
ASG: auto scaling group
What is an EC2 instance key pair?
It’s a pair of private and public keys you can use to give access to one or more EC2 instances. You assign one to an instance on creation.
What is ephemereal in an EC2 instance?
It’s instance store storage, and IP addresses. These are lost on stoppage.
What are the different EC2 instance types optimized for?
Memory optimized, storage optimized , compute optimized, general purpose, All with different sizes.
How is the more balanced EC2 instance tpye called?
General Purpose
What is a special feature of security groups in AWS?
You can enable inbound or outbound rules in security groups that are targeted to or from specific security groups, which will be attached to resources like other EC2 instances, load balancers, etc.
What are reserved instances?
You pay for an instance for 1 or 3 years. It’s cheaper cause it’s long term. Up to 72% discount compared to on demand.
You can pay upfront which is cheaper.